Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e3fd42a592275d724a8848a6dcb365fea1e6e581
      
https://github.com/WebKit/WebKit/commit/e3fd42a592275d724a8848a6dcb365fea1e6e581
  Author: Brandon Stewart <[email protected]>
  Date:   2026-03-27 (Fri, 27 Mar 2026)

  Changed paths:
    M 
LayoutTests/http/tests/site-isolation/inspector/debugger/resources/site-isolation-debugger-test-utilities.js
    A 
LayoutTests/http/tests/site-isolation/inspector/page/override-user-agent-cross-origin-iframe-expected.txt
    A 
LayoutTests/http/tests/site-isolation/inspector/page/override-user-agent-cross-origin-iframe.html
    A 
LayoutTests/http/tests/site-isolation/inspector/page/resources/user-agent-frame.html
    M 
LayoutTests/http/tests/site-isolation/inspector/runtime/evaluate-in-cross-origin-iframe.html
    M LayoutTests/platform/mac-site-isolation/TestExpectations
    M LayoutTests/platform/mac-wk2/TestExpectations

  Log Message:
  -----------
  [Web Inspector] [Site Isolation] Add inspector test for 
Page.overrideUserAgent with cross-origin iframes under site isolation
https://bugs.webkit.org/show_bug.cgi?id=310726
rdar://173344604

Reviewed by BJ Burg.

Add a layout test that verifies Page.overrideUserAgent propagates to
cross-origin iframes when site isolation is enabled. The test overrides the
user agent via Web Inspector, reloads, and confirms that navigator.userAgent
in a cross-origin iframe (running in a separate process) reflects the
overridden value.

The test crashes in Debug builds due to a pre-existing assertion in
JSC::Debugger::attach (ASSERTION FAILED: !globalObject->debugger()).
When the inspector connects to the cross-origin iframe's frame target
after a page reload, the debugger is already attached to the global object.
This is tracked as a known Debug crash in TestExpectations and will be
fixed in a follow-up.

* 
LayoutTests/http/tests/site-isolation/inspector/debugger/resources/site-isolation-debugger-test-utilities.js:
(TestPage.registerInitializer.window.waitForExpressionInTarget.async 
waitForExpressionInTarget):
(async waitForExpressionInTarget): Deleted.
* 
LayoutTests/http/tests/site-isolation/inspector/page/override-user-agent-cross-origin-iframe-expected.txt:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/page/override-user-agent-cross-origin-iframe.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/page/resources/user-agent-frame.html:
 Added.
* 
LayoutTests/http/tests/site-isolation/inspector/runtime/evaluate-in-cross-origin-iframe.html:
* LayoutTests/platform/mac-site-isolation/TestExpectations:
* LayoutTests/platform/mac-wk2/TestExpectations:

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



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

Reply via email to