Closed Bug 1332128 Opened 7 years ago Closed 2 years ago

screen.orientation not always updated

Categories

(Core :: DOM: Device Interfaces, defect, P3)

50 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1750147

People

(Reporter: yingyuyao, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Steps to reproduce:

http://output.jsbin.com/yogojih
This link pulls and displays screen orientation angle at 500ms interval, and the test was performed on Nexus 6P running Android 7.1.1

I checked whether the orientation was updated correctly with respect to different rotations. 


Actual results:

https://goo.gl/photos/37T9TWB1CTkhf7Nk7
A video is worth a thousand word.
Primary portrait <-> Primary landscape   works
Primary portrait <-> Secondary landscape   works
Primary landscape <-> Secondary landscape   No event fired, and orientation is not updated. 


Expected results:

Rotating the phone from primary landscape to secondary landscape should trigger screen.orientation update.
Component: Untriaged → DOM
Component: DOM → DOM: Device Interfaces
Priority: -- → P3

Perhaps related to this, on my system, Firefox reports screen.orientation.type === "portrait-primary" even when I move all of Firefox's windows to my landscape monitor

MacBook Pro Retina, 15-inch, Mid 2015,
MacOS 10.15.1,
Firefox Developer Edition 71.0b11
Built-in monitor turned off
Monitor 1: Dell U2518D with rotation set to 90 degrees (portrait mode) in MacOS system settings
Monitor 2: Dell U2518D with rotation set to Standard (landscape mode) in MacOS system settings
Mission control settings: default, except that "Displays have separate Spaces" turned off

Move to GeckoView bug since this isn't hal issue. (bug detail is bug 1750147)

Perhaps related to this, on my system, Firefox reports screen.orientation.type === "portrait-primary" even when I move all of Firefox's windows to my landscape monitor

We don't implement orientation event / type well on desktop Firefox. And your issue isn't same as original issue.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.