Migrate appstrings.properties to Fluent & format its messages from aboutNetError.mjs
Categories
(Firefox :: Security, 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.
Updated•2 years ago
|
Updated•1 year ago
|
Comment 2•9 months ago
|
||
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
| Reporter | ||
Comment 3•9 months ago
|
||
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.
Description
•