OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script> | |
5 | |
6 if (window.testRunner) | |
7 testRunner.dumpAsText(); | |
8 | |
9 window.onload = function() { | |
10 if (self.containing_frame.document.getElementById('plugin').destroyStream) | |
11 testPassed("containing frame was able to instantiate plugin"); | |
12 else | |
13 testFailed("containing frame was unable to instantiate plugin"); | |
14 | |
15 isSuccessfullyParsed(); | |
16 } | |
17 | |
18 </script> | |
19 </head> | 4 </head> |
20 <body> | 5 <body onload="finishJSTest()"> |
21 <iframe name="containing_frame" | 6 <iframe src="resources/sandboxed-iframe-about-blank.html"></iframe> |
22 src="resources/sandboxed-iframe-about-blank.html"> | |
23 </iframe> | |
24 | |
25 <p id="description"></p> | |
26 | |
27 <div id="console"></div> | |
28 | |
29 <script> | 7 <script> |
| 8 jsTestIsAsync = true; |
30 description("This test verifies that sandboxing 'about:blank' does not make
the containing frame sandboxed."); | 9 description("This test verifies that sandboxing 'about:blank' does not make
the containing frame sandboxed."); |
31 </script> | 10 </script> |
32 </body> | 11 </body> |
33 </html> | 12 </html> |
OLD | NEW |