summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-13 21:13:29 -0400
committerGitHub <noreply@github.com>2018-04-13 21:13:29 -0400
commit8437051001314731d8f19610061eba318204cb32 (patch)
tree21bfc3eaa0f63c245d6654eabaf2c084d7df13af
parent60c526db500f4f0d177cd7467c0b40bc2a205c1d (diff)
parentca258a9c56b725566acfcc117edcd9e8f324683d (diff)
downloadUXP-8437051001314731d8f19610061eba318204cb32.tar
UXP-8437051001314731d8f19610061eba318204cb32.tar.gz
UXP-8437051001314731d8f19610061eba318204cb32.tar.lz
UXP-8437051001314731d8f19610061eba318204cb32.tar.xz
UXP-8437051001314731d8f19610061eba318204cb32.zip
Merge pull request #153 from JustOff/PR_SessionFile_NetUtil.newChannel
Use modern syntax to call NetUtil.newChannel() in _SessionFile.jsm
-rw-r--r--application/palemoon/components/sessionstore/_SessionFile.jsm5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/palemoon/components/sessionstore/_SessionFile.jsm b/application/palemoon/components/sessionstore/_SessionFile.jsm
index e949112f2..9d40b9cca 100644
--- a/application/palemoon/components/sessionstore/_SessionFile.jsm
+++ b/application/palemoon/components/sessionstore/_SessionFile.jsm
@@ -156,7 +156,10 @@ let SessionFileInternal = {
let text;
try {
let file = new FileUtils.File(aPath);
- let chan = NetUtil.newChannel(file);
+ let chan = NetUtil.newChannel({
+ uri: NetUtil.newURI(file),
+ loadUsingSystemPrincipal: true
+ });
let stream = chan.open();
text = NetUtil.readInputStreamToString(stream, stream.available(),
{charset: "utf-8"});