2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.waitUntilDone();
7 window
.onload = function()
9 frame
= document
.body
.appendChild(document
.createElement("iframe"));
10 wnd
= frame
.contentWindow
;
13 wnd
.location
= "about:blank";
14 frame
.onload = function() {
15 selection
= func("return getSelection()")();
17 wnd
.location
= "http://localhost:8000/security/resources/innocent-victim.html";
18 frame
.onload = function() {
22 selection
.baseNode
.constructor.constructor.constructor("alert(document.body.innerHTML)")()
26 if (window
.testRunner
)
27 testRunner
.notifyDone();
32 This tests passes if it doesn't alert the contents of innocent-victim.html.