Open Bug 1790187 Opened 4 years ago Updated 9 months ago

Migrate appstrings.properties to Fluent & format its messages from aboutNetError.mjs

Categories

(Firefox :: Security, task)

task

Tracking

()

People

(Reporter: eemeli, Unassigned)

References

(Blocks 7 open bugs)

Details

(Whiteboard: [tor 41483])

Currently, the messages from appstrings.properties (dom, browser) are formatted by nsDocShell::DisplayLoadError(), which passes the formatted message to the about:neterror/about:certerror page as a query parameter.

It would be better if this formatting was done closer to the front-end, based on an error identifier. Using Fluent for this also allows much easier use of { -brand-short-name }, which should let the overridden dom version of the file be dropped, and the browser's messages be used for all users (currently desktop browsers and Thunderbird).

Some of the error messages are parameterised. Where the information may be determined from the JS side, that should be done rather than also passing their values as additional query parameters.

Blocks: 1581212
See Also: → 1742345
Whiteboard: [tor 41483]
Blocks: 1196267

Do these two .properties files need to be migrated to two .ftl files or just to one?

E.g. there is two different strings for the id dnsNotFound2:

  • We can’t connect to the server at %S. in browser/locales/en-US/chrome/overrides/appstrings.properties
  • %S could not be found. Please check the name and try again. in dom/locales/en-US/chrome/appstrings.properties

It's probably fine to just use the override strings. Based on the research I did for bug 1734217, the non-override versions of the strings are never used, but that was a few years ago.

Blocks: 2015092
You need to log in before you can comment on or make changes to this bug.