WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187975
Use CompletionHandler for policy decisions
https://bugs.webkit.org/show_bug.cgi?id=187975
Summary
Use CompletionHandler for policy decisions
Alex Christensen
Reported
2018-07-24 15:26:42 PDT
Use CompletionHandler for policy decisions
Attachments
Patch
(17.64 KB, patch)
2018-07-24 15:35 PDT
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews200 for win-future
(12.80 MB, application/zip)
2018-07-24 18:52 PDT
,
EWS Watchlist
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2018-07-24 15:35:17 PDT
Created
attachment 345720
[details]
Patch
EWS Watchlist
Comment 2
2018-07-24 18:52:27 PDT
Comment on
attachment 345720
[details]
Patch
Attachment 345720
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/8644755
New failing tests: http/tests/security/canvas-remote-read-remote-video-localhost.html
EWS Watchlist
Comment 3
2018-07-24 18:52:38 PDT
Created
attachment 345734
[details]
Archive of layout-test-results from ews200 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Chris Dumez
Comment 4
2018-07-25 08:41:17 PDT
Comment on
attachment 345720
[details]
Patch r=me
WebKit Commit Bot
Comment 5
2018-07-25 09:08:01 PDT
Comment on
attachment 345720
[details]
Patch Clearing flags on attachment: 345720 Committed
r234196
: <
https://trac.webkit.org/changeset/234196
>
WebKit Commit Bot
Comment 6
2018-07-25 09:08:03 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2018-07-25 09:10:17 PDT
<
rdar://problem/42585164
>
WebKit Commit Bot
Comment 8
2018-07-25 11:01:46 PDT
Re-opened since this is blocked by
bug 188011
Alex Christensen
Comment 9
2018-07-25 11:25:45 PDT
Comment on
attachment 345720
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345720&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:4121 > + receivedPolicyDecision(policyAction, frame.get(), listenerID, nullptr, std::nullopt);
This nullptr should've been navigation.get() :|
Alex Christensen
Comment 10
2018-07-25 11:32:15 PDT
http://trac.webkit.org/r234210
Alex Christensen
Comment 11
2018-07-25 11:33:14 PDT
Comment on
attachment 345720
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345720&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:4022 > + RunLoop::main().dispatch([this, protectedThis = makeRef(*this), navigation = makeRef(*navigation), proposedProcess = WTFMove(proposedProcess)]() mutable {
I changed this from makeRef(*this) to WTFMove(protectedThis) because of the ol' MSVC-inconsistently-thinks-this-means-containing-lambda bug
Chris Dumez
Comment 12
2018-07-26 12:27:54 PDT
Comment on
attachment 345720
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345720&action=review
> Source/WebKit/UIProcess/WebPageProxy.cpp:4119 > + ASSERT_UNUSED(policies, !policies);
I am frequently hitting this assertion when browsing in debug :( Could you please look into it?
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