Closed Bug 1677464 Opened 5 years ago Closed 4 years ago

screen.orientation returns always "landscape-primary" on Microsoft Surface Books (Windows 10)

Categories

(Core :: DOM: Device Interfaces, defect)

Firefox 82
Desktop
Windows 10
defect

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: christian.frank.schneider, Assigned: m_kato)

References

Details

Attachments

(2 files)

Attached image rotation.png

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:

  1. Open Firefox on a Microsoft Surface Book
  2. Undock it from the keyboard so that tablet mode is enabled
  3. Inside the inspector check what screen.orientation returns.
  4. Rotate the surface book 90°
  5. Inside the inspector check what screen.orientation returns.

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 }

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Inspector
Product: Firefox → DevTools
Component: Inspector → General
OS: Unspecified → Windows 10
Product: DevTools → Firefox
Hardware: Unspecified → Desktop

I'm trying to find the correct component for this. Its somewhere in DOM I guess?

Component: General → DOM: Device Interfaces
Product: Firefox → Core

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.

See Also: → 1744687

Windows can get current screen orientation from OS API.

Assignee: nobody → m_kato
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ef65febc92a8 Set screen orientation type and angle from OS API. r=gsvelto
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: