diff options
Diffstat (limited to 'toolkit/components/reader/ReaderMode.jsm')
-rw-r--r-- | toolkit/components/reader/ReaderMode.jsm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/toolkit/components/reader/ReaderMode.jsm b/toolkit/components/reader/ReaderMode.jsm index 6641e7387..e9eb83154 100644 --- a/toolkit/components/reader/ReaderMode.jsm +++ b/toolkit/components/reader/ReaderMode.jsm @@ -119,18 +119,7 @@ this.ReaderMode = { } } - let referrerURI, principal; - try { - referrerURI = Services.io.newURI(url); - principal = Services.scriptSecurityManager.createCodebasePrincipal( - referrerURI, win.document.nodePrincipal.originAttributes); - } catch (e) { - Cu.reportError(e); - return; - } - let flags = webNav.LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL | - webNav.LOAD_FLAGS_DISALLOW_INHERIT_OWNER; - webNav.loadURI(originalURL, flags, referrerURI, null, null, principal); + win.document.location = originalURL; }, /** |