This should be a hasPermission: call to extensionContext() and updated with actually granted permissions from the UI process.
<rdar://problem/113537360>
Pull request: https://github.com/WebKit/WebKit/pull/25954
Committed 276194@main (a0d65e89085b): <https://commits.webkit.org/276194@main> Reviewed commits have been landed. Closing PR #25954 and removing active labels.