3 <script src=
"../../resources/js-test.js"></script>
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();
21 <p id=
"description"></p>
23 <div id=
"console"></div>
27 <iframe name=
"embedFrame1"
28 style=
"width: 200px; height: 100px;"
29 src=
"resources/sandboxed-iframe-plugins-frame-embed.html">
31 <iframe name=
"embedFrame2"
32 style=
"width: 200px; height: 100px;"
33 sandbox=
"allow-same-origin"
34 src=
"resources/sandboxed-iframe-plugins-frame-embed.html">
39 <iframe name=
"objectFrame1"
40 style=
"width: 200px; height: 100px;"
41 src=
"resources/sandboxed-iframe-plugins-frame-object.html">
43 <iframe name=
"objectFrame2"
44 style=
"width: 200px; height: 100px;"
45 sandbox=
"allow-same-origin"
46 src=
"resources/sandboxed-iframe-plugins-frame-object.html">
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.");