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

Unified Diff: LayoutTests/http/tests/security/inactive-document-with-empty-security-origin.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/inactive-document-with-empty-security-origin.html
diff --git a/LayoutTests/http/tests/security/inactive-document-with-empty-security-origin.html b/LayoutTests/http/tests/security/inactive-document-with-empty-security-origin.html
index 091ccee6938bd805986477bdaad57cc793418d02..7acf8c071b45d64f1d93a94945225922b3534cdb 100644
--- a/LayoutTests/http/tests/security/inactive-document-with-empty-security-origin.html
+++ b/LayoutTests/http/tests/security/inactive-document-with-empty-security-origin.html
@@ -18,7 +18,11 @@ blankWindow.onload = function() {
blankWindow.eval("location = 'about:blank'");
setTimeout(function() {
- blankFunc = blankFunc("return window.Function")();
+ try {
+ blankFunc = blankFunc("return window.Function")();
+ } catch (e) {
+ blankFunc = false;
+ }
if (!blankFunc && window.testRunner) {
testRunner.notifyDone()
return;

Powered by Google App Engine
This is Rietveld 408576698