WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173657
Some tests to verify forbidden frame navigation time out
https://bugs.webkit.org/show_bug.cgi?id=173657
Summary
Some tests to verify forbidden frame navigation time out
Frédéric Wang (:fredw)
Reported
2017-06-21 09:49:26 PDT
The following tests time out in WebKit but they don't in Gecko or Chromium:
http://w3c-test.org/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_top_navigation-2.html
http://w3c-test.org/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigate_ancestor-1.html
Apparently the Javascript error caused by Document::canNavigate is not caught by the try statement which prevents the tests to complete. (Note: timeouts also happen for iframe_sandbox_popups_escaping-3, iframe_sandbox_popups_nonescaping-3, and iframe_sandbox_allow_top_navigation_by_user_activation_without_user_gesture but this is because of incomplete implementation, see
bug 173162
and
bug 171327
).
Attachments
Patch
(22.62 KB, patch)
2017-06-26 04:22 PDT
,
Frédéric Wang (:fredw)
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-elcapitan
(987.21 KB, application/zip)
2017-06-26 05:21 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
(1.16 MB, application/zip)
2017-06-26 05:30 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews126 for ios-simulator-wk2
(20.28 MB, application/zip)
2017-06-26 05:54 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews113 for mac-elcapitan
(1.75 MB, application/zip)
2017-06-26 05:56 PDT
,
Build Bot
no flags
Details
Patch
(23.25 KB, patch)
2017-06-26 06:34 PDT
,
Frédéric Wang (:fredw)
no flags
Details
Formatted Diff
Diff
Patch
(23.54 KB, patch)
2017-06-27 00:32 PDT
,
Frédéric Wang (:fredw)
cdumez
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2017-06-26 04:22:46 PDT
Created
attachment 313824
[details]
Patch
Build Bot
Comment 2
2017-06-26 05:21:44 PDT
Comment on
attachment 313824
[details]
Patch
Attachment 313824
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/4000224
New failing tests: fast/frames/sandboxed-iframe-navigation-top-denied.html http/tests/security/frameNavigation/inactive-function-in-popup-navigate-child.html
Build Bot
Comment 3
2017-06-26 05:21:46 PDT
Created
attachment 313829
[details]
Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 4
2017-06-26 05:30:24 PDT
Comment on
attachment 313824
[details]
Patch
Attachment 313824
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/4000288
New failing tests: fast/frames/sandboxed-iframe-navigation-top-denied.html http/tests/security/frameNavigation/inactive-function-in-popup-navigate-child.html
Build Bot
Comment 5
2017-06-26 05:30:26 PDT
Created
attachment 313830
[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 6
2017-06-26 05:54:24 PDT
Comment on
attachment 313824
[details]
Patch
Attachment 313824
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/4000305
New failing tests: fast/frames/sandboxed-iframe-navigation-top-denied.html http/tests/security/frameNavigation/inactive-function-in-popup-navigate-child.html
Build Bot
Comment 7
2017-06-26 05:54:26 PDT
Created
attachment 313831
[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Build Bot
Comment 8
2017-06-26 05:56:24 PDT
Comment on
attachment 313824
[details]
Patch
Attachment 313824
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/4000303
New failing tests: fast/frames/sandboxed-iframe-navigation-top-denied.html http/tests/security/frameNavigation/inactive-function-in-popup-navigate-child.html
Build Bot
Comment 9
2017-06-26 05:56:25 PDT
Created
attachment 313832
[details]
Archive of layout-test-results from ews113 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Frédéric Wang (:fredw)
Comment 10
2017-06-26 06:34:53 PDT
Created
attachment 313833
[details]
Patch
Chris Dumez
Comment 11
2017-06-26 19:14:23 PDT
Comment on
attachment 313833
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=313833&action=review
> Source/WebCore/page/Location.cpp:287 > + return Exception { SECURITY_ERR };
While this gives the right behavior, it is a bit obscure to return a SECURITY_ERR if findFrameForNavigation() returns null. Instead, I would stop relying on findFrameForNavigation() altogether (we are anyway not looking up a frame). Something like: ASSERT(m_frame); if (!activeWindow.document().canNavigate(m_frame)) return Exception { SECURITY_ERR }; ASSERT(m_frame->document()); ASSERT(m_frame->document()->domWindow()); m_frame->document()->domWindow()->setLocation(activeWindow, firstWindow, url); return { };
Frédéric Wang (:fredw)
Comment 12
2017-06-27 00:32:45 PDT
Created
attachment 313903
[details]
Patch
Chris Dumez
Comment 13
2017-06-27 08:53:55 PDT
Comment on
attachment 313903
[details]
Patch r=me
Frédéric Wang (:fredw)
Comment 14
2017-06-27 08:59:58 PDT
Committed
r218835
: <
http://trac.webkit.org/changeset/218835
>
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