Closed Bug 1583993 Opened 4 years ago Closed 4 years ago

Expanded megabar stays open after switching out of the Firefox window


(Firefox :: Address Bar, defect, P1)




Firefox 71
71.2 - Sept 16 - 29
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox69 --- unaffected
firefox70 --- unaffected
firefox71 --- fixed


(Reporter: bugzilla, Assigned: bugzilla)




(Keywords: regression)


(2 files)

This worked when bug 1579004 landed and appears to have broken in the time since. Dao, do you know what might have caused this?

Flags: needinfo?(dao+bmo)
Priority: -- → P1

This is the focused property reflecting document.activeElement == inputField even in unfocused windows. If we don't want this for the megabar, we need to check the focused attribute. I'm not sure that we want to change this, as it seems like unnecessary movement when unfocusing and refocusing a window. The current behavior seems fine to me. I guess there's an argument to be made for making it easier to drag unfocused windows or something? Then again the same tradeoff exists for the focused window.

Flags: needinfo?(dao+bmo)

I would say this should be fixed. Not fixing this introduces a new state to the Megabar, which is Expanded & Unfocused. This isn't part of the spec and also doesn't look good, at least on Mac – the bar lacks its border which gives it an unpolished look. At the very least a border should be added in this state.

I would say the movement seen when re-focusing the window is consistent with the Megabar design. When the user re-focuses the window, the Urlbar jumps out at them and is very prominent, which afaik is what we're going for with Megabar.

I agree with Harry, mostly the expanded megabar looks exotic, and that's fine when you connect it to a state like focused. with no state connection it makes Firefox look "broken".

Iteration: --- → 71.2 - Sept 16 - 29
Points: --- → 1
Regressed by: 1583495
Assignee: nobody → htwyford
Blocks: 1583708
Attachment #9095529 - Attachment description: Bug 1583993 - Check both document.activeElement and the focused attribute in UrlbarInput::focused. r?dao → Bug 1583993 - Check the focused attribute in startLayoutExtend and endLayoutExtend. r?dao
Pushed by
Check the focused attribute in startLayoutExtend and endLayoutExtend. r=dao
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
Flags: qe-verify+
Flags: needinfo?(cristian.comorasu)
Flags: qe-verify-
Flags: qe-verify+
Flags: needinfo?(cristian.comorasu)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.