www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 685954a487b289277d3acf0ad97c5e6fa45c44fa
parent 5a117775871c61e4d9908b70932afd0436c4873f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat,  5 Mar 2016 01:51:28 -0500

Fix translation breakage in Firefox 45

"new" now required before XMLHttpRequest() in chrome code

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_firefox.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -405,7 +405,7 @@ Zotero.Translate.SandboxManager = function(sandboxLocation) { var wrappedObj = obj.wrappedJSObject || obj; wrappedObj.__exposedProps__ = {"parseFromString":"r"}; wrappedObj.parseFromString = function(str, contentType) { - var xhr = sandbox.XMLHttpRequest(); + var xhr = new sandbox.XMLHttpRequest(); xhr.open("GET", "data:"+contentType+";charset=utf-8,"+encodeURIComponent(str), false); xhr.send(); if (!xhr.responseXML) throw new Error("error parsing XML");