WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176088
Stop using PolicyCallback
https://bugs.webkit.org/show_bug.cgi?id=176088
Summary
Stop using PolicyCallback
Alex Christensen
Reported
2017-08-29 19:41:23 PDT
Stop using PolicyCallback
Attachments
Patch
(29.16 KB, patch)
2017-08-29 19:43 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(29.72 KB, patch)
2017-08-30 10:33 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(29.74 KB, patch)
2017-08-31 13:39 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(29.79 KB, patch)
2017-09-25 15:12 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(29.81 KB, patch)
2017-09-25 15:24 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2017-08-29 19:43:32 PDT
Created
attachment 319324
[details]
Patch
Alex Christensen
Comment 2
2017-08-29 20:36:08 PDT
Comment on
attachment 319324
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319324&action=review
> Source/WebCore/loader/PolicyChecker.cpp:-184 > m_frame.loader().client().cancelPolicyCheck(); > - PolicyCallback callback = WTFMove(m_callback); > - callback.cancel();
Cancelling the callback is now the responsibility of the FrameLoaderClient, to whom we have given the lambda. That is why there are changes in WebKit and WebKitLegacy where the FrameLoaderClient::cancelPolicyCheck finds the lambda it has stored.
Alex Christensen
Comment 3
2017-08-30 10:33:05 PDT
Created
attachment 319378
[details]
Patch
Andy Estes
Comment 4
2017-08-31 13:34:39 PDT
Comment on
attachment 319378
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319378&action=review
> Source/WebCore/loader/PolicyChecker.cpp:147 > + ResourceRequest requestCopy = request; > + m_frame.loader().client().dispatchDecidePolicyForNavigationAction(action, request, didReceiveRedirectResponse, formState, [this, function = WTFMove(function), request = WTFMove(requestCopy), formState = makeRefPtr(formState), suggestedFilename = WTFMove(suggestedFilename)](PolicyAction policyAction) mutable {
You can just capture request by value instead of explicitly making a copy.
Alex Christensen
Comment 5
2017-08-31 13:39:06 PDT
Created
attachment 319513
[details]
Patch
WebKit Commit Bot
Comment 6
2017-08-31 13:40:06 PDT
Comment on
attachment 319513
[details]
Patch Rejecting
attachment 319513
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 319513, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WebKit/ChangeLog contains OOPS!. Full output:
http://webkit-queues.webkit.org/results/4418705
Alex Christensen
Comment 7
2017-09-25 15:12:20 PDT
Created
attachment 321750
[details]
Patch
Alex Christensen
Comment 8
2017-09-25 15:24:02 PDT
Created
attachment 321757
[details]
Patch
Alex Christensen
Comment 9
2017-09-25 15:33:35 PDT
http://trac.webkit.org/r222472
Radar WebKit Bug Importer
Comment 10
2017-09-27 12:59:31 PDT
<
rdar://problem/34694436
>
Michael Catanzaro
Comment 11
2017-10-26 16:52:47 PDT
***
Bug 175913
has been marked as a duplicate of this bug. ***
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