diff --git a/chrome/content/zotero/locale/csl b/chrome/content/zotero/locale/csl index 36d26a584a..92270bbba9 160000 --- a/chrome/content/zotero/locale/csl +++ b/chrome/content/zotero/locale/csl @@ -1 +1 @@ -Subproject commit 36d26a584ac869f2dfbdd528f57141a3bbcf016f +Subproject commit 92270bbba9fb59a57042003a7637afc8e694a94f diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index fa09774878..0d6e66698e 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -41,18 +41,6 @@ const ZoteroStandalone = new function() { ZoteroPane.init(); ZoteroPane.makeVisible(); - // Run check for corrupt installation, where the wrong Gecko runtime is being used - if(Zotero.isMac && Zotero.isStandalone) { - var greDir = Components.classes["@mozilla.org/file/directory_service;1"] - .getService(Components.interfaces.nsIProperties) - .get("GreD", Components.interfaces.nsIFile); - if(greDir.isSymlink() || greDir.leafName !== "Current") { - var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] - .getService(Components.interfaces.nsIPromptService); - ps.alert(null, "", Zotero.getString('standalone.corruptInstallation')); - } - } - // Don't ask before handing http and https URIs var eps = Components.classes['@mozilla.org/uriloader/external-protocol-service;1'] .getService(Components.interfaces.nsIExternalProtocolService); diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 08f375b629..aea72cefe0 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -667,8 +667,9 @@ Zotero.HTTP = new function() { * @inner */ var onLoad = function() { - var doc = hiddenBrowser.contentDocument, - url = doc.location.href.toString(); + var doc = hiddenBrowser.contentDocument; + if(!doc) return; + var url = doc.location.href.toString(); if(url == "about:blank") return; if(doc.readyState === "loading" && firedLoadEvent < 120) { // Try again in a second diff --git a/chrome/content/zotero/xpcom/translation/translate_firefox.js b/chrome/content/zotero/xpcom/translation/translate_firefox.js index 3b76356949..ef2ef489d6 100644 --- a/chrome/content/zotero/xpcom/translation/translate_firefox.js +++ b/chrome/content/zotero/xpcom/translation/translate_firefox.js @@ -402,14 +402,13 @@ Zotero.Translate.SandboxManager = function(sandboxLocation) { this.sandbox.DOMParser = function() { var uri, principal; // get URI - // DEBUG: In Fx 4 we can just use document.nodePrincipal, but in Fx 3.6 this doesn't work if(typeof sandboxLocation === "string") { // if sandbox specified by URI - // if sandbox specified by URI, get codebase principal from security manager var secMan = Services.scriptSecurityManager; - principal = (secMan.getCodebasePrincipal || secMan.getSimpleCodebasePrincipal) - (Services.io.newURI(sandboxLocation, "UTF-8", null)); + uri = Services.io.newURI(sandboxLocation, "UTF-8", null); + principal = (secMan.getCodebasePrincipal || secMan.getSimpleCodebasePrincipal)(uri); } else { // if sandbox specified by DOM document - uri = sandboxLocation.document.nodePrincipal; + principal = sandboxLocation.document.nodePrincipal; + uri = sandboxLocation.document.documentURIObject; } // initialize DOM parser @@ -419,13 +418,11 @@ Zotero.Translate.SandboxManager = function(sandboxLocation) { // expose parseFromString this.__exposedProps__ = {"parseFromString":"r"}; - if(Zotero.isFx5) { - this.parseFromString = function(str, contentType) { - return Zotero.Translate.DOMWrapper.wrap(_DOMParser.parseFromString(str, contentType)); - } + this.parseFromString = function(str, contentType) { + return Zotero.Translate.SandboxManager.Fx5DOMWrapper(_DOMParser.parseFromString(str, contentType)); } - } - }; + }; + } this.sandbox.DOMParser.__exposedProps__ = {"prototype":"r"}; this.sandbox.DOMParser.prototype = {}; this.sandbox.XMLSerializer = function() { diff --git a/install.rdf b/install.rdf index 53bdc9d121..5bc34991eb 100644 --- a/install.rdf +++ b/install.rdf @@ -24,8 +24,8 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} - 5 - 15.0a1 + 5.0 + 19.0a1 diff --git a/update.rdf b/update.rdf index 688b4c5235..ab47e07afa 100644 --- a/update.rdf +++ b/update.rdf @@ -11,8 +11,8 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} - 5 - 15.0a1 + 5.0 + 19.0a1 http://download.zotero.org/extension/zotero.xpi sha1: