From 15a7a812f619b94452d6d5dd36d0ddaec7af3497 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 24 Feb 2018 19:19:28 -0500 Subject: [PATCH] Fx60: += operator no longer works on nsIURI spec --- chrome/content/zotero/bindings/styled-textbox.xml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index e994d5fe55..d3c7c951ea 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -644,14 +644,12 @@ // for read-only mode var htmlFile = this.mode + (this.getAttribute('readonly') != 'true' ? "" : "view"); - var ios = Components.classes["@mozilla.org/network/io-service;1"]. - getService(Components.interfaces.nsIIOService); - var uri = ios.newURI("resource://zotero/tinymce/" + htmlFile + ".html", null, null); - - // Pass directionality (LTR/RTL) and locale in URL - uri.spec += "?locale=" + encodeURIComponent(Zotero.locale) + var url = `resource://zotero/tinymce/${htmlFile}.html` + // Pass directionality (LTR/RTL) and locale in URL + + "?locale=" + encodeURIComponent(Zotero.locale) + "&dir=" + Zotero.dir; - + Components.utils.import("resource://gre/modules/Services.jsm"); + var uri = Services.io.newURI(url, null, null); Zotero.debug("Loading " + uri.spec);