From 007bc315cc1763618b4fe6c1d0d17ed6188bbd8f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 24 Jun 2020 03:38:31 -0400 Subject: [PATCH] Fix deprecation warning when using AsyncChannel in protocol handler --- components/zotero-protocol-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js index 5ec33ea5fc..b2356283ec 100644 --- a/components/zotero-protocol-handler.js +++ b/components/zotero-protocol-handler.js @@ -1298,7 +1298,7 @@ AsyncChannel.prototype = { } Components.utils.import("resource://gre/modules/NetUtil.jsm"); - NetUtil.asyncFetch(data, function (inputStream, status) { + NetUtil.asyncFetch({ uri: data, loadUsingSystemPrincipal: true }, function (inputStream, status) { if (!Components.isSuccessCode(status)) { reject(); return;