fune/browser/components/migration
Nick Alexander 98a644b4c8 Bug 1749435 - Use Fluent to localize bookmarks.html at run-time rather than build-time. r=flod,mak,fluent-reviewers
This modernizes an old part of the build system to not require
build-time localization at all.  That's generally preferable.

The most significant changes to the in-product functionality is to
make import localize HTML so that we can use Fluent's `data-l10n-id`.

The locale used is the user's current locale.  This is different than
the existing approach, which always uses the build-time (repack)
locale.  I believe this is a strictly superior user experience and it
may lead to future improvements where-in the default bookmarks become
truly dynamic and vary with the user's chosen locale rather than being
point-in-time decisions.

I tried to restrict these changes to only applen when we import the
default bookmarks, but I think the various layers of flags no longer
achieve this restriction in practice and the formatting and
localization will apply to all imported `bookmarks.html` files.  Since
we don't anticipate (nor ourselves write) these new things in
(respectively, to) `bookmarks.html`, and the file is already
user-controlled, I don't think this exposes any meaningful change in
functionality (or in security surface).

Some notes:

1) There's no migration of `.inc` -> `.ftl` because this is the lone
   `.inc` file.

2) I elected to prefix all strings with `default-bookmarks-`, since
   the existing names were very short and likely to collide (now or in
   the future).

3) I elected to change the HTML file name for easier searching.

4) Since the `default-bookmarks.html` file is product-specific and the
   existing tests are in `toolkit/`, I elected to not test the file
   directly in automation.

5) We removed the explicit locale (or equivalent `%LOCALE%`) since
   Mozilla properties will redirect to the appropriate language
   automatically.

Differential Revision: https://phabricator.services.mozilla.com/D135816
2022-01-19 17:02:26 +00:00
..
content Bug 1659730 - Update 360se migrator to work with v9+. r=Gijs 2021-12-22 10:48:49 +00:00
tests Bug 1747756 - Move Windows system libraries from LIBS to moz.build. r=firefox-build-system-reviewers,mhentges 2021-12-30 20:56:43 +00:00
.eslintrc.js
360seMigrationUtils.jsm Bug 1659730 - Update 360se migrator to work with v9+. r=Gijs 2021-12-22 10:48:49 +00:00
ChromeMacOSLoginCrypto.jsm
ChromeMigrationUtils.jsm Bug 1659730 - Update 360se migrator to work with v9+. r=Gijs 2021-12-22 10:48:49 +00:00
ChromeProfileMigrator.jsm Bug 1659730 - Update 360se migrator to work with v9+. r=Gijs 2021-12-22 10:48:49 +00:00
ChromeWindowsLoginCrypto.jsm
components.conf Bug 1659730 - Update 360se migrator to work with v9+. r=Gijs 2021-12-22 10:48:49 +00:00
EdgeProfileMigrator.jsm Bug 1672486 - Remove browser.toolbars.bookmarks.2h2020 pref in migration r=mak 2021-10-14 07:51:15 +00:00
ESEDBReader.jsm
FirefoxProfileMigrator.jsm Bug 1705360 - un-do nightly experiment obsfucating NSS DB locations r=jschanck,perftest-reviewers,AlexandruIonescu 2021-10-27 00:26:59 +00:00
IEProfileMigrator.jsm
jar.mn
MigrationUtils.jsm Bug 1749435 - Use Fluent to localize bookmarks.html at run-time rather than build-time. r=flod,mak,fluent-reviewers 2022-01-19 17:02:26 +00:00
moz.build Bug 1659730 - Update 360se migrator to work with v9+. r=Gijs 2021-12-22 10:48:49 +00:00
MSMigrationUtils.jsm Bug 1672486 - Remove browser.toolbars.bookmarks.2h2020 pref in migration r=mak 2021-10-14 07:51:15 +00:00
nsIBrowserProfileMigrator.idl
nsIEHistoryEnumerator.cpp
nsIEHistoryEnumerator.h
nsIKeychainMigrationUtils.idl
nsKeychainMigrationUtils.h
nsKeychainMigrationUtils.mm
nsWindowsMigrationUtils.h
ProfileMigrator.jsm
SafariProfileMigrator.jsm Bug 1672486 - Remove browser.toolbars.bookmarks.2h2020 pref in migration r=mak 2021-10-14 07:51:15 +00:00