Closed Bug 2099698 Opened 4 days ago Closed 2 days ago

Migrate nsserrors.properties to Fluent

Categories

(Core :: Security: PSM, task)

task

Tracking

()

RESOLVED FIXED
164 Branch
Tracking Status
firefox164 --- fixed

People

(Reporter: flod, Assigned: flod)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

nsserrors.properties only provides strings to NSSErrorsService::GetErrorMessage, which is used by Document::GetFailedCertSecurityInfo (the errorMessage field read by about:certerror), the webRequest error string in ChannelWrapper, and nsDocShell (whose result is discarded).

Almost all these strings are already available in Fluent in toolkit/neterror/nsserrors.ftl, used by about:neterror. The only exceptions are:

  • MOZILLA_PKIX_ERROR_INSUFFICIENT_CERTIFICATE_TRANSPARENCY, which was only added to the .properties file. Because of this, about:neterror currently falls back to the raw error code for this error.
  • The certErrorTrust_MitM override string in pipnss.properties. The other overrides (PSMERR_SSL_Disabled, PSMERR_SSL2_Disabled, PSMERR_HostReusedIssuerSerial) already have Fluent equivalents (psmerr-*).

SeaMonkey will need to stop reading directly from .properties  once this lands.

nsserrors.ftl already had almost all of these strings for about:neterror. The missing MOZILLA_PKIX_ERROR_INSUFFICIENT_CERTIFICATE_TRANSPARENCY and MitM override strings are migrated.

Two English strings change slightly: XP_SEC_FORTEZZA_NO_MORE_INFO ("Personality" becomes lowercase) and PSMERR_HostReusedIssuerSerial (single spaces between sentences).

Pushed by flodolo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c04b119975d3 https://hg.mozilla.org/integration/autoland/rev/2f97d3e6ded3 Remove nsserrors.properties and use the existing Fluent strings in NSSErrorsService. r=necko-reviewers,fluent-reviewers,bolsson,valentin
Blocks: 2101076
Status: NEW → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 164 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: