Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 638ec87d381986ee419ca723ec91272f692acef2
https://github.com/WebKit/WebKit/commit/638ec87d381986ee419ca723ec91272f692acef2
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-06 (Sun, 06 Sep 2026)
Changed paths:
M Source/WebCore/Modules/cache/DOMCache.cpp
Log Message:
-----------
DOMCache::queryCache() re-fetches scriptExecutionContext() after caching it
https://bugs.webkit.org/show_bug.cgi?id=323439
rdar://186672460
Reviewed by Chris Dumez.
queryCache() caches the script execution context in a null-checked RefPtr,
then calls scriptExecutionContext() twice more when building
RetrieveRecordsOptions instead of reusing the local. Reuse the cached
context, dropping two redundant virtual calls and a re-deref. No behavior
change: the early return above guarantees the context is non-null.
* Source/WebCore/Modules/cache/DOMCache.cpp:
(WebCore::DOMCache::queryCache):
Canonical link: https://commits.webkit.org/320593@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications