summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-14 03:08:55 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-14 03:08:55 +0300
commitca258a9c56b725566acfcc117edcd9e8f324683d (patch)
tree21bfc3eaa0f63c245d6654eabaf2c084d7df13af
parent60c526db500f4f0d177cd7467c0b40bc2a205c1d (diff)
downloadUXP-ca258a9c56b725566acfcc117edcd9e8f324683d.tar
UXP-ca258a9c56b725566acfcc117edcd9e8f324683d.tar.gz
UXP-ca258a9c56b725566acfcc117edcd9e8f324683d.tar.lz
UXP-ca258a9c56b725566acfcc117edcd9e8f324683d.tar.xz
UXP-ca258a9c56b725566acfcc117edcd9e8f324683d.zip
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"});