RESOLVED FIXED 238800
In case of COOP-based process swap, we need to make sure the document gets controlled by its matching service worker registration
https://bugs.webkit.org/show_bug.cgi?id=238800
Summary In case of COOP-based process swap, we need to make sure the document gets co...
youenn fablet
Reported 2022-04-05 05:41:36 PDT
In case of COOP-based process swap, we need to make sure the document gets controlled by its matching service worker registration
Attachments
Patch (12.76 KB, patch)
2022-04-05 09:06 PDT, youenn fablet
no flags
Radar WebKit Bug Importer
Comment 1 2022-04-05 05:41:56 PDT
youenn fablet
Comment 2 2022-04-05 09:06:25 PDT
Chris Dumez
Comment 3 2022-04-06 07:19:40 PDT
Comment on attachment 456705 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456705&action=review r=me > Source/WebKit/NetworkProcess/NetworkLoadParameters.h:47 > + mutable WebPageProxyIdentifier webPageProxyID; These mutable seem a little odd. Maybe we should imply not mark the NetworkResourceLoader data member as const?
youenn fablet
Comment 4 2022-04-06 08:09:48 PDT
(In reply to Chris Dumez from comment #3) > Comment on attachment 456705 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=456705&action=review > > r=me > > > Source/WebKit/NetworkProcess/NetworkLoadParameters.h:47 > > + mutable WebPageProxyIdentifier webPageProxyID; > > These mutable seem a little odd. Maybe we should imply not mark the > NetworkResourceLoader data member as const? There used to be no mutable, I guess we should remove them, and const_cast m_parameters when needed instead. Or make the member no longer const.
youenn fablet
Comment 5 2022-04-06 08:11:02 PDT
> There used to be no mutable, I guess we should remove them, and const_cast > m_parameters when needed instead. Or make the member no longer const. I'll look into cleaning all these mutables in a follow-up.
Chris Dumez
Comment 6 2022-04-06 08:13:42 PDT
(In reply to youenn fablet from comment #4) > (In reply to Chris Dumez from comment #3) > > Comment on attachment 456705 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=456705&action=review > > > > r=me > > > > > Source/WebKit/NetworkProcess/NetworkLoadParameters.h:47 > > > + mutable WebPageProxyIdentifier webPageProxyID; > > > > These mutable seem a little odd. Maybe we should imply not mark the > > NetworkResourceLoader data member as const? > > There used to be no mutable, I guess we should remove them, and const_cast > m_parameters when needed instead. Or make the member no longer const. Right, I think keeping the m_parameters const at this point no longer makes sense since we're updating its data member. Mutable has some use cases (e.g. lazy init) but IMO this isn't a good use case for it.
EWS
Comment 7 2022-04-06 08:21:59 PDT
Committed r292468 (249319@main): <https://commits.webkit.org/249319@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456705 [details].
Brent Fulgham
Comment 8 2022-05-26 14:59:30 PDT
This fix shipped with Safari 15.5 (all platforms).
Note You need to log in before you can comment on or make changes to this bug.