Don't always use cross-site mode
This commit is contained in:
parent
31bc445e4c
commit
252255c2eb
1 changed files with 4 additions and 3 deletions
|
@ -232,12 +232,13 @@ Zotero.Utilities.Translate.prototype.processDocuments = function(urls, processor
|
||||||
var hiddenBrowser = Zotero.HTTP.processDocuments(urls, function(doc) {
|
var hiddenBrowser = Zotero.HTTP.processDocuments(urls, function(doc) {
|
||||||
if(!processor) return;
|
if(!processor) return;
|
||||||
|
|
||||||
if(Zotero.isFx && (loc.protocol !== doc.protocol || loc.host !== doc.host)) {
|
var newLoc = doc.location;
|
||||||
|
if(Zotero.isFx && (loc.protocol !== newLoc.protocol || loc.host !== newLoc.host)) {
|
||||||
// Cross-site; need to serialize and unserialize
|
// Cross-site; need to serialize and unserialize
|
||||||
processor(Zotero.Translate.SandboxManager.Fx5DOMWrapper(doc));
|
processor(Zotero.Translate.SandboxManager.Fx5DOMWrapper(doc, newLoc.toString()));
|
||||||
} else {
|
} else {
|
||||||
// Not cross-site; no need to wrap
|
// Not cross-site; no need to wrap
|
||||||
processor(doc);
|
processor(doc, newLoc.toString());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
|
|
Loading…
Reference in a new issue