Summary: | Expand WebCore policy concept of "shouldContinue" to allow for more than true/false | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Brady Eidson <beidson> | ||||||||||
Component: | WebCore Misc. | Assignee: | Brady Eidson <beidson> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | achristensen, aestes, cdumez, commit-queue, dbates, ews-watchlist, japhet, webkit-bug-importer | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Attachments: |
|
Description
Brady Eidson
2018-04-09 12:24:33 PDT
Created attachment 337525 [details]
Patch
Created attachment 337536 [details]
Patch
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. (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 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! Created attachment 337554 [details]
Patch
(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) Created attachment 337557 [details]
Patch
Comment on attachment 337557 [details] Patch Clearing flags on attachment: 337557 Committed r230458: <https://trac.webkit.org/changeset/230458> All reviewed patches have been landed. Closing bug. |