mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00

Orientation lock allows on full screen state only now. Then if exiting full screen, orientation lock is unlocked without `screen.orientation.unlock` call. Although we store orientation lock state in browsing context, we don't clear when exiting full screen. So when current content is re-activated by switching tab etc, we try to apply orientation lock state from browsing context unfortunately. So we should clear this state when exiting full screen even if `unlock` isn't called. Differential Revision: https://phabricator.services.mozilla.com/D142938