Bug 268645

Summary: WebExtensionContext::handleContentRuleListNotificationForTab activeTab permission check is wrong
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: WebKit ExtensionsAssignee: Brian Weinstein <bweinstein>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy, tzyy9873, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Timothy Hatcher
Reported 2024-02-02 11:30:59 PST
We should do `hasPermission(url, &tab)` instead of `hasPermission(_WKWebExtensionPermissionActiveTab)`, which will properly check for all host permission cases, including `activeTab` temp host permissions. I'm not even sure the `hasPermission(_WKWebExtensionPermissionDeclarativeNetRequest)` check is needed, since we already check `_WKWebExtensionPermissionDeclarativeNetRequestFeedback`.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-02-02 11:31:08 PST
Radar WebKit Bug Importer
Comment 2 2024-02-02 11:35:53 PST
Timothy Hatcher
Comment 3 2024-02-02 11:36:10 PST
Brian Weinstein
Comment 4 2024-02-02 15:59:34 PST
EWS
Comment 5 2024-02-02 18:18:50 PST
Committed 274030@main (63b67f18d2d2): <https://commits.webkit.org/274030@main> Reviewed commits have been landed. Closing PR #23788 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.