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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/no-popup-from-sandbox-top-expected.txt

Issue 2713283002: Turn on the flag for 'allow-top-navigation-by-user-activation'. (Closed)
Patch Set: Refine the error message for blocked navigation within sandboxed iframe. Created 3 years, 9 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 CONSOLE ERROR: line 1: Unsafe JavaScript attempt to initiate navigation for fram e with URL 'http://127.0.0.1:8000/security/no-popup-from-sandbox-top.html' from frame with URL 'data:text/html, <script> var win = window.open('abou t:blank', '_top'); console.log(win ? 'FAIL' : 'PASS'); </script>'. T he frame attempting navigation of the top-level window is sandboxed, but the 'al low-top-navigation' flag is not set. 1 CONSOLE ERROR: line 1: Unsafe JavaScript attempt to initiate navigation for fram e with URL 'http://127.0.0.1:8000/security/no-popup-from-sandbox-top.html' from frame with URL 'data:text/html, <script> var win = window.open('abou t:blank', '_top'); console.log(win ? 'FAIL' : 'PASS'); </script>'. T he frame attempting navigation of the top-level window is sandboxed, but the fla g of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.
2 2
3 CONSOLE MESSAGE: line 1: PASS 3 CONSOLE MESSAGE: line 1: PASS
4 To run this test outside of DumpRenderTree, please disable your popup blocker! 4 To run this test outside of DumpRenderTree, please disable your popup blocker!
5 5
6 6
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698