diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-04-14 03:08:55 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-04-14 03:08:55 +0300 |
commit | ca258a9c56b725566acfcc117edcd9e8f324683d (patch) | |
tree | 21bfc3eaa0f63c245d6654eabaf2c084d7df13af /application/palemoon | |
parent | 60c526db500f4f0d177cd7467c0b40bc2a205c1d (diff) | |
download | UXP-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
Diffstat (limited to 'application/palemoon')
-rw-r--r-- | application/palemoon/components/sessionstore/_SessionFile.jsm | 5 |
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"}); |