Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ba40f4667ee05729c7cdf0f1a99b1469bf84f42b
https://github.com/WebKit/WebKit/commit/ba40f4667ee05729c7cdf0f1a99b1469bf84f42b
Author: Alex Christensen <[email protected]>
Date: 2026-06-15 (Mon, 15 Jun 2026)
Changed paths:
M Source/WebCore/loader/ResourceMonitor.cpp
Log Message:
-----------
Possible fix to possible null dereference crash in
ResourceMonitor::continueAfterDidReceiveEligibility
https://bugs.webkit.org/show_bug.cgi?id=317157
rdar://179753540
Reviewed by Charlie Wolfe and Ben Nham.
A Frame's page should always be the same as its main frame's page.
There's a chance we've seen some crashes from a frame whose main frame has been
destroyed, in which case calling Frame::mainFrame would dereference null.
Since there's no reason to go to the main frame, omit the call to see if
this fixes the crash.
* Source/WebCore/loader/ResourceMonitor.cpp:
(WebCore::ResourceMonitor::didReceiveResponse):
(WebCore::ResourceMonitor::continueAfterDidReceiveEligibility):
Canonical link: https://commits.webkit.org/315259@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications