screen.orientation returns always "landscape-primary" on Microsoft Surface Books (Windows 10)
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox99 | --- | fixed |
People
(Reporter: christian.frank.schneider, Assigned: m_kato)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Steps to reproduce:
- Open Firefox on a Microsoft Surface Book
- Undock it from the keyboard so that tablet mode is enabled
- Inside the inspector check what
screen.orientationreturns. - Rotate the surface book 90°
- Inside the inspector check what
screen.orientationreturns.
Actual results:
No rotation change is reflected. Both calls return
ScreenOrientation { type: "portrait-primary", angle: 0, onchange: null }
Expected results:
The second call should return
ScreenOrientation { type: "landscape-primary", angle: 90, onchange: null }
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
| Reporter | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
I'm trying to find the correct component for this. Its somewhere in DOM I guess?
| Reporter | ||
Comment 3•5 years ago
|
||
The bug is about the implementation of this https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation interface (it occurs on a Surface Book (which is a combination of Desktop- and Tablet-Device). I'm not sure to which Firefox Component it belongs.
| Assignee | ||
Comment 4•4 years ago
|
||
Windows can get current screen orientation from OS API.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 6•4 years ago
|
||
| bugherder | ||
Description
•