RESOLVED FIXED 183225
imported/w3c/web-platform-tests/html/browsers/windows/browsing-context.html fails with async policy delegates
https://bugs.webkit.org/show_bug.cgi?id=183225
Summary imported/w3c/web-platform-tests/html/browsers/windows/browsing-context.html f...
Chris Dumez
Reported 2018-02-28 15:13:27 PST
imported/w3c/web-platform-tests/html/browsers/windows/browsing-context.html fails with async policy delegates.
Attachments
WIP Patch (4.43 KB, patch)
2018-02-28 15:59 PST, Chris Dumez
no flags
Patch (6.55 KB, patch)
2018-02-28 16:04 PST, Chris Dumez
no flags
Patch (10.80 KB, patch)
2018-02-28 16:31 PST, Chris Dumez
no flags
Radar WebKit Bug Importer
Comment 1 2018-02-28 15:14:08 PST
Chris Dumez
Comment 2 2018-02-28 15:59:56 PST
Created attachment 334780 [details] WIP Patch
Chris Dumez
Comment 3 2018-02-28 16:04:35 PST
Chris Dumez
Comment 4 2018-02-28 16:31:22 PST
Alex Christensen
Comment 5 2018-03-01 08:36:35 PST
Comment on attachment 334783 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=334783&action=review > LayoutTests/fast/loader/iframe-src-invalid-url-expected.txt:-3 > - - decidePolicyForNavigationAction I agree with the idea that we need to continue synchronously in the WebProcess. We might need to do a decidePolicyForNavigationAction API call even though we've already continued for API compatibility.
Chris Dumez
Comment 6 2018-03-01 08:49:44 PST
(In reply to Alex Christensen from comment #5) > Comment on attachment 334783 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=334783&action=review > > > LayoutTests/fast/loader/iframe-src-invalid-url-expected.txt:-3 > > - - decidePolicyForNavigationAction > > I agree with the idea that we need to continue synchronously in the > WebProcess. We might need to do a decidePolicyForNavigationAction API call > even though we've already continued for API compatibility. Can we try this and fall back to doing the IPC if we realize it is really needed? I do not fully understand why we want to make the IPC call for about:blank. And we we do the IPC, we have to keep the IPC sync and we'll ignore the client's decision if they respond asynchronously. I'd rather we do not ask the client if we're not always going to obey their decision in all cases.
Alex Christensen
Comment 7 2018-03-01 09:01:53 PST
Comment on attachment 334783 [details] Patch Clients might use this delegate callback to update state about what iframe is showing what URL, not to actually make a decision. If you're willing to risk breaking such apps, and if you'll keep an eye out for such regressions, I'll r+ this change.
Chris Dumez
Comment 8 2018-03-01 09:04:00 PST
(In reply to Alex Christensen from comment #7) > Comment on attachment 334783 [details] > Patch > > Clients might use this delegate callback to update state about what iframe > is showing what URL, not to actually make a decision. If you're willing to > risk breaking such apps, and if you'll keep an eye out for such regressions, > I'll r+ this change. Yes, let's try. We know what to do as a fallback it is does cause breakage. For now, I'd rather try the more aggressive change.
Chris Dumez
Comment 9 2018-03-01 09:05:29 PST
Comment on attachment 334783 [details] Patch Clearing flags on attachment: 334783 Committed r229133: <https://trac.webkit.org/changeset/229133>
Chris Dumez
Comment 10 2018-03-01 09:05:30 PST
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 11 2018-03-01 10:44:07 PST
Follow-up API test fix in: https://trac.webkit.org/r229136
Note You need to log in before you can comment on or make changes to this bug.