From da901b1816824d03a7684c042edf211d1063cde1 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 6 Sep 2016 13:19:01 +0200 Subject: [PATCH] Bug 1299480 - Fix regression in the context menu when containers are in used, r=gijs --- browser/base/content/browser-context.inc | 2 +- browser/base/content/nsContextMenu.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc index fa8b3a7ba900..bbec2bb86fc2 100644 --- a/browser/base/content/browser-context.inc +++ b/browser/base/content/browser-context.inc @@ -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. diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 0e842d41c480..5ad58a89bd14 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -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));