| Index: LayoutTests/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html
|
| diff --git a/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html b/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html
|
| index 938316c9a21d023d0358c4da1e54199969d5127b..56a2bce815b24d0ec41b34d0b9a2d869b9cd85c1 100644
|
| --- a/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html
|
| +++ b/LayoutTests/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html
|
| @@ -39,14 +39,14 @@
|
| log("To run the test, click the button below when the frames finish loading.");
|
| var button = document.createElement("button");
|
| button.appendChild(document.createTextNode("Run Test"));
|
| - button.onclick = runTest;
|
| + button.onclick = runTest1;
|
| document.body.appendChild(button);
|
| }
|
| }
|
|
|
| pollForTest1 = function()
|
| {
|
| - if (!testRunner.globalFlag) {
|
| + if (window.testRunner && !testRunner.globalFlag) {
|
| setTimeout(pollForTest1, 1);
|
| return;
|
| }
|
| @@ -67,7 +67,7 @@
|
|
|
| pollForTest2 = function()
|
| {
|
| - if (!testRunner.globalFlag) {
|
| + if (window.testRunner && !testRunner.globalFlag) {
|
| setTimeout(pollForTest2, 1);
|
| return;
|
| }
|
| @@ -86,7 +86,7 @@
|
|
|
| pollForDone = function()
|
| {
|
| - if (!testRunner.globalFlag) {
|
| + if (window.testRunner && !testRunner.globalFlag) {
|
| setTimeout(pollForDone, 1);
|
| return;
|
| }
|
|
|