Closed Bug 1501976 Opened 6 years ago Closed 6 years ago

matchMedia() with pointer always retuns false

Categories

(Core :: DOM: CSS Object Model, defect)

62 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1035774

People

(Reporter: r.gottesheim, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Steps to reproduce: Open the console in Web Developer Tools. Enter the following: console.log(window.matchMedia('(pointer: fine)').matches); console.log(window.matchMedia('(pointer: coarse)').matches); console.log(window.matchMedia('(pointer: none)').matches); console.log(window.matchMedia('(any-pointer: fine)').matches); console.log(window.matchMedia('(any-pointer: coarse)').matches); console.log(window.matchMedia('(any-pointer: none)').matches); I'm on Ubuntu 18.04.1, but I'm pretty sure this is at least on Windows broken as well. Actual results: They all evaluate to false. Expected results: Depending on your environment, some of them should output "true".
I can confirm that this also happens on Firefox in Windows. OS: Microsoft Windows [Version 10.0.17763.55] 64bit Firefox: Name: Firefox Version: 63.0 Build ID: 20181018182531 Update Channel: release User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 OS: Windows_NT 10.0 Multiprocess Windows: 1/1 (Enabled by default) Web Content Processes: 5/4 Enterprise Policies: Inactive Google Key: Found Mozilla Location Service Key: Found Safe Mode: false
Component: Untriaged → DOM: CSS Object Model
Product: Firefox → Core
I think this is invalid. These landed in Firefox 64 (see bug 1035774), so they'll be available in the next version of Firefox. Let me know if I got it wrong, Hiro. Reporter, mind confirming that you weren't using Beta or Nightly?
Flags: needinfo?(r.gottesheim)
Right, this is fixed in Firefox 64.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(r.gottesheim)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.