Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5c2e1b9bf5e8efecb939ca0a1fe519ab574c89f9
https://github.com/WebKit/WebKit/commit/5c2e1b9bf5e8efecb939ca0a1fe519ab574c89f9
Author: Alex Christensen <[email protected]>
Date: 2026-01-26 (Mon, 26 Jan 2026)
Changed paths:
M Source/WebCore/loader/DocumentPrefetcher.cpp
Log Message:
-----------
Fix crash after enabling speculation rules prefetching
https://bugs.webkit.org/show_bug.cgi?id=306282
rdar://168835297
Reviewed by Wenson Hsieh.
Feeding a null URL into m_prefetchedData.contains causes a crash.
This moves the invalid URL check to before the contains check to
prevent such a crash.
* Source/WebCore/loader/DocumentPrefetcher.cpp:
(WebCore::DocumentPrefetcher::prefetch):
Canonical link: https://commits.webkit.org/306219@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications