From 685954a487b289277d3acf0ad97c5e6fa45c44fa Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 5 Mar 2016 01:51:28 -0500 Subject: [PATCH] Fix translation breakage in Firefox 45 "new" now required before XMLHttpRequest() in chrome code --- chrome/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 index 7147b9d597..bc0c1bde4b 100644 --- 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");