From 91c3b57c9717721914390fa796416584cb5b9c55 Mon Sep 17 00:00:00 2001 From: Sukhbir Singh Date: Sun, 6 May 2018 18:48:06 -0400 Subject: Add support for Thunderbird 60 See https://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57 for changes relevant to Thunderbird 60. This commit also bumps up the minimum supported version to Thunderbird 52. --- chrome/content/accountWizard/accountWizard.js | 2 +- chrome/content/accountWizard/accountWizard.xul | 4 ++-- chrome/content/accountWizard/createInBackend.js | 10 +++++++--- install.rdf.template | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/chrome/content/accountWizard/accountWizard.js b/chrome/content/accountWizard/accountWizard.js index cdd02f0..b04b2a9 100644 --- a/chrome/content/accountWizard/accountWizard.js +++ b/chrome/content/accountWizard/accountWizard.js @@ -589,7 +589,7 @@ BitmaskAccountWizard.prototype = { id: "next_button", action: makeCallback(this, this.onNext) }, { id: "create_button", action: makeCallback(this, this.onCreate) }, ]; - for each (let button in buttons) { + for (let button of buttons) { button.e = e(button.id); if (button.e.hidden || button.e.disabled) { continue; diff --git a/chrome/content/accountWizard/accountWizard.xul b/chrome/content/accountWizard/accountWizard.xul index 2ffbffc..681817d 100644 --- a/chrome/content/accountWizard/accountWizard.xul +++ b/chrome/content/accountWizard/accountWizard.xul @@ -21,7 +21,7 @@ diff --git a/chrome/content/accountWizard/createInBackend.js b/chrome/content/accountWizard/createInBackend.js index 46dbbae..ed2424b 100644 --- a/chrome/content/accountWizard/createInBackend.js +++ b/chrome/content/accountWizard/createInBackend.js @@ -218,7 +218,7 @@ function doNotCache(inServer) inServerQI.offlineDownload = false; // and remove offline flag from all folders var allFolders = inServer.rootFolder.descendants; - for (let folder in fixIterator(allFolders, Components.interfaces.nsIMsgFolder)) + for (let folder of fixIterator(allFolders, Components.interfaces.nsIMsgFolder)) folder.clearFlag(Components.interfaces.nsMsgFolderFlags.Offline); } @@ -236,8 +236,12 @@ function rememberPassword(server, password) login.init(passwordURI, null, passwordURI, server.username, password, "", ""); try { Services.logins.addLogin(login); - } catch (e if e.message.includes("This login already exists")) { - // TODO modify + } catch (e) { + if (e.message.includes("This login already exists")) { + // TODO modify + } else { + throw e; + } } } diff --git a/install.rdf.template b/install.rdf.template index bbdeab3..9d7c44f 100644 --- a/install.rdf.template +++ b/install.rdf.template @@ -35,8 +35,8 @@ along with this program. If not, see . {3550f703-e582-4d05-9a08-453d09bdfdc6} - 24.0 - 31.* + 52.0 + 60.0 -- cgit v1.2.3