diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 18be915d46..99f05d4504 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -264,9 +264,8 @@ Zotero.HTTP = new function() { var deferred = Zotero.Promise.defer(); - if (!this.mock) { - var xmlhttp = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"] - .createInstance(); + if (!this.mock || url.startsWith('resource://') || url.startsWith('chrome://')) { + var xmlhttp = new XMLHttpRequest(); } else { var xmlhttp = new this.mock;