[Webkit-unassigned] [Bug 170906] WKNavigationAction._shouldOpenExternalSchemes should return false for cross-frame navigations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 15 11:59:53 PDT 2017


--- Comment #9 from Brady Eidson <beidson at apple.com> ---
(In reply to Sam Weinig from comment #8)
> (In reply to Antti Koivisto from comment #5)
> > I didn't manage to make a test. The existing api tests for
> > _shouldOpenExternalSchemes don't load anything beyond the test document,
> > they cancel the navigations. Hitting this requires actual js-initiated
> > cross-origin navigation and there is no HTTP server for API tests. 
> > 
> > Maybe there is some good way to fake it but I don't see anything obvious.
> While there may be ways to work around this issue on a case by case basis
> (add SPI to define schemes as being http like, to allow a foo:// navigation
> bar:// act as a cross origin), I think we really need to solve this problem.
> Using httpd (or maybe the web-platform-tests python one) could be one
> solution, though it would be nice if could do it in process.

If the goal in this specific case is just to intercept the attempted cross origin navigation, then a custom protocol navigated *to* an http URL should trigger it... right?

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170615/f687b87a/attachment-0001.html>

More information about the webkit-unassigned mailing list