Skip to content

DOMCacheStorage methods can assert in Debug #47058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rwlbuis
Copy link
Contributor

@rwlbuis rwlbuis commented Jun 23, 2025

ac6d4a1

DOMCacheStorage methods can assert in Debug
https://bugs.webkit.org/show_bug.cgi?id=294839

Reviewed by NOBODY (OOPS!).

DOMCacheStorage methods can assert in Debug when a DOMCacheStorage promise is rejected while
the page is suspended, use a similar solution like in r250786 to fix this.

* LayoutTests/http/tests/cache-storage/page-cache-domcache-pending-promise.html:
* Source/WebCore/Modules/cache/DOMCacheStorage.cpp:
(WebCore::DOMCacheStorage::match):
(WebCore::DOMCacheStorage::has):
(WebCore::DOMCacheStorage::open):
(WebCore::DOMCacheStorage::remove):
(WebCore::DOMCacheStorage::keys):

ac6d4a1

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ⏳ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ❌ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@rwlbuis rwlbuis self-assigned this Jun 23, 2025
@rwlbuis rwlbuis added the Page Loading For bugs in page loading, including handling of network callbacks. label Jun 23, 2025
@aproskuryakov aproskuryakov requested review from cdumez and youennf June 23, 2025 17:14
@rwlbuis rwlbuis changed the title DOMCacheEngine methods can assert in Debug DOMCacheStorage methods can assert in Debug Jun 23, 2025
@rwlbuis rwlbuis force-pushed the eng/DOMCacheEngine-methods-can-assert-in-Debug branch from cb2a973 to cb49d07 Compare June 23, 2025 18:40
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jun 24, 2025
https://bugs.webkit.org/show_bug.cgi?id=294839

Reviewed by NOBODY (OOPS!).

DOMCacheStorage methods can assert in Debug when a DOMCacheStorage promise is rejected while
the page is suspended, use a similar solution like in r250786 to fix this.

* LayoutTests/http/tests/cache-storage/page-cache-domcache-pending-promise.html:
* Source/WebCore/Modules/cache/DOMCacheStorage.cpp:
(WebCore::DOMCacheStorage::match):
(WebCore::DOMCacheStorage::has):
(WebCore::DOMCacheStorage::open):
(WebCore::DOMCacheStorage::remove):
(WebCore::DOMCacheStorage::keys):
@rwlbuis rwlbuis removed the merging-blocked Applied to prevent a change from being merged label Jun 24, 2025
@rwlbuis rwlbuis force-pushed the eng/DOMCacheEngine-methods-can-assert-in-Debug branch from cb49d07 to ac6d4a1 Compare June 24, 2025 09:11
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merging-blocked Applied to prevent a change from being merged Page Loading For bugs in page loading, including handling of network callbacks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants