Fluent error message in terminal when install popup is displayed
Categories
(WebExtensions :: General, defect, P5)
Tracking
(firefox111 fixed)
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: willdurand, NeedInfo)
References
Details
(Whiteboard: [addons-jira])
Attachments
(1 file)
Steps to reproduce:
- Go to an addon page (e.g. https://addons.mozilla.org/en-US/firefox/addon/phab-conventional-comments/)
- Click on the "Add to Firefox" button
Actual result:
I can see the following error messages in the terminal
[fluent] Missing message in locale en-US:
[fluent] Couldn't find a message:
[dom/l10n] Errors during l10n mutation frame.
These are really not helpful as it looks like we're trying to retrieve a message with an empty string, but we don't know from where
Comment 1•2 years ago
|
||
I don't see the warning at first, but I can reproduce this (e.g. in 106 and 107) by triggering the prompt again: switch to a different tab and then back, or dismiss the doorhanger (cancel install) and repeat step 2 of the above STR.
I also tested with another doorhanger in a similar place (permission request for Notification API), and the issue doesn't occur there.
The install doorhanger uses .properties
bundles. It's not obvious how this l10n warning is caused/related to the install doorhanger itself, or how to debug this.
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:zombie, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 3•1 year ago
|
||
Hi :eemeli, do you know what could be the problem here? Thanks.
Comment 4•1 year ago
|
||
My guess would be some code setting a data-l10n-id
to an empty string, but I can't replicate the problem locally on 108, 109, or nightly so figuring out more is difficult.
Do the replication steps still produce this error for you in a more recent build than the 107 mentioned above?
Assignee | ||
Comment 5•1 year ago
|
||
Yes, I can reproduce using the STR in Comment 0 on a Nightly debug build (macOS). I see the messages in the browser console (coming from browser.xhtml
apparently).
Assignee | ||
Comment 6•1 year ago
|
||
Ha. I think I see what's going on.. In Bug 1785216, some code has been added to "unset" the data-l10n-id
by setting it to an empty string. My understanding of Comment 4 is that we shouldn't be doing this.
Assignee | ||
Comment 7•1 year ago
|
||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
D'oh! Thank you for fixing this bug that I'd introduced.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1f471cdfbd23 Remove `data-l10n-id` attribute instead of setting it to an empty value. r=eemeli
Comment 10•1 year ago
|
||
bugherder |
Description
•