RESOLVED FIXED 184424
Expand WebCore policy concept of "shouldContinue" to allow for more than true/false
https://bugs.webkit.org/show_bug.cgi?id=184424
Summary Expand WebCore policy concept of "shouldContinue" to allow for more than true...
Brady Eidson
Reported Monday, April 9, 2018 8:24:33 PM UTC
Expand WebCore policy concept of "shouldContinue" to allow for more than true/false Specifically: -Yes -No -ForSuspension
Attachments
Patch (21.24 KB, patch)
2018-04-09 12:28 PDT, Brady Eidson
no flags
Patch (21.25 KB, patch)
2018-04-09 13:42 PDT, Brady Eidson
no flags
Patch (21.10 KB, patch)
2018-04-09 15:29 PDT, Brady Eidson
no flags
Patch (21.34 KB, patch)
2018-04-09 15:54 PDT, Brady Eidson
no flags
Brady Eidson
Comment 1 Monday, April 9, 2018 8:28:16 PM UTC Comment hidden (obsolete)
Brady Eidson
Comment 2 Monday, April 9, 2018 9:42:31 PM UTC
Alex Christensen
Comment 3 Monday, April 9, 2018 9:56:28 PM UTC
Comment on attachment 337536 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337536&action=review > Source/WebCore/loader/FrameLoader.cpp:3186 > + FALLTHROUGH; I don't think this FALLTHROUGH is necessary here or above. I also think this whole thing could be just shouldContinue != ShouldContinue::No > Source/WebCore/loader/PolicyChecker.h:60 > +using NavigationPolicyDecisionFunction = WTF::CompletionHandler<void(ResourceRequest&&, FormState*, ShouldContinue)>; WTF:: could be removed.
Brady Eidson
Comment 4 Monday, April 9, 2018 10:30:28 PM UTC
(In reply to Alex Christensen from comment #3) > Comment on attachment 337536 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=337536&action=review > > > Source/WebCore/loader/FrameLoader.cpp:3186 > > + FALLTHROUGH; > > I don't think this FALLTHROUGH is necessary here or above. > I also think this whole thing could be just shouldContinue != > ShouldContinue::No But I want to make sure all cases are always accounted for even if new ones are addddeddddddd!!!! > > > Source/WebCore/loader/PolicyChecker.h:60 > > +using NavigationPolicyDecisionFunction = WTF::CompletionHandler<void(ResourceRequest&&, FormState*, ShouldContinue)>; > > WTF:: could be removed. Sure
Alex Christensen
Comment 5 Monday, April 9, 2018 11:15:21 PM UTC
Comment on attachment 337536 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337536&action=review > Source/WebCore/loader/FrameLoader.cpp:3190 > + case ShouldContinue::ForSuspension: > + shouldContinueBool = true; > + case ShouldContinue::No: > + shouldContinueBool = false; Give me a break!
Brady Eidson
Comment 6 Monday, April 9, 2018 11:29:23 PM UTC
Brady Eidson
Comment 7 Monday, April 9, 2018 11:30:19 PM UTC
(In reply to Alex Christensen from comment #5) > Comment on attachment 337536 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=337536&action=review > > > Source/WebCore/loader/FrameLoader.cpp:3190 > > + case ShouldContinue::ForSuspension: > > + shouldContinueBool = true; > > + case ShouldContinue::No: > > + shouldContinueBool = false; > > Give me a break! No! (Okay maybe)
Brady Eidson
Comment 8 Monday, April 9, 2018 11:54:49 PM UTC
WebKit Commit Bot
Comment 9 Tuesday, April 10, 2018 1:31:08 AM UTC
Comment on attachment 337557 [details] Patch Clearing flags on attachment: 337557 Committed r230458: <https://trac.webkit.org/changeset/230458>
WebKit Commit Bot
Comment 10 Tuesday, April 10, 2018 1:31:09 AM UTC
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 Tuesday, April 10, 2018 1:32:19 AM UTC
Note You need to log in before you can comment on or make changes to this bug.