RESOLVED FIXED309424
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
Basuke Suzuki
Comment 1 2026-03-07 12:40:46 PST
Basuke Suzuki
Comment 2 2026-03-07 19:30:45 PST
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.