Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1d23413161c8fc9a791cb4dc2569bba8597c5840
      
https://github.com/WebKit/WebKit/commit/1d23413161c8fc9a791cb4dc2569bba8597c5840
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp

  Log Message:
  -----------
  [Site Isolation] 
http/tests/contentextensions/block-everything-unless-domain.html fails
https://bugs.webkit.org/show_bug.cgi?id=313134

Reviewed by Megan Gardner.

When site isolation triggers a process swap for a navigation, the new 
WebProcess logs
the content blocker console message via WebChromeClient::addMessageToConsole. 
This IPC
arrives at ProvisionalPageProxy::didReceiveMessage(), which only forwards a 
specific
allowed list of messages to the main WebPageProxy. 
AddMessageToConsoleForTesting is
not in that list, so it hits the fallback at line 856 and is silently dropped.

Fixed the test by adding AddMessageToConsoleForTesting to the allowed list of 
IPCs
that get forwarded in ProvisionalPageProxy::didReceiveMessage().

Test: http/tests/contentextensions/block-everything-unless-domain.html

* Source/WebKit/UIProcess/ProvisionalPageProxy.cpp:
(WebKit::ProvisionalPageProxy::didReceiveMessage):

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



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

Reply via email to