diff --git a/browser/modules/UserContextUI.jsm b/browser/modules/UserContextUI.jsm index ef60380aa735..3c3ca098e593 100644 --- a/browser/modules/UserContextUI.jsm +++ b/browser/modules/UserContextUI.jsm @@ -15,14 +15,14 @@ XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() { this.UserContextUI = { getUserContextLabel(userContextId) { - switch (userContextId) { + switch (parseInt(userContextId)) { // No UserContext: case 0: return ""; case 1: return gBrowserBundle.GetStringFromName("usercontext.personal.label"); case 2: return gBrowserBundle.GetStringFromName("usercontext.work.label"); - case 3: return gBrowserBundle.GetStringFromName("usercontext.shopping.label"); - case 4: return gBrowserBundle.GetStringFromName("usercontext.banking.label"); + case 3: return gBrowserBundle.GetStringFromName("usercontext.banking.label"); + case 4: return gBrowserBundle.GetStringFromName("usercontext.shopping.label"); // Display the context IDs for values outside the pre-defined range. // Used for debugging, no localization necessary.