summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/sessionstore/_SessionFile.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'application/palemoon/components/sessionstore/_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"});