[webkit-changes] [WebKit/WebKit] e819c4: All extensions are being granted the tabs permissi...

Timothy Hatcher noreply at github.com
Wed Jan 24 13:56:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e819c4ec9e878eacac535573df5a24e18e821236
      https://github.com/WebKit/WebKit/commit/e819c4ec9e878eacac535573df5a24e18e821236
  Author: Timothy Hatcher <timothy at apple.com>
  Date:   2024-01-24 (Wed, 24 Jan 2024)

  Changed paths:
    M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPITabs.mm

  Log Message:
  -----------
  All extensions are being granted the tabs permission on user gesture.
https://webkit.org/b/267952
rdar://problem/121469546

Reviewed by Brian Weinstein.

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::permissionState): Add missing activeTab permission check.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPITabs.mm:
(TestWebKitAPI::TEST): Added new test.

Canonical link: https://commits.webkit.org/273444@main




More information about the webkit-changes mailing list