Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ee317d6acf78cd17381ade14d78da635cb6dd92a
https://github.com/WebKit/WebKit/commit/ee317d6acf78cd17381ade14d78da635cb6dd92a
Author: Elijah Sawyers <[email protected]>
Date: 2024-11-18 (Mon, 18 Nov 2024)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKWebExtensionTab.h
M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionTabCocoa.mm
M Source/WebKit/UIProcess/Extensions/WebExtensionTab.h
M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPITabs.mm
M Tools/TestWebKitAPI/cocoa/WebExtensionUtilities.h
M Tools/TestWebKitAPI/cocoa/WebExtensionUtilities.mm
Log Message:
-----------
Browsers should have a way to allow a tab to skip the permissions check
https://webkit.org/b/283197
rdar://problem/102199510
Reviewed by Timothy Hatcher.
This patch introduces a new delegate method for a WKWebExtensionTab
that allows the browser to specify whether or not a tab should be
able to skip the permissions check.
* Source/WebKit/UIProcess/API/Cocoa/WKWebExtensionTab.h:
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionTabCocoa.mm:
(WebKit::WebExtensionTab::WebExtensionTab):
(WebKit::WebExtensionTab::extensionHasPermission const):
* Source/WebKit/UIProcess/Extensions/WebExtensionTab.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPITabs.mm:
(TestWebKitAPI::TEST(WKWebExtensionAPITabs, QueryWithPermissionBypass)):
* Tools/TestWebKitAPI/cocoa/WebExtensionUtilities.h:
* Tools/TestWebKitAPI/cocoa/WebExtensionUtilities.mm:
(-[TestWebExtensionTab shouldBypassPermissionsForWebExtensionContext:]):
Canonical link: https://commits.webkit.org/286726@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes