Bug 1297370 - Provide security flag for channel within snapshotlist. r=gijs

This commit is contained in:
Christoph Kerschbaumer
2016-08-23 15:42:14 +02:00
parent c716fbb2ca
commit eb44ce9d61

View File

@@ -362,9 +362,7 @@ var SnapshotsListView = Heritage.extend(WidgetMethods, {
}
let channel = NetUtil.newChannel({
uri: NetUtil.newURI(fp.file),
loadingNode: window.document,
contentPolicyType: Ci.nsIContentPolicy.TYPE_OTHER});
uri: NetUtil.newURI(fp.file), loadUsingSystemPrincipal: true});
channel.contentType = "text/plain";
NetUtil.asyncFetch(channel, (inputStream, status) => {