Stop composing error state fluent message identifiers in Firefox View
Categories
(Firefox :: Firefox View, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | fixed |
People
(Reporter: Gijs, Assigned: mconley)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-2022-mr1-firefox-view])
Attachments
(1 file)
See discussion on https://phabricator.services.mozilla.com/D154675 .
Rather than having a specialcase for 1 string at https://searchfox.org/mozilla-central/rev/30ac44262374be08ccd4262ee36f0716152868d3/browser/components/firefoxview/tab-pickup-container.mjs#167-170 , let's use a mapping from error state to string identifiers. This has the benefits that it's easy to update just 1 string identifier in future, and that it's easy to figure out where strings are used by just searching for string identifiers.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
While this introduces some redundancy, the advantage to spelling out the error message IDs like
this explicitly is that if the string ever needs to be updated (which requires a message ID
change), then we have a single place to remap the error code strings to the message IDs.
Comment 3•3 years ago
|
||
| bugherder | ||
Description
•