forked from mirrors/gecko-dev
Bug 1299480 - Fix regression in the context menu when containers are in used, r=gijs
This commit is contained in:
parent
ebb3c8a52f
commit
da901b1816
2 changed files with 3 additions and 3 deletions
|
|
@ -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);"/>
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue