Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 20549e656a50a04c0fe5998a0ea0debcd85f0259
      
https://github.com/WebKit/WebKit/commit/20549e656a50a04c0fe5998a0ea0debcd85f0259
  Author: Brian Weinstein <[email protected]>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

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

  Log Message:
  -----------
  Don't consider an empty array of DNR rule resources a parsing error
https://bugs.webkit.org/show_bug.cgi?id=277151
rdar://130861213

Reviewed by Timothy Hatcher.

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionCocoa.mm:
(WebKit::WebExtension::populateDeclarativeNetRequestPropertiesIfNeeded): We 
shouldn't pass `emptyIfNil` to
the `objectForKey` call parsing the declarativeNetRequest rulesets. This led to 
a reported parsing error when
passing an empty array of rulesets like the "Unagent" extension did.

Canonical link: https://commits.webkit.org/281416@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

Reply via email to