Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cb4af33d7c5ecd79b090d589665a6d989fb6b7d1
      
https://github.com/WebKit/WebKit/commit/cb4af33d7c5ecd79b090d589665a6d989fb6b7d1
  Author: Ronan Turner <[email protected]>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurityPolicies.mm

  Log Message:
  -----------
  ProvisionalPageProxy should forward ContentRuleListNotification messages.
https://bugs.webkit.org/show_bug.cgi?id=309359
rdar://170887772.

Reviewed by Matthew Finkel.

It is possible for a WebPageProxy::ContentRuleListNotification to be sent
to a ProvisionalPageProxy. This may happen, for example, in the case when
we're in a WebContent process spun up for a ProvisionalPageProxy and have
a block action from a ContentRuleList that fires.

Currently, we drop these messages which prevents triggering the necessary
ContentRuleList client delegate callbacks.

Adds a new API test confirming the callback is received:

  * EnhancedSecurityPolciies.ContentRuleListCallbackOccurs

* Source/WebKit/UIProcess/ProvisionalPageProxy.cpp:
(WebKit::ProvisionalPageProxy::didReceiveMessage):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/EnhancedSecurityPolicies.mm:
(runContentRuleListCallbackOccurs):

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



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

Reply via email to