diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index caeb873014..b99806ea75 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -558,7 +558,8 @@ Zotero.Attachments = new function(){ reject(e); }, true, - cookieSandbox + cookieSandbox, + { allowImages: true } ); }); }; diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index e001fe6eb9..44a3c28acd 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -1217,9 +1217,10 @@ Zotero.HTTP = new function() { * @param {Boolean} dontDelete Don't delete the hidden browser upon completion; calling function * must call deleteHiddenBrowser itself. * @param {Zotero.CookieSandbox} [cookieSandbox] Cookie sandbox object + * @param {Object} [docShellPrefs] See Zotero.Browser.createHiddenBrowser * @return {browser} Hidden browser used for loading */ - this.loadDocuments = function (urls, processor, onDone, onError, dontDelete, cookieSandbox) { + this.loadDocuments = function (urls, processor, onDone, onError, dontDelete, cookieSandbox, docShellPrefs={}) { // (Approximately) how many seconds to wait if the document is left in the loading state and // pageshow is called before we call pageshow with an incomplete document const LOADING_STATE_TIMEOUT = 120; @@ -1349,6 +1350,9 @@ Zotero.HTTP = new function() { currentURL = 0; for(var i=0; i