Just check settings() instead since there is access to the document.
<rdar://problem/103942356>
Pull request: https://github.com/WebKit/WebKit/pull/8281
Committed 258570@main (a0c7afb23fb7): <https://commits.webkit.org/258570@main> Reviewed commits have been landed. Closing PR #8281 and removing active labels.