Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0ae18490cc0b7f416c42fcd927aba522e057c93f
      
https://github.com/WebKit/WebKit/commit/0ae18490cc0b7f416c42fcd927aba522e057c93f
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-04-25 (Sat, 25 Apr 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxyTesting.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.cpp
    M Source/WebKit/UIProcess/WebProcessProxy.h

  Log Message:
  -----------
  [Site Isolation] fast/events/before-unload-navigate-different-window.html 
fails
https://bugs.webkit.org/show_bug.cgi?id=313075
rdar://175456940

Reviewed by Sihui Liu.

The bug was caused by WebProcessProxy::didStartProvisionalLoadForMainFrame 
clobbering
WebProcessProxy::m_site to SiteState::MultipleSites when navigating from 
about:blank to a file URL.

Avoid process swap in this case by preserving WebProcessProxy::m_site.

Also reset WebProcessProxy::m_site between each test.

Test: fast/events/before-unload-navigate-different-window.html

* Source/WebKit/UIProcess/WebPageProxyTesting.cpp:
(WebKit::WebPageProxyTesting::resetStateBetweenTests):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didStartProvisionalLoadForMainFrame):
(WebKit::WebProcessProxy::resetState):
* Source/WebKit/UIProcess/WebProcessProxy.h:

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



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

Reply via email to