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

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

Issue 19625003: Fix 'RenderViewHostManagerTest.NoScriptAccessAfterSwapOut'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/browser/renderer_host/render_view_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 6229aa1f10dd3d5ff9a2bc04e04de1b830f375c8..29a43a576f835ac6854d5e7a5373572bdbe1cce8 100644
--- a/content/test/data/click-noreferrer-links.html
+++ b/content/test/data/click-noreferrer-links.html
@@ -39,8 +39,12 @@
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 url = w.location.href;
+ return true;
+ } catch (e) {
+ return false;
+ }
}
function testCloseWindow() {
« no previous file with comments | « content/browser/renderer_host/render_view_host_manager_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698