Closed Bug 1829654 Opened 2 years ago Closed 2 years ago

screen.orientation.type might be incorrect with Android 13

Categories

(GeckoView :: General, defect, P2)

All
Android
defect

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file)

From https://github.com/w3c/screen-orientation/issues/247. Pixel 6a with Android 13 sometimes returns that screen.orientation.type is incorrect value. (But angle is correct).

It seems that type uses from onConfigurationChanged on Android 13, but this change is too late...

Although screen.orientation.lock() works correctly and orientation.type
returns correct value, when using auto-rotation, orientation.type sometimes
return previous value on Android 12+'s device.

By bug 1806072, orientation.angle returns correct value. But
Configuration.orientation may be still previous value on
onConfigurationChanged. So we don't trust this value.

I cannot reproduce this on emulator image of Android 13. This seems to be
real device only

Also, I add orientation unlock to GVE for manual test.

See Also: → 1802849
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/33fc88e10daf screen.orientation.type may be incorrect by auto-rotation on Pixel 6a. r=geckoview-reviewers,calu
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
Component: Core → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: