Closed Bug 1719754 Opened 4 years ago Closed 4 years ago

BrowserGlue fxa login status code fails if fxa button isn't in the toolbox

Categories

(Firefox :: Toolbars and Customization, defect)

Desktop
All
defect
Points:
1

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox89 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: Gijs, Assigned: molly)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [proton-cleanups])

Attachments

(1 file)

Spotted in the log output in bug 1719175.

https://searchfox.org/mozilla-central/rev/1add3985d32470582ce83f40a212a976e4fc7da5/browser/components/BrowserGlue.jsm#4218

  _updateFxaBadges(win) {
    let fxaButton = win.document.getElementById("fxa-toolbar-menu-button");
    let badge = fxaButton.querySelector(".toolbarbutton-badge");
    ...
  }

produces:

TypeError: fxaButton is null

if the button is customized.

We should be nullchecking fxaButton before using it in this method, because the adding/clearing of the notifications should still work on the app menu if the fxa button is not present.

Emma or Molly, are you in a position to work on this?

Flags: needinfo?(mhowell)
Assignee: nobody → mhowell
Status: NEW → ASSIGNED
Flags: needinfo?(mhowell)
Pushed by mhowell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9bbaeeac0206 Don't fail to update the FxA badge status when the toolbar icon doesn't exist at all. r=emalysz
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Points: --- → 1

The patch landed in nightly and beta is affected.
:mhowell, 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?(mhowell)

I don't feel like this one really needs an uplift.

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

Attachment

General

Created:
Updated:
Size: