Commit f5f808cd authored by japhet's avatar japhet Committed by Commit bot

Fix framebusting tests for --site-per-process

BUG=644997

Review-Url: https://codereview.chromium.org/2346643002
Cr-Commit-Position: refs/heads/master@{#418923}
parent d5752d81
...@@ -66,6 +66,7 @@ http/tests/intersection-observer/iframe-cross-origin.html [ Timeout ] ...@@ -66,6 +66,7 @@ http/tests/intersection-observer/iframe-cross-origin.html [ Timeout ]
# https://crbug.com/616608 - Test-generated mouse click doesn't work with --site-per-process. # https://crbug.com/616608 - Test-generated mouse click doesn't work with --site-per-process.
http/tests/security/referrer-policy-redirect-link.html [ Timeout ] http/tests/security/referrer-policy-redirect-link.html [ Timeout ]
http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change.html [ Timeout ]
# https://crbug.com/616626 - allow_universal_access_from_file_urls doesn't work with --site-per-process. # https://crbug.com/616626 - allow_universal_access_from_file_urls doesn't work with --site-per-process.
http/tests/local/drag-over-remote-content.html [ Timeout ] http/tests/local/drag-over-remote-content.html [ Timeout ]
...@@ -94,11 +95,6 @@ http/tests/inspector/extensions-useragent.html [ Timeout ] ...@@ -94,11 +95,6 @@ http/tests/inspector/extensions-useragent.html [ Timeout ]
# https://crbug.com/623265 - cross-site navigation in main page breaks test. # https://crbug.com/623265 - cross-site navigation in main page breaks test.
http/tests/inspector/indexeddb/resources-panel.html [ Timeout ] http/tests/inspector/indexeddb/resources-panel.html [ Timeout ]
# http://crbug.com/644997 - framebusting changes broke several test expectations.
http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change.html [ Timeout ]
http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html [ Failure ]
http/tests/security/xss-DENIED-window-open-parent.html [ Failure ]
# https://crbug.com/645641 - test_runner.cc(1863) Check failed: # https://crbug.com/645641 - test_runner.cc(1863) Check failed:
# layout_test_runtime_flags_.have_top_loading_frame() # layout_test_runtime_flags_.have_top_loading_frame()
imported/wpt/html/syntax/parsing/html5lib_tests19.html [ Crash Failure ] imported/wpt/html/syntax/parsing/html5lib_tests19.html [ Crash Failure ]
......
CONSOLE ERROR: line 7: Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html' from frame with URL 'http://localhost:8000/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html'. The frame attempting navigation is targeting its top-level window, but is neither same-origin with its target nor is it processing a user gesture. See https://www.chromestatus.com/features/5851021045661696.
-------- --------
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
if (window.testRunner) { if (window.testRunner) {
testRunner.dumpAsText(); testRunner.dumpAsText();
testRunner.dumpChildFramesAsText(); testRunner.dumpChildFramesAsText();
testRunner.setDumpConsoleMessages(false);
} }
</script> </script>
</head> </head>
......
CONSOLE ERROR: line 2: Unsafe JavaScript attempt to initiate navigation for frame with URL 'http://127.0.0.1:8000/security/xss-DENIED-window-open-parent.html' from frame with URL 'http://localhost:8080/security/resources/xss-DENIED-window-open-parent-attacker.html'. The frame attempting navigation is targeting its top-level window, but is neither same-origin with its target nor is it processing a user gesture. See https://www.chromestatus.com/features/5851021045661696.
This test passes if there is no alert dialog. This test passes if there is no alert dialog.
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<script> <script>
if (window.testRunner) { if (window.testRunner) {
testRunner.dumpAsText(); testRunner.dumpAsText();
testRunner.setDumpConsoleMessages(false);
testRunner.waitUntilDone(); testRunner.waitUntilDone();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment