Bug 1876518 - Ensure that contextual-identity.ftl is always available for the user context menu. r=Standard8,places-reviewers

Rather than playing whack-a-mole to proactively account for all the places where the menu might show up, let's just make sure its messages are always available.

Differential Revision: https://phabricator.services.mozilla.com/D200156
This commit is contained in:
Eemeli Aro 2024-01-31 17:32:08 +00:00
parent 70df3f36e1
commit 1f0f5196ce
2 changed files with 1 additions and 1 deletions

View File

@ -194,6 +194,7 @@ function createUserContextMenu(
event.target.firstChild.remove();
}
MozXULElement.insertFTLIfNeeded("toolkit/global/contextual-identity.ftl");
let docfrag = document.createDocumentFragment();
// If we are excluding a userContextId, we want to add a 'no-container' item.

View File

@ -60,7 +60,6 @@
<html:link rel="localization" href="browser/places.ftl"/>
<html:link rel="localization" href="browser/downloads.ftl"/>
<html:link rel="localization" href="browser/editBookmarkOverlay.ftl"/>
<html:link rel="localization" href="toolkit/global/contextual-identity.ftl"/>
</linkset>
<script src="chrome://browser/content/places/places.js"/>