Bug 236292

Summary: Settling of a fetch promise should be delayed in case page is entering page cache
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebCore Misc.Assignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description youenn fablet 2022-02-08 02:31:56 PST
<rdar://88452971>
Comment 1 youenn fablet 2022-02-08 02:49:00 PST
Created attachment 451227 [details]
Patch
Comment 2 youenn fablet 2022-02-08 06:10:59 PST
Created attachment 451239 [details]
Patch
Comment 3 youenn fablet 2022-02-08 07:34:46 PST
Created attachment 451244 [details]
Patch
Comment 4 youenn fablet 2022-02-08 08:13:44 PST
Created attachment 451250 [details]
Patch
Comment 5 Chris Dumez 2022-02-08 11:38:50 PST
Comment on attachment 451250 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=451250&action=review

r=me

> Source/WebCore/Modules/fetch/FetchResponse.cpp:352
> +        responseCallback(Ref { m_response });

Why the Ref { }?
Comment 6 youenn fablet 2022-02-10 07:39:39 PST
(In reply to Chris Dumez from comment #5)
> Comment on attachment 451250 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=451250&action=review
> 
> r=me
> 
> > Source/WebCore/Modules/fetch/FetchResponse.cpp:352
> > +        responseCallback(Ref { m_response });
> 
> Why the Ref { }?

responseCallback takes an ExceptionOr<Ref<>>.
Comment 7 EWS 2022-02-10 07:46:24 PST
Committed r289533 (247064@main): <https://commits.webkit.org/247064@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 451250 [details].