Link in add-on recommendation heading has incorrect text
Categories
(Toolkit :: Add-ons Manager, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox-esr115 | --- | fixed |
firefox115 | --- | wontfix |
firefox116 | --- | fixed |
firefox117 | --- | fixed |
People
(Reporter: mstriemer, Assigned: tgiles)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [recomp])
Attachments
(2 files)
55.69 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
diannaS
:
approval-mozilla-esr115+
|
Details | Review |
The moz-support-link in the add-on recommendations intro is having its text replaced with "Learn more" when it should be coming from its parents' fluent string. We'll likely need to teach moz-support-link to not localize itself even though it isn't given a fluent id
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
(In reply to Mark Striemer [:mstriemer] from comment #0)
Created attachment 9341627 [details]
image.pngThe moz-support-link in the add-on recommendations intro is having its text replaced with "Learn more" when it should be coming from its parents' fluent string. We'll likely need to teach moz-support-link to not localize itself even though it isn't given a fluent id
Hey Mark,
based on a quick look I just gave to the moz-support-link custom element internals, it looks that if the is=moz-support-link
element does have its own explicit data-l10n-id
attribute then the custom element would not be overriding that localized string with its own "Learn more" default localized string: https://searchfox.org/mozilla-central/rev/ada05ac4faf1f79944a35a9eb79083a684a98975/toolkit/content/widgets/moz-support-link/moz-support-link.mjs#54-56
And so something like the following would also force the link to be localized as recommends
(but to be considered as a valid fix only after we have also gathered L10n perspective about using this strategy):
diff --git a/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl b/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl
--- a/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl
+++ b/toolkit/locales/en-US/toolkit/about/aboutAddons.ftl
@@ -313,6 +313,9 @@ discopane-intro =
often developed by a third party. Here’s a selection { -brand-product-name }
<a data-l10n-name="learn-more-trigger">recommends</a> for exceptional
security, performance, and functionality.
+# This strings is going to be the one used for the data-l10n-name "learn-more-trigger"
+# link included in the discopane-intro string.
+discopane-intro-recommends-sumo-link = recommends
# Notice to make user aware that the recommendations are personalized.
discopane-notice-recommendations =
diff --git a/toolkit/mozapps/extensions/content/aboutaddons.html b/toolkit/mozapps/extensions/content/aboutaddons.html
--- a/toolkit/mozapps/extensions/content/aboutaddons.html
+++ b/toolkit/mozapps/extensions/content/aboutaddons.html
@@ -708,6 +708,7 @@
is="moz-support-link"
support-page="recommended-extensions-program"
data-l10n-name="learn-more-trigger"
+ data-l10n-id="discopane-intro-recommends-sumo-link"
>
</a>
</span>
This may also be a reasonable longer term fix (not just a shorter term one) if we would end up deciding to not add a new special case in the moz-support-link
custom element (and instead prefer to leverage this existing special case based on having an explicit data-l10n-id
attribute on the link element).
As an additional side note, should this bug block Bug 1801924?
Comment 2•1 year ago
|
||
Set release status flags based on info from the regressing bug 1804695
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
•
|
||
I'm gonna look into this and see what we can do about this.
As an additional side note, should this bug block Bug 1801924?
Seems reasonable to me.
Assignee | ||
Comment 4•1 year ago
|
||
Allows moz-support-link to have data-l10n-name assigned to it via
Fluent file without overwriting the data-l10n-name attribute.
Comment 6•1 year ago
|
||
bugherder |
Assignee | ||
Comment 8•1 year ago
|
||
Comment on attachment 9343565 [details]
Bug 1840953 - Fix moz-support-link overwriting assigned data-l10n-name. r=mstriemer
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: The link within the "Personalize Your Nightly" section of about:addons will be localized incorrectly without this change.
- User impact if declined: Users may be confused by the recommended extensions link in about:addons since the sentence will be "Here's a selection Firefox Learn more for exceptional security, performance, and functionality".
- Fix Landed on Version: 117
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The change is limited to one component and has automated test coverage for this regression
Comment 9•1 year ago
|
||
Comment on attachment 9343565 [details]
Bug 1840953 - Fix moz-support-link overwriting assigned data-l10n-name. r=mstriemer
If we're talking about taking this on ESR115, we should probably take it on Beta for Fx116 also.
Tim, this patch grafts cleanly to Beta but hits conflicts on ESR115 due to bug 1814424. We'll either need a rebased patch for uplifting or an approval request on bug 1814424 also if they should go together.
Comment 10•1 year ago
|
||
Comment on attachment 9343565 [details]
Bug 1840953 - Fix moz-support-link overwriting assigned data-l10n-name. r=mstriemer
Approved for 116.0b7
Comment 11•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 12•1 year ago
|
||
Thanks for the Beta approval flag, didn't know we needed to land it on Beta as well (will remember for next time). Created an ESR request for bug 1814424 in order to get this patch to land cleanly.
Comment 13•1 year ago
|
||
Im going to wait until bug 1844288 lands and gets uplifted before uplifting to esr
Comment 14•1 year ago
|
||
Comment on attachment 9343565 [details]
Bug 1840953 - Fix moz-support-link overwriting assigned data-l10n-name. r=mstriemer
Approved for 115.1esr
Comment 15•1 year ago
|
||
uplift |
Updated•1 year ago
|
Updated•7 months ago
|
Description
•