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

Unified Diff: content/test/data/click-noreferrer-links.html

Issue 162083002: Fix and re-enable NoScriptAccessAfterSwapOut test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch Created 6 years, 10 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/click-noreferrer-links.html
diff --git a/content/test/data/click-noreferrer-links.html b/content/test/data/click-noreferrer-links.html
index f195d657540611ca23f4c139578c0f8a3db58ddb..536188e929a172e560cc27a259ee7fd46b1e2a5a 100644
--- a/content/test/data/click-noreferrer-links.html
+++ b/content/test/data/click-noreferrer-links.html
@@ -38,9 +38,13 @@
function testScriptAccessToWindow() {
// Grab a reference to the existing foo window and access its location.
- var w = window.open("", "foo");
- var url = w.location.href;
- return url != undefined;
+ try {
+ var w = window.open("", "foo");
+ var url = w.location.href;
+ return url != undefined;
+ } catch (e) {
+ return false;
+ }
}
function testCloseWindow() {
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698