RESOLVED FIXED 202590
DOMCache should not prevent pages from entering the back/forward cache
https://bugs.webkit.org/show_bug.cgi?id=202590
Summary DOMCache should not prevent pages from entering the back/forward cache
Chris Dumez
Reported 2019-10-04 10:51:29 PDT
DOMCache should not prevent pages from entering the back/forward cache.
Attachments
Patch (15.28 KB, patch)
2019-10-04 12:33 PDT, Chris Dumez
no flags
Patch (15.41 KB, patch)
2019-10-04 12:38 PDT, Chris Dumez
no flags
Patch (18.26 KB, patch)
2019-10-04 14:08 PDT, Chris Dumez
no flags
Patch (20.44 KB, patch)
2019-10-07 08:29 PDT, Chris Dumez
no flags
Patch (20.38 KB, patch)
2019-10-07 13:11 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2019-10-04 12:33:41 PDT
Chris Dumez
Comment 2 2019-10-04 12:38:32 PDT
Geoffrey Garen
Comment 3 2019-10-04 13:41:57 PDT
Comment on attachment 380235 [details] Patch EWS seems to be crashing in DOMCache tests.
Chris Dumez
Comment 4 2019-10-04 14:08:23 PDT
Radar WebKit Bug Importer
Comment 5 2019-10-07 08:14:13 PDT
Chris Dumez
Comment 6 2019-10-07 08:23:02 PDT
Comment on attachment 380251 [details] Patch Will investigate WK1 failures.
Chris Dumez
Comment 7 2019-10-07 08:25:17 PDT
(In reply to Chris Dumez from comment #6) > Comment on attachment 380251 [details] > Patch > > Will investigate WK1 failures. Oh, it looks like DOMCache is WK2 only. Will skip the new test on WK1.
Chris Dumez
Comment 8 2019-10-07 08:29:07 PDT
youenn fablet
Comment 9 2019-10-07 11:03:15 PDT
Comment on attachment 380329 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380329&action=review > Source/WebCore/Modules/cache/DOMCache.cpp:450 > + queryCache(request.releaseNonNull(), WTFMove(options), [this, protectedThis = makeRef(*this), promise = WTFMove(promise)](ExceptionOr<Vector<CacheStorageRecord>>&& result) mutable { auto&& here and above as well if we want. > Source/WebCore/Modules/cache/DOMCache.h:61 > + using MatchCallback = WTF::Function<void(ExceptionOr<RefPtr<FetchResponse>>)>; s/WTF::// > Source/WebCore/Modules/cache/DOMCacheStorage.cpp:63 > + cache.doMatch(WTFMove(info), WTFMove(options), [caches = WTFMove(caches), info, options, completionHandler = WTFMove(completionHandler), index](ExceptionOr<RefPtr<FetchResponse>>&& result) mutable { auto&& > Source/WebCore/Modules/cache/DOMCacheStorage.cpp:88 > + startSequentialMatch(WTF::map(m_caches, copyCache), WTFMove(info), WTFMove(options), [this, pendingActivity = makePendingActivity(*this), promise = WTFMove(promise)](ExceptionOr<RefPtr<FetchResponse>>&& result) mutable { auto&&
Chris Dumez
Comment 10 2019-10-07 13:11:41 PDT
Chris Dumez
Comment 11 2019-10-07 13:41:11 PDT
Comment on attachment 380348 [details] Patch Clearing flags on attachment: 380348 Committed r250786: <https://trac.webkit.org/changeset/250786>
Chris Dumez
Comment 12 2019-10-07 13:41:13 PDT
All reviewed patches have been landed. Closing bug.
Aakash Jain
Comment 13 2019-10-11 15:10:42 PDT
> Committed r250786: <https://trac.webkit.org/changeset/250786> This commit seems to have broken API Test: WebKit.DefaultQuota (Bug 202850). EWS also indicated that failure.
Chris Dumez
Comment 14 2019-10-11 15:32:46 PDT
(In reply to Aakash Jain from comment #13) > > Committed r250786: <https://trac.webkit.org/changeset/250786> > This commit seems to have broken API Test: WebKit.DefaultQuota (Bug 202850). > EWS also indicated that failure. Odd, I am investigating.
Note You need to log in before you can comment on or make changes to this bug.