Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-DENIED-top-navigation-without-user-gesture.html

Issue 2642163002: Disable console output from the test, to ignore msg diff for x-site frames. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpChildFramesAsText(); 6 testRunner.dumpChildFramesAsText();
7 testRunner.setDumpConsoleMessages(true); 7 testRunner.setDumpConsoleMessages(false);
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 } 9 }
10 10
11 window.addEventListener("message", e => { 11 window.addEventListener("message", e => {
12 if (e.data == "PASS") 12 if (e.data == "PASS")
13 testRunner.notifyDone(); 13 testRunner.notifyDone();
14 else 14 else
15 testRunner.testFailed("'top.location' didn't throw."); 15 testRunner.testFailed("'top.location' didn't throw.");
16 }); 16 });
17 </script> 17 </script>
18 </head> 18 </head>
19 <body> 19 <body>
20 <p>This tests that an iframe in sandbox with 'allow-top-navigation-with-user -activation' 20 <p>This tests that an iframe in sandbox with 'allow-top-navigation-with-user -activation'
21 cannot navigate its top level page, if it is not trigged by a user gesture.< /p> 21 cannot navigate its top level page, if it is not trigged by a user gesture.< /p>
22 <iframe sandbox='allow-top-navigation-with-user-activation allow-scripts' sr c="http://localhost:8000/security/frameNavigation/resources/iframe-that-performs -top-navigation-without-user-gesture-failed.html"></iframe> 22 <iframe sandbox='allow-top-navigation-with-user-activation allow-scripts' sr c="http://localhost:8000/security/frameNavigation/resources/iframe-that-performs -top-navigation-without-user-gesture-failed.html"></iframe>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-DENIED-top-navigation-without-user-gesture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698