Open Bug 1486964 Opened Last year Updated 28 days ago

Drop -moz-touch-enabled

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

REOPENED
Tracking Status
firefox63 --- affected

People

(Reporter: hiro, Unassigned)

References

Details

(Keywords: site-compat)

Attachments

(1 file)

It can be replaced by 'any-hover: hover' (or hover:hover)?

Modernizr 3.7.1 (March 14, 2019) includes detection for window.TouchEvent, so the legacy detection --

window.matchMedia('(-moz-touch-enabled)');

-- will someday be unnecessary on desktop (I think it's already unnecessary on mobile). However, I'm sure a lot of sites do not update Modernizr very quickly, so this will still be around for a while.

With that in mind:

If the user sets

dom.w3c_touch_events.enabled = 0

to disable touch events, unfortunately window.matchMedia('(-moz-touch-enabled)') still returns true.

This leads to a broken experience on sites where mouse support is disabled in favor of touch support. It also creates a discrepancy that can be used for fingerprinting. How can this be fixed if this media query is going to live on for a while?

Depends on: 1588737

Ideally Modernizr would be fixed. But the media query is gone in bug 1588737.

Status: NEW → RESOLVED
Closed: 28 days ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1588737

Well, this bug is for removal and Bug 1588737 is for deprecation...

Guess we can keep this open and use this bug to flip the pref in release builds.

Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
You need to log in before you can comment on or make changes to this bug.