From ca258a9c56b725566acfcc117edcd9e8f324683d Mon Sep 17 00:00:00 2001 From: JustOff Date: Sat, 14 Apr 2018 03:08:55 +0300 Subject: Use modern syntax to call NetUtil.newChannel() in _SessionFile.jsm --- application/palemoon/components/sessionstore/_SessionFile.jsm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'application/palemoon/components/sessionstore') 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"}); -- cgit v1.2.3