WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
309424
ResourceLoadStatisticsStore::hasStorageAccess drops completionHandler when domainID lookup fails.
https://bugs.webkit.org/show_bug.cgi?id=309424
Summary
ResourceLoadStatisticsStore::hasStorageAccess drops completionHandler when do...
Basuke Suzuki
Reported
2026-03-07 12:35:17 PST
In ResourceLoadStatisticsStore::hasStorageAccess() (ResourceLoadStatisticsStore.cpp:1678-1679), when ensureResourceStatisticsForRegistrableDomain() fails, the function returns without calling the completionHandler: auto result = ensureResourceStatisticsForRegistrableDomain(subFrameDomain, "hasStorageAccess"_s); if (!result.second) return; // BUG: completionHandler not called This causes the CompletionHandler<void(bool)> to be destroyed without being invoked. The IPC reply to WebProcess is never sent, so document.hasStorageAccess() JS Promise will never resolve.
Attachments
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2026-03-07 12:40:46 PST
rdar://171987676
Basuke Suzuki
Comment 2
2026-03-07 19:30:45 PST
Pull request:
https://github.com/WebKit/WebKit/pull/60142
EWS
Comment 3
2026-03-07 22:10:40 PST
Committed
308880@main
(19e5a5c4f14d): <
https://commits.webkit.org/308880@main
> Reviewed commits have been landed. Closing PR #60142 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug