Closed Bug 1586799 Opened 6 months ago Closed 5 months ago

Decide on Megabar window-switch behaviour

Categories

(Firefox :: Address Bar, task, P3)

task
Points:
5

Tracking

()

RESOLVED INVALID

People

(Reporter: harry, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: blocked-ux)

Verdi, when we spoke last week you noted that the Megabar's behaviour was inconsistent when switching in and out of the Firefox window.

Currently on Mac, if the Urlbar is in any kind of focus state and the Firefox window loses focus, we blur the Urlbar. When the window is refocused the megabar regains focus and:

  • expands, if the page content was clicked
  • does not expand, if browser chrome was clicked

If a keyboard shortcut was used to refocus the window, we expand unless a part of the Urlbar was selected (but not the entire thing), reflecting our current handling on mousedrags.

This is also not consistent across platforms. On Linux, we don't even focus if the window is refocused with a click on page content. I unfortunately can't test our Windows behaviour.

While all of this behaviour follows from how we expand based on various events when the Firefox window is focused, we should come up with some consistent (and cross-platform?) behaviour for window switching.

Flags: needinfo?(mverdi)
Blocks: 1583708

(In reply to Harry Twyford [:harry] from comment #0)

This is also not consistent across platforms. On Linux, we don't even focus if the window is refocused with a click on page content. I unfortunately can't test our Windows behaviour.

it's the same as Linux, if you click on content the urlbar is not focused.

Priority: -- → P3
Depends on: 1589826
Points: --- → 5

Bug 1589826 removes the Focused & Collapsed state, which resolves the ambiguities here. We'll maintain the same platform-specific window-switch behaviours that existed pre-megabar. The only change is that now focused=expanded.

Status: NEW → RESOLVED
Closed: 5 months ago
Flags: needinfo?(mverdi)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.