Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15fa22b107d107d2c48bb99373ac9767dcf1bf62
      
https://github.com/WebKit/WebKit/commit/15fa22b107d107d2c48bb99373ac9767dcf1bf62
  Author: Timothy Hatcher <[email protected]>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M Source/WebKit/UIProcess/Extensions/WebExtensionContext.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIScripting.mm

  Log Message:
  -----------
  Extension scripts/style sheets are injected into denied domains if Other 
Websites are set to allow.
https://flagged.apple.com:443/proxy?t2=Da4h1O6XX0&o=aHR0cHM6Ly93ZWJraXQub3JnL2IvMzA5NTE2&emid=077c0bc7-e0c5-4d6e-b8fe-e38c49e4cd7e&c=11
rdar://171724038

Reviewed by Brian Weinstein.

During Objective-C++ to C++ conversion, NSMutableSet's unionSet: (modifies in 
place) was incorrectly
translated to HashSet::unionWith() (returns new set). Changed to addAll() to 
match original
semantics.

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIScripting.mm
*
Source/WebKit/UIProcess/Extensions/WebExtensionContext.cpp:
(WebKit::WebExtensionContext::addInjectedContent): Use addAll() instead of 
unionWith().
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIScripting.mm:
(TestWebKitAPI::TEST(WKWebExtensionAPIScripting, 
ContentScriptsRespectDeniedMatchPatterns)): Added.

Originally-landed-as: 305413.426@safari-7624-branch (7f6a77dee81b). 
rdar://176067024
Canonical link: 
https://flagged.apple.com:443/proxy?t2=DW4E2u7Om6&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE5NDg3QG1haW4=&emid=077c0bc7-e0c5-4d6e-b8fe-e38c49e4cd7e&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to