From 6a8ba478553625a31b47e726d04c608d955c6b93 Mon Sep 17 00:00:00 2001 From: Ascrod <32915892+Ascrod@users.noreply.github.com> Date: Sat, 7 Jul 2018 07:52:35 -0400 Subject: Revert "Bug 1456652 - SameSite cookie Reader view patch bypass" This reverts commit 6f64e487f35986f093dbb002d12554a61021b2c9. --- toolkit/components/reader/ReaderMode.jsm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'toolkit/components/reader/ReaderMode.jsm') 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; }, /** -- cgit v1.2.3