OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <script src="/resources/testharness.js"></script> | |
5 <script src="/resources/testharnessreport.js"></script> | |
6 <script> | |
7 async_test(function(t) { | |
8 window.addEventListener("message", t.step_func_done(function(e) { | |
9 assert_equals(e.data, "PASS", "The message should say 'PASS' instead of 'F
AIL'"); | |
10 })); | |
11 }, "The sandboxed iframe should post a message saying the test was in the state
of 'PASS'."); | |
12 </script> | |
13 </head> | |
14 <body> | |
15 <p>This tests that an iframe in sandbox with 'allow-top-navigation-by-user-a
ctivation' | |
16 cannot navigate its top level page, if it is not trigged by a user gesture.<
/p> | |
17 <iframe sandbox='allow-top-navigation-by-user-activation allow-scripts' src=
"resources/iframe-that-performs-top-navigation-without-user-gesture-failed.html"
></iframe> | |
18 </body> | |
19 </html> | |
OLD | NEW |