summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2018-07-07 07:52:35 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2018-07-07 07:52:35 -0400
commit6a8ba478553625a31b47e726d04c608d955c6b93 (patch)
tree6ee1dfec0323da93cadb590df77a9f06fbc043ba /toolkit
parent6f64e487f35986f093dbb002d12554a61021b2c9 (diff)
downloaduxp-6a8ba478553625a31b47e726d04c608d955c6b93.tar.gz
Revert "Bug 1456652 - SameSite cookie Reader view patch bypass"
This reverts commit 6f64e487f35986f093dbb002d12554a61021b2c9.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/reader/ReaderMode.jsm13
1 files changed, 1 insertions, 12 deletions
diff --git a/toolkit/components/reader/ReaderMode.jsm b/toolkit/components/reader/ReaderMode.jsm
index 6641e7387d..e9eb83154e 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;
},
/**