Bug 1697668 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

In Bug 1164675, special code was added to apply a "tabletmode" attribute to the root element when Windows 10 Tablet Mode is enabled, and to cause the minimize and maximize/restore buttons to disappear.

Perhaps that is still the best solution, but modern CSS has the "@media (pointer: coarse)" query that is meant to be used to detect if your user is on a touch screen (coarse pointing device) or is using a mouse (fine pointing device).

On top of being a standard, using this instead would ensure that the Firefox chrome behaves the same way web pages behave when they rely on media queries, and it would allow us to remove this 'special path' from our code.

(It's also possible that I don't understand things and this behavior is desired for Windows 10 Tablet Mode exclusively)
In Bug 1164675, special code was added to apply a "tabletmode" attribute to the root element when Windows 10 Tablet Mode is enabled, and to cause the minimize and maximize/restore buttons to disappear.

Perhaps that is still the best solution, but modern CSS has the "@media (pointer: coarse)" query that is meant to be used to detect if your user is on a touch screen (coarse pointing device) or is using a mouse (fine pointing device).

On top of being a standard, using this instead would ensure that the Firefox chrome behaves the same way web pages behave when they rely on media queries, and it would allow us to remove this 'special path' from our code.

(It's also possible that I don't understand things and this behavior is desired for Windows 10 Tablet Mode exclusively -- If that's the case, feel free to dismiss the ticket)

Back to Bug 1697668 Comment 0