Closed Bug 757791 Opened 12 years ago Closed 12 years ago

mozUnlockOrientation() reverts Firefox Android orientation to SENSOR even if auto-rotate has been disabled

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox13 unaffected, firefox14 wontfix, firefox15 verified, firefox16 verified, blocking-fennec1.0 -, fennec15+)

VERIFIED FIXED
Firefox 15
Tracking Status
firefox13 --- unaffected
firefox14 --- wontfix
firefox15 --- verified
firefox16 --- verified
blocking-fennec1.0 --- -
fennec 15+ ---

People

(Reporter: martijn.martijn, Assigned: mounir)

References

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file testcase
mozUnlockOrientation() works in regular web content, steps to reproduce:
- Make sure that you have "Auto-rotate screen" turned off in your Android settings
- Tap on the "unlock screen orientation" button.

Expected result:
- While rotating your phone, the orientation of Fennec should not change

Actual result:
- When rotating the phone, the orientation of Fennec changes
blocking-fennec1.0: --- → ?
websites shouldnt unlock device orientation in fennec.  it gets stuck in this state even after you exit that page, and wont switch back.
OS: Windows 7 → Android
Hardware: x86 → ARM
tracking-fennec: --- → 15+
blocking-fennec1.0: ? → -
Attached patch PatchSplinter Review
Keep Firefox Android's screen orientation is "unspecified" when unlocking so it will always follow system's settings.
Assignee: nobody → mounir
Status: NEW → ASSIGNED
Attachment #635240 - Flags: review?(blassey.bugs)
Summary: mozUnlockOrientation() works in regular web content → mozUnlockOrientation() reverts Firefox Android orientation to SENSOR even if auto-rotate has been disabled
Blocks: 766904
Attachment #635240 - Flags: review?(blassey.bugs) → review+
Target Milestone: --- → Firefox 16
Comment on attachment 635240 [details] [diff] [review]
Patch

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 740190
User impact if declined: when unlockOrientation() will be called, Firefox orientation will be using sensors orientation even if system "auto-rorate" option is disabled.
Risk to taking this patch (and alternatives if risky): very very low; I don't see any.
Attachment #635240 - Flags: checkin+
Attachment #635240 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/6d2468821b76
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attachment #635240 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Target Milestone: Firefox 16 → Firefox 15
Verified/fixed on:
Nightly Fennec 16.0a1 (2012-07-12)
Aurora Fennec 15.0a2 (2012-07-12)
Using:
HTC Desire Z (2.3.3)

While rotating the  phone, the orientation of Fennec isn't changed.
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: