Closed
Bug 945597
Opened 11 years ago
Closed 11 years ago
Phone starts side-ways if placed horizontally and boot
Categories
(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)
Tracking
(blocking-b2g:1.3+)
RESOLVED
FIXED
blocking-b2g | 1.3+ |
People
(Reporter: timdream, Assigned: alive)
References
Details
Attachments
(1 file)
STR:
1. Place the phone side-says on a desk
2. Reboot the phone
3. Wait until the lock screen show up
Expected:
1. Lock screen shown in portrait
Actual:
1. Lock screen shown in landscape
2. Once you unlock the phone, the home screen will be in portrait
3. However, if one turn off the screen and turn on again, the lock screen will once shown in landscape.
Note:
We have dealt with similar thing in Gaia (bug 936253). Greg, Alive, could you quickly work together to verify if there isn't any more bugs in Gaia orientation handling?
Viral, does this have anything to do with orientation: default?
This bug is reproducible on Peak and Unagi.
Flags: needinfo?(vwang)
Flags: needinfo?(gweng)
Flags: needinfo?(alive)
Assignee | ||
Updated•11 years ago
|
Component: General → Gaia::System::Window Mgmt
Assignee | ||
Updated•11 years ago
|
Depends on: orientation-manager
Assignee | ||
Comment 2•11 years ago
|
||
The root cause is gecko doesn't give us the default orientation, but we could do this trick by lockOrientation on device booting to get the default orientation.
Attachment #8341545 -
Flags: review?(timdream)
Comment 3•11 years ago
|
||
Alive and I discuss this issue for bug 934556.
Now OrientationObserver will enable in nsAppShell and start to notify the sensor changes if we have any.
So if there's no any app lock orientation, OrientationObserver will keep working.
The way in my expect to lock in default orientation could be mozLockOrientation.
by using manifest.webapp seems more complexity to me.
Flags: needinfo?(vwang)
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8341545 [details]
https://github.com/mozilla-b2g/gaia/pull/14296
We could do that for now.
Do you think it make sense to expose |screen.mozDefaultOrientation|? I thought we have that already.
Attachment #8341545 -
Flags: review?(timdream) → review+
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(gweng)
Assignee | ||
Comment 5•11 years ago
|
||
No, we don't have the API yet.
Assignee | ||
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 7•11 years ago
|
||
Sounds like a regression, so that makes this a clear blocker.
blocking-b2g: 1.3? → 1.3+
You need to log in
before you can comment on or make changes to this bug.
Description
•