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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/sandboxed-iframe-navigation-top-denied-expected.txt

Issue 2371993003: Throw when blocking top-level navigation. (Closed)
Patch Set: Test. Created 4 years, 2 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 2: Unsafe JavaScript attempt to initiate navigation for fram e with URL 'navigate-top-to-fail.html'. The frame attempting navigation of the t op-level window is sandboxed, but the 'allow-top-navigation' flag is not set. 1 CONSOLE ERROR: line 2: Unsafe JavaScript attempt to initiate navigation for fram e with URL 'navigate-top-to-fail.html'. The frame attempting navigation of the t op-level window is sandboxed, but the 'allow-top-navigation' flag is not set.
2 2
3 CONSOLE ERROR: line 2: Uncaught SecurityError: Failed to set the 'location' prop erty on 'Window': The current window does not have permission to navigate the ta rget frame to 'fail-and-notify-done.html'.
3 This test verifies that a sandboxed IFrame cannot navigate the top-level frame w ithout allow-top-navigation. This test passes if the navigation does not occur. 4 This test verifies that a sandboxed IFrame cannot navigate the top-level frame w ithout allow-top-navigation. This test passes if the navigation does not occur.
4 5
5 6
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698