RESOLVED FIXED 210363
Turn all instances of NavigatingToAppBoundDomain into Optionals.
https://bugs.webkit.org/show_bug.cgi?id=210363
Summary Turn all instances of NavigatingToAppBoundDomain into Optionals.
Kate Cheney
Reported 2020-04-10 16:54:23 PDT
We should distinguish between the case of an empty app-bound domains list everywhere for future behavior changes (currently it is only an Optional until it reaches WebPageProxy).
Attachments
Patch (65.59 KB, patch)
2020-04-10 17:34 PDT, Kate Cheney
no flags
Patch for landing (65.66 KB, patch)
2020-04-13 10:36 PDT, Kate Cheney
no flags
Radar WebKit Bug Importer
Comment 1 2020-04-10 16:55:04 PDT
Kate Cheney
Comment 2 2020-04-10 17:34:55 PDT
Brent Fulgham
Comment 3 2020-04-13 10:00:28 PDT
Comment on attachment 396138 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=396138&action=review r=me > Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1203 > + auto shouldBeConsideredAppBound = !isNavigatingToAppBoundDomain ? NavigatingToAppBoundDomain::Yes : *isNavigatingToAppBoundDomain; Nit: I had to think about this for a minute before I understood it. I think this *might* be clearer: auto shouldBeConsideredAppBound = isNavigatingToAppBoundDomain ? *isNavigatingToAppBoundDomain : NavigatingToAppBoundDomain::Yes;
Kate Cheney
Comment 4 2020-04-13 10:09:24 PDT
(In reply to Brent Fulgham from comment #3) > Comment on attachment 396138 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=396138&action=review > > r=me > > > Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1203 > > + auto shouldBeConsideredAppBound = !isNavigatingToAppBoundDomain ? NavigatingToAppBoundDomain::Yes : *isNavigatingToAppBoundDomain; > > Nit: I had to think about this for a minute before I understood it. I think > this *might* be clearer: > > auto shouldBeConsideredAppBound = isNavigatingToAppBoundDomain ? > *isNavigatingToAppBoundDomain : NavigatingToAppBoundDomain::Yes; Good call. I'll make this change before landing. Thanks!
Kate Cheney
Comment 5 2020-04-13 10:36:35 PDT
Created attachment 396305 [details] Patch for landing
EWS
Comment 6 2020-04-13 11:15:48 PDT
Committed r260031: <https://trac.webkit.org/changeset/260031> All reviewed patches have been landed. Closing bug and clearing flags on attachment 396305 [details].
Note You need to log in before you can comment on or make changes to this bug.