Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / sandboxed-iframe-plugins.html
bloba5fb977ff922f68c62a03fdfc40b8e5ac874f625
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 window.onload = function() {
9 shouldBeTrue("(self.embedFrame1.document.getElementById('plugin').destroyStream) != undefined");
10 shouldBeTrue("(self.embedFrame2.document.getElementById('plugin').destroyStream) == undefined");
12 shouldBeTrue("(self.objectFrame1.document.getElementById('plugin').destroyStream) != undefined");
13 shouldBeTrue("(self.objectFrame2.document.getElementById('plugin').destroyStream) == undefined");
15 isSuccessfullyParsed();
17 </script>
18 </head>
20 <body>
21 <p id="description"></p>
23 <div id="console"></div>
25 <!-- Embeds -->
27 <iframe name="embedFrame1"
28 style="width: 200px; height: 100px;"
29 src="resources/sandboxed-iframe-plugins-frame-embed.html">
30 </iframe>
31 <iframe name="embedFrame2"
32 style="width: 200px; height: 100px;"
33 sandbox="allow-same-origin"
34 src="resources/sandboxed-iframe-plugins-frame-embed.html">
35 </iframe>
37 <!-- Objects -->
39 <iframe name="objectFrame1"
40 style="width: 200px; height: 100px;"
41 src="resources/sandboxed-iframe-plugins-frame-object.html">
42 </iframe>
43 <iframe name="objectFrame2"
44 style="width: 200px; height: 100px;"
45 sandbox="allow-same-origin"
46 src="resources/sandboxed-iframe-plugins-frame-object.html">
47 </iframe>
49 <script>
50 description("This test verifies that sandboxing of plugins works as intended. Two tests are made, each in one sandboxed and one non-sandboxed IFrame: embeds and objects.");
51 </script>
52 </body>
53 </html>