From 9740bc4d7319b5ff045f78b0e5f9baac4daaa335 Mon Sep 17 00:00:00 2001 From: luckyrat Date: Sun, 26 Jun 2016 17:01:21 +0100 Subject: [PATCH] Update commondialog.js to understand Firefox >=50 Fixes #677 --- Firefox addon/KeeFox/chrome/content/commonDialog.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Firefox addon/KeeFox/chrome/content/commonDialog.js b/Firefox addon/KeeFox/chrome/content/commonDialog.js index 2975483..c522a7f 100644 --- a/Firefox addon/KeeFox/chrome/content/commonDialog.js +++ b/Firefox addon/KeeFox/chrome/content/commonDialog.js @@ -392,7 +392,14 @@ var keeFoxDialogManager = { currentRealmL10nPattern = this._cdBundle.GetStringFromName("EnterLoginForRealm"); } catch (exception) { - currentRealmL10nPattern = this._promptBundle.GetStringFromName("EnterLoginForRealm"); + // Exception expected in Firefox >= 50 and Thunderbird + try + { + currentRealmL10nPattern = this._cdBundle.GetStringFromName("EnterLoginForRealm2"); + } catch (exception2) + { + currentRealmL10nPattern = this._promptBundle.GetStringFromName("EnterLoginForRealm"); + } } var realmFirst = false;