diff --git a/chrome/content/zotero/actors/PageDataChild.jsm b/chrome/content/zotero/actors/PageDataChild.jsm index e4eb4a0f88..c69de7982b 100644 --- a/chrome/content/zotero/actors/PageDataChild.jsm +++ b/chrome/content/zotero/actors/PageDataChild.jsm @@ -31,17 +31,18 @@ class PageDataChild extends JSWindowActorChild { case "channelInfo": { let docShell = this.contentWindow.docShell; - let channel = (docShell.currentDocumentChannel || docShell.failedChannel) - ?.QueryInterface(Ci.nsIHttpChannel); - if (channel) { - return { - responseStatus: channel.responseStatus, - responseStatusText: channel.responseStatusText - }; - } - else { - return null; + try { + let channel = (docShell.currentDocumentChannel || docShell.failedChannel) + ?.QueryInterface(Ci.nsIHttpChannel); + if (channel) { + return { + responseStatus: channel.responseStatus, + responseStatusText: channel.responseStatusText + }; + } } + catch (e) {} + return null; } } }