[Webkit-unassigned] [Bug 170906] New: Would like WKNavigationAction in decidePolicyForNavigationAction to have non-null sourceFrame when navigation triggered by window.location JS.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 17 10:09:32 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=170906
Bug ID: 170906
Summary: Would like WKNavigationAction in
decidePolicyForNavigationAction to have non-null
sourceFrame when navigation triggered by
window.location JS.
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Enhancement
Priority: P2
Component: WebKit API
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ansh_shukla at apple.com
Currently, if page A spawns page B using window.open, A can then navigate B by updating its window.location property. The decidePolicyNavigationAction callback that Safari gets when this happens will have a WKNavigationAction with null sourceFrame. We would like a way to detect when one page is navigating another through a window reference acquired through window.open. One way to do this would be to have a sourceFrame which correctly attributes the navigation to the frame whose JavaScript updated the window.location property.
Currently, it seems that all navigations triggered by changing the window.location property have null sourceFrame. This enhancement request is to have the callback pass the frame where JS updated window.location as the sourceFrame.
--
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/20170417/953c7319/attachment.html>
More information about the webkit-unassigned
mailing list