Bug 1287091 - part 4 - ContextualIdentityService create/remove/update, r=Gijs

This commit is contained in:
Andrea Marchesini
2016-07-22 16:19:50 +02:00
parent 69dcf6b487
commit 94aee3d9c3
6 changed files with 153 additions and 19 deletions

View File

@@ -445,8 +445,12 @@ function createUserContextMenu(event, addCommandAttribute = true, excludeUserCon
let menuitem = document.createElement("menuitem");
menuitem.setAttribute("usercontextid", identity.userContextId);
menuitem.setAttribute("label", bundle.getString(identity.label));
menuitem.setAttribute("accesskey", bundle.getString(identity.accessKey));
menuitem.setAttribute("label", ContextualIdentityService.getUserContextLabel(identity.userContextId));
if (identity.accessKey) {
menuitem.setAttribute("accesskey", bundle.getString(identity.accessKey));
}
menuitem.classList.add("menuitem-iconic");
if (addCommandAttribute) {