blob: 1a7865e19ad3835377b7444da5884dd1971f3074 [file] [log] [blame]
CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/block-top-level-navigations-by-untrusted-first-party-iframes.html' from frame with URL 'http://127.0.0.1:8000/security/resources/navigate-top-level-frame-to-failure-page-untrusted-iframe.html'. The frame attempting navigation of the top-level window is cross-origin or untrusted and the user has never interacted with the frame.
CONSOLE MESSAGE: SecurityError: The operation is insecure.
CONSOLE MESSAGE: Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/block-top-level-navigations-by-untrusted-first-party-iframes.html' from frame with URL 'http://127.0.0.1:8000/security/resources/navigate-top-level-frame-to-failure-page-untrusted-iframe.html'. The frame attempting navigation of the top-level window is cross-origin or untrusted and the user has never interacted with the frame.
CONSOLE MESSAGE: SecurityError: The operation is insecure.
Test blocking of suspicious top-level navigations by a untrusted first-party iframe
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS All navigations by subframes have been blocked
PASS successfullyParsed is true
TEST COMPLETE