зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1417238 - hide 'open link in container' menu when there are no containers, r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D37439 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a48c958c4a
Коммит
9a5e853d3d
|
@ -442,9 +442,9 @@ nsContextMenu.prototype = {
|
|||
var shouldShow =
|
||||
this.onSaveableLink || isMailtoInternal || this.onPlainTextLink;
|
||||
var isWindowPrivate = PrivateBrowsingUtils.isWindowPrivate(window);
|
||||
var showContainers = Services.prefs.getBoolPref(
|
||||
"privacy.userContext.enabled"
|
||||
);
|
||||
let showContainers =
|
||||
Services.prefs.getBoolPref("privacy.userContext.enabled") &&
|
||||
ContextualIdentityService.getPublicIdentities().length;
|
||||
this.showItem("context-openlink", shouldShow && !isWindowPrivate);
|
||||
this.showItem(
|
||||
"context-openlinkprivate",
|
||||
|
|
|
@ -17,7 +17,9 @@ let LOGIN_FILL_ITEMS = [
|
|||
null,
|
||||
];
|
||||
let hasPocket = Services.prefs.getBoolPref("extensions.pocket.enabled");
|
||||
let hasContainers = Services.prefs.getBoolPref("privacy.userContext.enabled");
|
||||
let hasContainers =
|
||||
Services.prefs.getBoolPref("privacy.userContext.enabled") &&
|
||||
ContextualIdentityService.getPublicIdentities().length;
|
||||
|
||||
const example_base =
|
||||
"http://example.com/browser/browser/base/content/test/contextMenu/";
|
||||
|
|
Загрузка…
Ссылка в новой задаче