diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 0d456abf95..efb36742dc 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -563,7 +563,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 92fb00241b..a8a91f10dd 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; @@ -1342,6 +1343,9 @@ Zotero.HTTP = new function() { currentURL = 0; for(var i=0; i