Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 60dafe23e70a13d7e3489dba01050a936d6d6759
https://github.com/WebKit/WebKit/commit/60dafe23e70a13d7e3489dba01050a936d6d6759
Author: Yury Semikhatsky <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
M LayoutTests/inspector/network/intercept-aborted-request-expected.txt
M LayoutTests/inspector/network/intercept-aborted-request.html
M Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp
Log Message:
-----------
Web Inspector: Network.interceptWithRequest crashes if the request was
already aborted
https://bugs.webkit.org/show_bug.cgi?id=318482
Reviewed by Devin Rousso.
Unlike Network.interceptRequestWithResponse and
Network.interceptRequestWithError,
Network.interceptWithRequest did not check whether the intercepted loader had
already reached its terminal state. If the request was aborted while the
intercept
was still pending, continuing it operated on a terminal loader and crashed. Add
the
same reachedTerminalState() guard the sibling commands already use.
* LayoutTests/inspector/network/intercept-aborted-request-expected.txt:
* LayoutTests/inspector/network/intercept-aborted-request.html:
* Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::interceptWithRequest):
Canonical link: https://commits.webkit.org/316445@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications