[A11y Review] Mini window
Categories
(Firefox :: Mini Window, task)
Tracking
()
| a11y-review | assigned |
People
(Reporter: hsohaney, Assigned: A02291979)
References
Details
(Keywords: access)
Description:
Mini Window lets a user move a tab, or a section of a page, into a small window that stays on top of other windows. They can keep watching or using that content (a video, a live score, a chat, a dashboard) while they work in other windows or apps. There are two kinds:
- Full tab Mini Window. The whole tab moves into a small always-on-top window. The page is not reloaded. The window has a simplified toolbar with Back, Forward, Reload, an editable address bar, a Mute/Unmute tab button (only shown while the tab is playing audio or is muted), "Put tab back" and "Close". The menu bar, bookmarks toolbar and tab strip are not shown.
- Cropped (section) Mini Window. The user selects a rectangle of the page and only that section is shown in the always-on-top window. The page keeps the layout it had in the original tab. Firefox zooms in (APZ resolution) and scrolls so the selected section fills the window, and the zoom scales as the window is resized. The user can still interact with and pan the page. If the page navigates away (a new load or an SPA pushState), the crop no longer makes sense, so the tab is automatically put back in its original window.
How the user completes the task:
- Start a full tab Mini Window: open the tab context menu, choose Move Tab, then "Move to Mini Window" (access key M). It is labelled "Move to Mini Windows" when several tabs are selected, and each tab gets its own window.
- Start a cropped Mini Window: use the page context menu item "Move Section to Mini Window" (access key W, Beta badge), or the "Mini Window" toolbar button (available via Customize Toolbar). This opens the Screenshots selection overlay in Mini Window mode:
- A panel titled "Choose what to move to a Mini Window" offers two buttons: "Move selection" (focused by default) and "Move full tab".
- Choosing "Move selection" closes the panel and moves focus to the overlay. The user drags or clicks to select a region, or uses the keyboard region selection that Screenshots already supports (arrow keys).
- Once a region is selected, three buttons appear: "Cancel" (Esc), "Start over" and "Move to Mini Window". Focus is trapped within the overlay while a region is selected (Shift+F6 escapes, as in Screenshots).
- Inside the Mini Window:
- The toolbar sits on top of the page and slides out of view about 2 seconds after it was last shown.
- It is shown again when:
- the window opens (for 2.5s)
- the window is activated
- the page navigates or reloads
- the user scrolls up
- the pointer rests in a 12px strip along the top edge
- a doorhanger or infobar is shown (it stays up while one is open)
- While the pointer is over the toolbar, or keyboard focus is inside it, it stays shown.
- Scrolling down hides it immediately.
- While the toolbar is shown, the page is shifted down so the toolbar doesn't cover it.
- Leaving a Mini Window:
- "Put tab back" returns the tab to its original window and position, and focuses it.
- "Close" (or Ctrl/Cmd+W) closes the tab.
- Closing the window by other means puts the tab back without focusing it.
- Keyboard shortcuts: most browser shortcuts are disabled in a Mini Window. The ones still allowed are:
- close tab and close window
- reload (including skip-cache reload)
- toggle mute
- zoom in, zoom out and reset zoom
- Back/Forward, in full tab windows only
How do we test this?
Use Firefox Nightly 160 or later. browser.mini-window.enabled defaults to true. If it is off, set it to true in about:config.
- Full tab: right-click a tab (or press Shift+F10 / the context menu key with the tab focused), then Move Tab, then Move to Mini Window. Try it with several tabs selected too.
- Cropped: right-click a page and choose "Move Section to Mini Window". Or add the "Mini Window" button via the hamburger menu, then More tools, then Customize toolbar, and press it. In the panel choose "Move selection", select a region with the mouse or keyboard, then activate "Move to Mini Window". Also try "Move full tab" from the same panel.
When will this ship? fx160 - with improvements shipping in fx162.
Tracking bug/issue: bug 2065307 ([meta] Firefox Mini Window experience)
Design documents (e.g. Product Requirements Document, UI spec):
Blueprint: https://docs.google.com/document/d/1i8rzB43oJnggPG3mm2InbxCkZO1jZ2UchjuJaAwyTss/edit?tab=t.p1uzugmig9n0#heading=h.ikikapxnanez
Figma: https://www.figma.com/design/XT0eDYh4RtbMNWaYQi0efM/Chrome-Sidebar-UX-Specifications--Sprint-1-?m=auto&node-id=37948-25197&t=fKuNwRgpbGbdd75l-1
Engineering lead: hsohaney
Product manager: asafko
The accessibility team has developed the Mozilla Accessibility Release Guidelines which outline what is needed to make user interfaces accessible:
https://wiki.mozilla.org/Accessibility/Guidelines
Please describe the accessibility guidelines you considered and what steps you've taken to address them:
- Keyboard access to entry points: the tab and page context menu items have access keys. The toolbar button is a standard CustomizableUI widget. The chooser panel uses native <button>s, and focus moves to "Move selection" when it opens, so Enter does what dragging would have done. Tab focus wraps between the panel and the overlay. After choosing "Move selection", focus is explicitly moved into the content overlay so it isn't lost when the panel closes. Region selection reuses the Screenshots keyboard support (arrow keys, focus trap with Shift+F6 escape).
- Keyboard access to the auto-hiding toolbar: the toolbar stays shown while it has keyboard focus (:focus-within), and also while the pointer is over it. The toolbar is hidden with transform and opacity, not display/visibility, so it stays in the focus order and the accessibility tree while visually hidden.
- Focus management:
- "Put tab back" focuses the tab back in its original window.
- When a cropped window automatically returns the tab after a navigation, it only takes focus if the user was using the Mini Window. In that case it also calls getAttention() so the user knows where the tab went. If the user was elsewhere, focus is not stolen.
- Tabs that navigate in the background are no Reduced motion: with prefers-reduced-motion, the toolbar and page are removed and replaced by a short 80ms opacity fade. High contrast / forced colors: the custom toopplied under @media not (forced-colors), so system colors are used in forced colors mode.
- Timing: the toolbar's auto-hide delay can be window.toolbar.hide-delay-ms), and the toolbarstays up indefinitely while hovered, focused, notification needs it.
Describe any areas of concern to which you want the accessibility team to give special attention:
- The dynamic toolbar is particularly prickly - we'd probably want that tested out. The toolbar hides and shows under various circumstances:
- on first open
- on any window activation
- on scroll down
- on href change
- Automatic return after navigation in cropped windows. I'm not sure if this needs special treatment for a11y.
| Reporter | ||
Updated•22 days ago
|
Comment 1•22 days ago
|
||
The Bugbug bot thinks this bug is an accessibility bug, but please revert this change in case of error.
Updated•18 days ago
|
Updated•18 days ago
|
Description
•