Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d22e7108a8bd2847c5683e4663f4d9373341e90a
https://github.com/WebKit/WebKit/commit/d22e7108a8bd2847c5683e4663f4d9373341e90a
Author: Anuj Panta <[email protected]>
Date: 2026-09-10 (Thu, 10 Sep 2026)
Changed paths:
M LayoutTests/inspector/debugger/continueUntilNextRunLoop.html
M LayoutTests/inspector/debugger/pause-for-internal-scripts.html
M LayoutTests/inspector/debugger/pause-reason.html
M LayoutTests/inspector/debugger/search-scripts.html
M LayoutTests/inspector/debugger/setBreakpoint-condition-ignoreCount.html
M
LayoutTests/inspector/debugger/sourceURL-repeated-identical-executions.html
Log Message:
-----------
Web Inspector: more inspector/debugger tests use the inert page-target
https://bugs.webkit.org/show_bug.cgi?id=323914
rdar://187150604
Reviewed by Qianlang Chen.
Under site isolation PageDebugger::attachDebugger() returns before
Page::setDebugger(), so the page target's Debugger domain is registered
but owns no scripts and never pauses. Commands sent to it succeed and do
nothing. Test.js defines window.DebuggerAgent as
WI.mainTarget._agents["Debugger"], and WI.mainTarget is the page target,
so every bare DebuggerAgent call and every dataForTarget(WI.mainTarget)
reaches that inert agent.
Route them to InspectorTest.mainFrameTarget, which resolves to the frame
target that owns the scripts and falls back to WI.mainTarget when site
isolation is off, so each change is unconditional and correct in both
configurations. No baselines change.
* LayoutTests/inspector/debugger/continueUntilNextRunLoop.html:
* LayoutTests/inspector/debugger/pause-for-internal-scripts.html:
* LayoutTests/inspector/debugger/pause-reason.html:
* LayoutTests/inspector/debugger/search-scripts.html:
* LayoutTests/inspector/debugger/setBreakpoint-condition-ignoreCount.html:
* LayoutTests/inspector/debugger/sourceURL-repeated-identical-executions.html:
Canonical link: https://commits.webkit.org/320903@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications