Closed Bug 1648171 Opened 5 years ago Closed 5 years ago

Password import suggestion renders without text (MigrationUtils.getBrowserName is not a function)

Categories

(Toolkit :: Password Manager, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox77 --- unaffected
firefox78 --- unaffected
firefox79 + wontfix
firefox80 + fixed

People

(Reporter: Mardak, Assigned: Mardak)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Bug 1618311 is currently experimenting in 77 and 78 and bug 1518234 removed getBrowserName in 79, so if the experiment is successful and decide to turn things on, we'll definitely want to fix this as it also prevents future password popups from rendering too.

Is there a separate bug on file about adding automated tests for this feature?

Flags: needinfo?(edilee)

There's various bugs that have been filed and deferred until the experiment concludes blocking bug 1617759. Looks like there isn't even one yet to turn things on by default where we probably want to rework some bits of how the experiment was implemented as well as adding tests.

For fixing this, looks like we'll want to do something similar for the imported bookmarks folder "From Google Chrome" behavior:
https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/browser/components/migration/MigrationUtils.jsm#649-654

Flags: needinfo?(edilee)
See Also: → 1648182

(In reply to Ed Lee :Mardak from comment #2)

There's various bugs that have been filed and deferred until the experiment concludes blocking bug 1617759. Looks like there isn't even one yet to turn things on by default where we probably want to rework some bits of how the experiment was implemented as well as adding tests.

For fixing this, looks like we'll want to do something similar for the imported bookmarks folder "From Google Chrome" behavior:
https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/browser/components/migration/MigrationUtils.jsm#649-654

The problem is that the autocomplete code isn't async, and we can only really get these strings async. I have an alternative patch.

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED

This also switches to using individual strings for each browser.
This is very repetitive, but it has a few advantages:

  • no need for a second, asynchronous localization pass in the code, which likely
    wouldn't work well for autocomplete code
  • it's always clear for localizers what browser names are available
  • localizers can do proper grammar around the names of browsers as would be
    appropriate in their language.
  • there's no dependency on strings in browser/ from code in toolkit
    (though obviously there's still a dependency on the actual migration code..)

Set release status flags based on info from the regressing bug 1518234

Per discussion with Ed, he wants to try to get a patch that does not require any string changes.

Assignee: gijskruitbosch+bugs → edilee
Attachment #9159024 - Attachment is obsolete: true
Blocks: 1649180

Narrowly fix the regression without string changes by hardcoding english strings for the browsers used in the experiment.

Changing the priority to p1 as the bug is tracked by a release manager for the current beta.
See What Do You Triage for more information

Priority: P3 → P1
Pushed by elee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/411fe764a344 Password import suggestion renders without text r=MattN
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80

The patch landed in nightly and beta is affected.
:Mardak, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(edilee)

We won't need this in 79

Flags: needinfo?(edilee)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: