Closed Bug 1806072 Opened 3 years ago Closed 3 years ago

screen.orientation.angle is always 0 on Pixel 6a

Categories

(GeckoView :: General, defect, P2)

All
Android
defect

Tracking

(firefox108 wontfix, firefox109 fixed, firefox110 fixed)

RESOLVED FIXED
110 Branch
Tracking Status
firefox108 --- wontfix
firefox109 --- fixed
firefox110 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file)

When I test screen orientation APIs on Pixel 6a, I found that angle is always 0. I guess that is is similar to bug 1754802.

When using Pixel 6a, orientation information seems to be invalid. It seems that
this is similar to bug 1754802.

So we should get the rotation information from ScreenCompat per API level.

And, when changing screen orientation by screen.orientation.lock(), Display
Manager API observes changing, but it may get previous information at this
timing. After changing display information, onConfigureChanges is notified,
then we an get correct information, so we have to update information via it if
newer Android.

Makoto, do you think we should uplift your fix to Beta 109? Does this bug only affect Pixel 6a devices?

Severity: -- → S3
Flags: needinfo?(m_kato)
Priority: -- → P2
See Also: → 1754802

(In reply to Chris Peterson [:cpeterson] from comment #2)

Makoto, do you think we should uplift your fix to Beta 109? Does this bug only affect Pixel 6a devices?

I cannot reproduce this on emulator image (Android 13), but I can reproduce this on Pixel 4a and Pixel 6a. I guess that some devices on Android 12+ such as bug 1754802's OnePlus device will reproduce this. If not too late, we should uplift this fix to beta.

Flags: needinfo?(m_kato)
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ddf5f22cd611 screen.orientation.angle isn't updated on Pixel 6a. r=geckoview-reviewers,owlish
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

The patch landed in nightly and beta is affected.
:m_kato, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox109 to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(m_kato)

Comment on attachment 9308649 [details]
Bug 1806072 - screen.orientation.angle isn't updated on Pixel 6a. r=#geckoview-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: When using screen orientation API to get current screen angle, Google Pixel 4+ device doesn't get current value.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): When device is Android 12+, we use recommended API instead.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(m_kato)
Attachment #9308649 - Flags: approval-mozilla-beta?

Comment on attachment 9308649 [details]
Bug 1806072 - screen.orientation.angle isn't updated on Pixel 6a. r=#geckoview-reviewers

Approved for 109.0b7

Attachment #9308649 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Backed out for blocking Android Components from being updated in Fenix nightly.

Backout link: https://hg.mozilla.org/integration/autoland/rev/23f995f7972e3c98a1a7d2426f9052e1692b2e42

Status: RESOLVED → REOPENED
Flags: needinfo?(m_kato)
Resolution: FIXED → ---
Target Milestone: 110 Branch → ---

Backed out changeset 60558319004b out of Beta to avoid test failures in Fenix beta
Backout link: https://hg.mozilla.org/releases/mozilla-beta/rev/d3e8b8bfa752dedc3ba24b0e585b05f07d535501

Comment on attachment 9308649 [details]
Bug 1806072 - screen.orientation.angle isn't updated on Pixel 6a. r=#geckoview-reviewers

No longer going out in 109.0b7, please re-nominate if a new patch is needed in beta

Attachment #9308649 - Flags: approval-mozilla-beta+ → approval-mozilla-beta-

(In reply to Atila Butkovits from comment #10)

Backed out for blocking Android Components from being updated in Fenix nightly.

Backout link: https://hg.mozilla.org/integration/autoland/rev/23f995f7972e3c98a1a7d2426f9052e1692b2e42

Could you point out failure job link?

Flags: needinfo?(m_kato) → needinfo?(abutkovits)

Fenix's unit test seems to create GeckoScreenOrientation object on non-Android environment. I have to to add check for context.

Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/041ba3a6ffc5 screen.orientation.angle isn't updated on Pixel 6a. r=geckoview-reviewers,owlish
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

Comment on attachment 9308649 [details]
Bug 1806072 - screen.orientation.angle isn't updated on Pixel 6a. r=#geckoview-reviewers

Patch has successfully made it into Fenix nightly builds now. Re-nominating for Beta consideration.

Attachment #9308649 - Flags: approval-mozilla-beta- → approval-mozilla-beta?

Comment on attachment 9308649 [details]
Bug 1806072 - screen.orientation.angle isn't updated on Pixel 6a. r=#geckoview-reviewers

Approved for Fenix/Focus 109.0b5.

Attachment #9308649 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
No longer regressions: 1828611
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: