Bug 1299480 - Fix regression in the context menu when containers are in used, r=gijs

This commit is contained in:
Andrea Marchesini 2016-09-06 13:19:01 +02:00
parent ebb3c8a52f
commit da901b1816
2 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@
label="&openLinkCmdInCurrent.label;"
accesskey="&openLinkCmdInCurrent.accesskey;"
oncommand="gContextMenu.openLinkInCurrent();"/>
# label and usercontextid are dynamically set.
# label and data-usercontextid are dynamically set.
<menuitem id="context-openlinkincontainertab"
accesskey="&openLinkCmdInTab.accesskey;"
oncommand="gContextMenu.openLinkInTab(event);"/>

View file

@ -151,7 +151,7 @@ nsContextMenu.prototype = {
inContainer = true;
var item = document.getElementById("context-openlinkincontainertab");
item.setAttribute("usercontextid", userContextId);
item.setAttribute("data-usercontextid", userContextId);
var label = ContextualIdentityService.getUserContextLabel(userContextId);
item.setAttribute("label",
@ -1008,7 +1008,7 @@ nsContextMenu.prototype = {
let params = {
allowMixedContent: persistAllowMixedContentInChildTab,
userContextId: parseInt(event.target.getAttribute('usercontextid'))
userContextId: parseInt(event.target.getAttribute('data-usercontextid')),
};
openLinkIn(this.linkURL, "tab", this._openLinkInParameters(params));