summaryrefslogtreecommitdiffstats
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
UXP-6a8ba478553625a31b47e726d04c608d955c6b93.tar.gz
UXP-6a8ba478553625a31b47e726d04c608d955c6b93.tar.lz
UXP-6a8ba478553625a31b47e726d04c608d955c6b93.tar.xz
UXP-6a8ba478553625a31b47e726d04c608d955c6b93.zip
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 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;
},
/**