Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9fcb2bb3c70e075e00c501cc5d8d4cf72f588ef9
https://github.com/WebKit/WebKit/commit/9fcb2bb3c70e075e00c501cc5d8d4cf72f588ef9
Author: Anuj Panta <[email protected]>
Date: 2026-04-22 (Wed, 22 Apr 2026)
Changed paths:
M
LayoutTests/http/tests/site-isolation/inspector/debugger/pause-in-cross-origin-iframe-expected.txt
M
LayoutTests/http/tests/site-isolation/inspector/debugger/pause-in-cross-origin-iframe.html
M
LayoutTests/http/tests/site-isolation/inspector/debugger/scriptParsed-frame-target-expected.txt
M
LayoutTests/http/tests/site-isolation/inspector/debugger/scriptParsed-frame-target.html
M
LayoutTests/http/tests/site-isolation/inspector/debugger/setBreakpoint-cross-origin-iframe-expected.txt
M
LayoutTests/http/tests/site-isolation/inspector/debugger/setBreakpoint-cross-origin-iframe.html
M LayoutTests/platform/mac-wk2/TestExpectations
Log Message:
-----------
[Site Isolation] Web Inspector: Fix Debugger layout tests for cross-origin
frame targets
https://bugs.webkit.org/show_bug.cgi?id=311123
rdar://problem/173722593
Reviewed by Qianlang Chen.
These tests were skipped due to timeouts and an assertion failure
(ASSERT(!globalObject->debugger()) in Debugger::attach) that occurred
when dynamically creating cross-origin iframes with the inspector
connected.
The root cause was that the tests used TargetAdded to acquire the
cross-origin frame target, which resolved with the initial about:blank
target instead of the committed cross-origin target. This target had
no scripts parsed and no debugger attached to the cross-origin content.
Switched to static cross-origin iframes declared in the test HTML.
By the time onload fires, the provisional target lifecycle has completed
and the committed frame target is already available with its scripts
parsed and debugger agents connected. Uses fetchDocumentURLsForTargets
to identify the cross-origin target.
*
LayoutTests/http/tests/site-isolation/inspector/debugger/pause-in-cross-origin-iframe-expected.txt:
*
LayoutTests/http/tests/site-isolation/inspector/debugger/pause-in-cross-origin-iframe.html:
*
LayoutTests/http/tests/site-isolation/inspector/debugger/scriptParsed-frame-target-expected.txt:
*
LayoutTests/http/tests/site-isolation/inspector/debugger/scriptParsed-frame-target.html:
*
LayoutTests/http/tests/site-isolation/inspector/debugger/setBreakpoint-cross-origin-iframe-expected.txt:
*
LayoutTests/http/tests/site-isolation/inspector/debugger/setBreakpoint-cross-origin-iframe.html:
* LayoutTests/platform/mac-wk2/TestExpectations:
Canonical link: https://commits.webkit.org/311811@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications