Closed Bug 1916724 Opened 4 months ago Closed 4 months ago

ScreenOrientation.lock api not implemented

Categories

(Fenix :: Browser Engine, enhancement)

Firefox 117
All
Android
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1744125

People

(Reporter: elidoset, Unassigned)

Details

Steps to reproduce:

The ScreenOrientation.lock and ScreenOrientation.unlock methods are not implemented in Fenix as of the latest version. Using them throws a NotImplemented exception.

Actual results:

So if I understand correctly, the API was added to GeckoView back in 2021 (see bug 1697647), providing a ScreenOrientationDelegate to be implemented by the user. However Fenix never implements the API.

Expected results:

Fenix should include an implementation of the ScreenOrientationDelegate implementing the lock and unlock feature, using something like Activity.setRequestedOrientation(int), as it is done in the test case provided in the bug 1697647 (unlocking can also be achieved by providing ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED I presume).

I'm interested in doing the implementation work myself as an exercise if that's okay with you.

Sorry for the inconvenience, I tried compiling the nightly version which to my surprise worked, and I then found out that the feature was already implemented, simply not enabled on the main releases, seemingly because of bug 1744125 ? Will close the issue as it does appear that it's not useful.

Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Duplicate of bug: 1744125
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.