tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 158e32b20064646fbe0fba556968c8e061520cb9
parent 786d8a9520d12834983b6e74973e263fe1007d07
Author: Eemeli Aro <eemeli@mozilla.com>
Date:   Thu, 30 Oct 2025 10:57:47 +0000

Bug 1760013 - Replace custom localized ellipsis with Services.locale.ellipsis in devtools. r=devtools-reviewers,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D267414

Diffstat:
Mdevtools/shared/l10n.js | 7++-----
Ddevtools/shared/locales/en-US/shared.properties | 6------
2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/devtools/shared/l10n.js b/devtools/shared/l10n.js @@ -224,10 +224,6 @@ function localizeMarkup(root) { } } -const sharedL10N = new LocalizationHelper( - "devtools/shared/locales/shared.properties" -); - /** * A helper for having the same interface as LocalizationHelper, but for more * than one file. Useful for abstracting l10n string locations. @@ -269,5 +265,6 @@ exports.LocalizationHelper = LocalizationHelper; exports.localizeMarkup = localizeMarkup; exports.MultiLocalizationHelper = MultiLocalizationHelper; Object.defineProperty(exports, "ELLIPSIS", { - get: () => sharedL10N.getStr("ellipsis"), + get: () => + typeof Services == "undefined" ? "\u2026" : Services.locale.ellipsis, }); diff --git a/devtools/shared/locales/en-US/shared.properties b/devtools/shared/locales/en-US/shared.properties @@ -1,6 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -# LOCALIZATION NOTE (ellipsis): The ellipsis (three dots) character -ellipsis=…