From 967c273ddb8d0694109b930b8a86f6ef1576da6c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 10 Jul 2015 13:54:30 +0800 Subject: [PATCH] Always use top window's context for resolving url Refs #2166. --- atom/renderer/lib/override.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/renderer/lib/override.coffee b/atom/renderer/lib/override.coffee index fad18943e772..85914b116fd6 100644 --- a/atom/renderer/lib/override.coffee +++ b/atom/renderer/lib/override.coffee @@ -3,7 +3,7 @@ ipc = require 'ipc' remote = require 'remote' # Helper function to resolve relative url. -a = document.createElement 'a' +a = window.top.document.createElement 'a' resolveUrl = (url) -> a.href = url a.href