Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: LayoutTests/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698