Bug 1297370 - Provide security flag for channel within snapshotlist. r=gijs a=lizzard
authorChristoph Kerschbaumer <ckerschb@christophkerschbaumer.com>
Tue, 23 Aug 2016 15:42:14 +0200
changeset 342494 502244180db40fb88c5345d63c8fe34dc7bed37b
parent 342493 108dd19a4e6bea1f54da899b83413382d1825d6c
child 342495 7883a513cc6a78c3fc2bd814d0bff2504d5cbeef
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs, lizzard
bugs1297370
milestone49.0
Bug 1297370 - Provide security flag for channel within snapshotlist. r=gijs a=lizzard
devtools/client/canvasdebugger/snapshotslist.js
--- a/devtools/client/canvasdebugger/snapshotslist.js
+++ b/devtools/client/canvasdebugger/snapshotslist.js
@@ -357,19 +357,17 @@ var SnapshotsListView = Heritage.extend(
     fp.appendFilter(L10N.getStr("snapshotsList.saveDialogJSONFilter"), "*.json");
     fp.appendFilter(L10N.getStr("snapshotsList.saveDialogAllFilter"), "*.*");
 
     if (fp.show() != Ci.nsIFilePicker.returnOK) {
       return;
     }
 
     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) => {
       if (!Components.isSuccessCode(status)) {
         console.error("Could not import recorded animation frame snapshot file.");
         return;
       }
       try {