Closed Bug 1754858 Opened 2 years ago Closed 2 years ago

Move Screen orientation into widget::Screen rather than keeping it around in hal.

Categories

(Core :: Widget, defect, P2)

defect

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

It's where it logically belongs.

Make the ScreenOrientation part of the screen struct, as it should. Stop
using HAL to propagate just screen orientation updates, use the more
general screen manager.

Instead of HAL observers, add a simple observer service notification,
and clean a bunch of the code.

This will simplify bug 1754802 a bit, and is generally simpler.
Shouldn't change behavior. I've tested the events and some common
orientation locking use cases like Youtube, and they behave the same.

Depends on D138461

Severity: -- → S3
Priority: -- → P2
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/66f2b55fec3b
Simplify screen orientation API implementation. r=smaug,m_kato,geckoview-reviewers
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/ddbd482689fc
Only avoid orientation unlock call on destructor, to fix OrientationDelegateTest.orientationUnlock.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Blocks: 1690350
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: