WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
2018-04-09 12:24:33 PDT
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
Details
Formatted Diff
Diff
Patch
(21.25 KB, patch)
2018-04-09 13:42 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch
(21.10 KB, patch)
2018-04-09 15:29 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch
(21.34 KB, patch)
2018-04-09 15:54 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2018-04-09 12:28:16 PDT
Comment hidden (obsolete)
Created
attachment 337525
[details]
Patch
Brady Eidson
Comment 2
2018-04-09 13:42:31 PDT
Created
attachment 337536
[details]
Patch
Alex Christensen
Comment 3
2018-04-09 13:56:28 PDT
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
2018-04-09 14:30:28 PDT
(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
2018-04-09 15:15:21 PDT
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
2018-04-09 15:29:23 PDT
Created
attachment 337554
[details]
Patch
Brady Eidson
Comment 7
2018-04-09 15:30:19 PDT
(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
2018-04-09 15:54:49 PDT
Created
attachment 337557
[details]
Patch
WebKit Commit Bot
Comment 9
2018-04-09 17:31:08 PDT
Comment on
attachment 337557
[details]
Patch Clearing flags on attachment: 337557 Committed
r230458
: <
https://trac.webkit.org/changeset/230458
>
WebKit Commit Bot
Comment 10
2018-04-09 17:31:09 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11
2018-04-09 17:32:19 PDT
<
rdar://problem/39299789
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug