Closed
Bug 1081132
Opened 11 years ago
Closed 11 years ago
Possible to get lock screen into landscape mode
Categories
(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)
Tracking
(blocking-b2g:2.1+, b2g-v2.0 unaffected, b2g-v2.1 verified, b2g-v2.2 verified)
VERIFIED
FIXED
blocking-b2g | 2.1+ |
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | unaffected |
b2g-v2.1 | --- | verified |
b2g-v2.2 | --- | verified |
People
(Reporter: benfrancis, Assigned: gweng)
References
Details
(Keywords: regression, Whiteboard: [FT:System-Platform])
Attachments
(7 files, 1 obsolete file)
360.34 KB,
image/png
|
Details | |
497.03 KB,
image/png
|
Details | |
5.67 KB,
image/png
|
Details | |
7.24 KB,
image/png
|
Details | |
115.17 KB,
image/png
|
Details | |
46 bytes,
text/x-github-pull-request
|
alive
:
review+
alive
:
feedback+
|
Details | Review |
46 bytes,
text/x-github-pull-request
|
bajaj
:
approval-gaia-v2.1+
|
Details | Review |
I have only seen this happen once on a 2.1 build and I haven't been able to reproduce it since, but as it's such a potentially serious bug I wanted to file it.
The STR were:
* Load a web page in a browser window
* Turn off the screen
* Move the device into a landscape position
* Turn the screen on
* Move the device into a portait position
Expected:
* Lockscreen never gets into landscape mode and never exposes content
Actual:
* When the screen was turned on the lock screen was displayed in landscape mode. When I turned the device into portrait mode the lockscreen only covered half the screen, exposing content behind it.
This was on a fairly recent 2.1 user build updated via OTA on my dogfooding device.
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
On the same build I also noticed that once the lockscreen was not covering a browser window when I unlocked the device.
STR:
* Load content in a browser window
* Turn off the screen
* Turn on the screen
Expected:
* Lockscreen displayed
Actual:
* Browser window (but not content) displayed instead, can't be interacted with
I couldn't reproduce this again after a reboot.
Reporter | ||
Comment 4•11 years ago
|
||
This might benefit from some exploratory testing by QA?
Keywords: qawanted
![]() |
||
Comment 5•11 years ago
|
||
Ben, I'm unable to reproduce this issue after installing a 2.1 build using OTA.
Repro attempts: 0/25
If you could list what build you were on when you saw this issue, that may be helpful. Thanks.
Also, this issue you're seeing might be related to: https://bugzilla.mozilla.org/show_bug.cgi?id=1074029 which has already been addressed.
Environmental Variables:
Device: Flame 2.1
Build ID: 20141003000203
Gaia: 9861c61ec302fb0316c753a2e1c0f592180515fd
Gecko: da68900d1c66
Version: 34.0a2
Firmware Version: v180
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
QA Whiteboard: [QAnalyst-Triage?]
status-b2g-v2.1:
--- → ?
Flags: needinfo?(bfrancis)
Keywords: qawanted
![]() |
||
Updated•11 years ago
|
Flags: needinfo?(jmitchell)
![]() |
||
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
Reporter | ||
Comment 6•11 years ago
|
||
Sorry, I think I've received an OTA update then so I'm not sure what build it was.
I'm now on
Build identifier: 20141008000201
Update channel: Aurora
Git commit info: 2014-10-08 02:27:46 d71f8804
I haven't yet seen the landscape lockscreen problem, but I have seen a browser window appear in front of the lockscreen again as in https://bug1081132.bugzilla.mozilla.org/attachment.cgi?id=8503179
I'm afraid I still haven't found reliable STR
Flags: needinfo?(bfrancis)
![]() |
||
Comment 7•11 years ago
|
||
Just wanted to make sure this was on your radar Tim...it came up in our sprint planning
Flags: needinfo?(timdream)
Comment 8•11 years ago
|
||
Greg, have you ever saw this?
This maybe an window mgmt bug or lockscreen bug. We don't know until we get a window.
![]() |
Assignee | |
Comment 9•11 years ago
|
||
I have seen this, but I don't have reliable STR, at least when I try to reproduce it intentionally it disappear. And it seems irrelevant to browser window, because this could occur with only Homescreen & LockScreen.
One thing I've noticed is the last time I saw that, the phone slept a long while (several hours). And it even came with some graphic broken. But I don't know whether this is parts of the STR.
Flags: needinfo?(gweng)
Reporter | ||
Comment 10•11 years ago
|
||
I saw the bug again today where the lockscreen was covered by a browser window when turning on the screen as in https://bug1081132.bugzilla.mozilla.org/attachment.cgi?id=8503179
I also saw this new problem (new attachment) when receiving a phone call this was what I saw instead of the incoming call screen! It prevented me from receiving the call and I had to reboot the device to get out of it.
I can't tell whether this is related but it seems that it might be.
Reporter | ||
Comment 11•11 years ago
|
||
This seems serious enough to nominate for 2.1+, I'm sorry I still haven't found more reliable STR.
[Blocking Requested - why for this release]: Seriously broken UI with lockscreen covered by content, prevents the phone from being unlocked.
blocking-b2g: --- → 2.1?
![]() |
Assignee | |
Comment 12•11 years ago
|
||
While it's totally justicial to nominate it, without STR we can do nothing but continuously watching if there is any procedure causes to the symptom. Could or should we set qawanted again? Or this would be a really serious but hard to debug 2.1(+) bug.
![]() |
||
Comment 13•11 years ago
|
||
(In reply to Greg Weng [:snowmantw][:gweng][:λ] from comment #12)
> While it's totally justicial to nominate it, without STR we can do nothing
> but continuously watching if there is any procedure causes to the symptom.
> Could or should we set qawanted again? Or this would be a really serious but
> hard to debug 2.1(+) bug.
No need to set a QA-Wanted keyword, We see this in our Queues because of the Steps-Wanted tag. We've also been looking for STR but no luck over here either.
Comment 14•11 years ago
|
||
Here are my steps:
1. Slide to camera from the lockscreen.
2. Take a picture with the camera.
3. Tap on the picture preview.
4. Rotate the phone to landscape while viewing the picture.
5. Lock the device.
The lockscreen will be in landscape mode.
I'm pretty sure this is written elsewhere.
Comment 15•11 years ago
|
||
I forgot you must have passcode enabled as well.
![]() |
||
Comment 16•11 years ago
|
||
I can confirm those steps on 2.1 - will attach a screenshot similar to reporter's in next comment.
Swapping Steps-Wanted for QA-Wanted for the rest of the Branch Check
Keywords: steps-wanted → qawanted
![]() |
||
Comment 17•11 years ago
|
||
Lockscreen in Landscape mode
![]() |
||
Comment 18•11 years ago
|
||
Using those STR I find that this issue repro's in 2.2 and 2.1 but does NOT repro in 2.0
Issue DOES repro in 2.2 and 2.1 - KK Builds - Full Flash - 512 mem
Environmental Variables:
Device: Flame 2.1
Build ID: 20141014001201
Gaia: 7e2e65a9668123b54c8cce5dacfdba6f4bd4672b
Gecko: 2325da834971
Version: 34.0
Firmware Version: v184
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Device: Flame 2.2
Build ID: 20141014040203
Gaia: 4f86c631e0465c0e56ccebeb1324fd28be9ea32f
Gecko: 54217864bae9
Version: 36.0a1 (2.2)
Firmware Version: v184
User Agent: Mozilla/5.0 (Mobile; rv:36.0) Gecko/36.0 Firefox/36.0
--------------------------------------------------------------------------------------
Issue does NOT repro in 2.0 - KK Builds - Full Flash - 512 mem
Actual Results: 2.0 does not use the slider, but has the sim pin pad automatically up on lockscreen
Environmental Variables:
Device: Flame 2.0
Build ID: 20141014000201
Gaia: 21fc294d6c9b78997142153fc32c3175b4835a89
Gecko: 93530962cca3
Version: 32.0 (2.0)
Firmware Version: v184
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
Comment 20•11 years ago
|
||
Regression (with clear STR! :) + user experience of being unable to unlock = blocker.
blocking-b2g: 2.1? → 2.1+
Summary: Possible to get lock screen into broken state exposing content → Possible to get lock screen into landscape mode
![]() |
Assignee | |
Comment 21•11 years ago
|
||
OK, thanks a million for the STR. I would start to debug this.
![]() |
Assignee | |
Updated•11 years ago
|
Assignee: nobody → gweng
![]() |
Assignee | |
Comment 22•11 years ago
|
||
From Comment 14 and Comment 15, it seems this is related to secure camera and the previewer. I'll try it first.
![]() |
Assignee | |
Comment 23•11 years ago
|
||
Yes, confirmed that this is broken with secure camera's preview mode. Without the passcode and using the ordinary camera via sliding to unlock, it works well. I think LWM/SWM many need to lock the orientation when the foreground secure window get killed.
![]() |
Assignee | |
Comment 24•11 years ago
|
||
My original thought is to lock the orientation again while the screen is off. But I've found this not work because when it locked, the orientation locking function would not work (return false). An alternative is to lock it at the screen turning on moment, but I suspect that user would unavoidable see the screen rotating transiently.
![]() |
Assignee | |
Comment 25•11 years ago
|
||
One tricky way to reduce the impact of UX is when the screen is on, do not show LockScreen immediately, but covered it with a whole black screen just like the screen is still off, and we can remove the cover after we successfully lock the orientation. But the risk is user may feel a little delay if the screen is expected to be turned on immediately after he/she press the power button.
![]() |
Assignee | |
Comment 26•11 years ago
|
||
For this issue I submit this demo patch, it:
1. When screen turn off, hide the whole screen for hide LockScreen and the statusbar
2. When screen turn on, try to lock the orientation to portrait, with the setInterval trick, since it may fail at the exact moment the event received
3. After we successfully lock the orientation, display the screen again
I know this patch is dirty, but it demo the possible solution of this bug.
BTW, I really hate to modify ScreenManager according to it's current status...
![]() |
Assignee | |
Comment 27•11 years ago
|
||
Comment on attachment 8506628 [details] [review]
Demo patch
Alive: I set feedback for the possible proper solution you can provide. I may submit a new patch according to them, thanks.
Attachment #8506628 -
Flags: feedback?(alive)
![]() |
||
Comment 28•11 years ago
|
||
Read through the comments I think we are able to get a regression window?
Keywords: regressionwindow-wanted
![]() |
||
Comment 29•11 years ago
|
||
Comment on attachment 8506628 [details] [review]
Demo patch
Please try to use visibilitychange instead of spamming lock in screenchange.
Please try not to hide the body to prevent additional bugs.
Attachment #8506628 -
Flags: feedback?(alive)
![]() |
Assignee | |
Comment 30•11 years ago
|
||
Additional offline comments from Alive:
Open LW while screen off/on is reasonable, while to close it is not.
![]() |
||
Updated•11 years ago
|
QA Contact: ckreinbring
![]() |
||
Comment 31•11 years ago
|
||
Regression window
Last working
BuildID: 20140731150609
Gaia: 04ea7e1a4034a50d4a7a4f5b95a04a2ed8313908
Gecko: 104254bd1fc8
Platform Version: 34.0a1
Firmware Version: V123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
First broken
BuildID: 20140801070614
Gaia: 9689218473b6fc4dd927ad6aa7b06c05f0843824
Gecko: 8970589d6505
Platform Version: 34.0a1
Firmware Version: V123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Working Gaia / Broken Gecko = No repro
Gaia: 04ea7e1a4034a50d4a7a4f5b95a04a2ed8313908
Gecko: 8970589d6505
Broken Gaia / Working Gecko = Repro
Gaia: 9689218473b6fc4dd927ad6aa7b06c05f0843824
Gecko: 104254bd1fc8
Gaia pushlog: https://github.com/mozilla-b2g/gaia/compare/04ea7e1a4034a50d4a7a4f5b95a04a2ed8313908...9689218473b6fc4dd927ad6aa7b06c05f0843824
B2G Inbound
Last working
BuildID: 20140731195311
Gaia: f740793dc3f7e59df800c6392209ab0a2486d4c9
Gecko: 4c2e31b74bc4
Platform Version: 34.0a1
Firmware Version: V123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
First broken
BuildID: 20140731202712
Gaia: d1e2bb26d5433a07782c3cccf3e9e49c3f3eb838
Gecko: 102dee00cce2
Platform Version: 34.0a1
Firmware Version: V123
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Working Gaia / Broken Gecko = No repro
Gaia: f740793dc3f7e59df800c6392209ab0a2486d4c9
Gecko: 102dee00cce2
Broken Gaia / Working Gecko = Repro
Gaia: d1e2bb26d5433a07782c3cccf3e9e49c3f3eb838
Gecko: 4c2e31b74bc4
Gaia pushlog: https://github.com/mozilla-b2g/gaia/compare/f740793dc3f7e59df800c6392209ab0a2486d4c9...d1e2bb26d5433a07782c3cccf3e9e49c3f3eb838
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage?]
Flags: needinfo?(jmitchell)
Keywords: regressionwindow-wanted
![]() |
Assignee | |
Comment 32•11 years ago
|
||
Since 'visibilitychange' would fail to fire when user press the power button quickly, I can only keep the 'screenchange' + setInterval solution.
![]() |
||
Comment 33•11 years ago
|
||
caused by bug 1041889
Blocks: 1041889
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
QA Contact: ckreinbring
![]() |
Assignee | |
Comment 34•11 years ago
|
||
While I don't like to put the orientation back to the lockscreen.js, I submit the patch we discussed.
The Gaia-Try only failed at those everybody failed tests:
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=ac1598918fd5
I'll submit a v2.1 version later, and after reviewing I would fire a bug to hide LockScreen while the orientation is locking to prevent user see the strange rotating, which may not be 2.1+.
Attachment #8506628 -
Attachment is obsolete: true
Attachment #8509268 -
Flags: review?(alive)
![]() |
||
Comment 35•11 years ago
|
||
Comment on attachment 8509268 [details] [review]
Patch
Let's move the logic into LockscreenWindow instead of in Manager.
Attachment #8509268 -
Flags: review?(alive)
![]() |
Assignee | |
Comment 36•11 years ago
|
||
Alive: for your comment of the patch:
The original version of |setOrientation| in AppWindow return nothing, and it proxy the |lockOrientation| which also return nothing. Should I invent my version of |setOrientation| and do the locking action and omit |lockOrientation|? Since you said LWM should proxy the |setOrientation| and re-try according to it's return value.
Flags: needinfo?(alive)
![]() |
||
Comment 37•11 years ago
|
||
LWM should not care about how the lockscreen window locks orientation. in the future maybe we want a landscape lockscreen, so it's lockscreen window's responsibility to keep the orientation (by reading from manifest and manifest is different for different lockscreen app).
For the lockscreenWindow we could try to
1. When screen is turned on, let LWM call LW.lockOrientation().
2. Internally check the lock result; if failed the LW should check lock again until succeed.
Flags: needinfo?(alive)
![]() |
Assignee | |
Comment 38•11 years ago
|
||
Comment on attachment 8509268 [details] [review]
Patch
Updated the patch and it only failed at some intermittent tests, so I set the review flag.
Attachment #8509268 -
Flags: review?(alive)
![]() |
||
Comment 39•11 years ago
|
||
Comment on attachment 8509268 [details] [review]
Patch
r+ with nits
Attachment #8509268 -
Flags: review?(alive) → review+
![]() |
Assignee | |
Comment 40•11 years ago
|
||
Comment on attachment 8509268 [details] [review]
Patch
1. LWM would check if it's active, so I don't think lockOrientation needs to check it again. Unless someone isn't LWM would call it as well, but this won't be a reasonable path to use it.
2. I've found I missed one case: when we press homekey to kill secure app, it would need to lock the orientation, too. So I now set the feedback for this part.
Attachment #8509268 -
Flags: feedback?(alive)
![]() |
||
Comment 41•11 years ago
|
||
Comment on attachment 8509268 [details] [review]
Patch
WFM
Attachment #8509268 -
Flags: feedback?(alive) → feedback+
![]() |
Assignee | |
Comment 42•11 years ago
|
||
![]() |
Assignee | |
Comment 43•11 years ago
|
||
Gaia-Try is green for master patch:
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=86a619c65260
![]() |
Assignee | |
Comment 44•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
![]() |
Assignee | |
Updated•11 years ago
|
![]() |
Assignee | |
Comment 45•11 years ago
|
||
Comment on attachment 8514056 [details] [review]
Patch v2.1
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): The orientation API design has some flaws make apps can aggressively lock the orientation while we're back from SecureApp or ordinary app. This patch can fix the part Gaia is able to do.
[User impact] if declined: Error occurs
[Testing completed]: Gaia-Try is green except intermittent tests and one Gij failure which failed even after I revert my patch completely, like:
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=93a9aa71240d
I now submit two commits to show that. One is the patch and another is the reverting patch. And it should show that no matter my patch get reverted or not, the test still fails.
[Risk to taking this patch] (and alternatives if risky): No obvious risks
[String changes made]: No
Attachment #8514056 -
Flags: approval-gaia-v2.1?(fabrice)
![]() |
Assignee | |
Updated•11 years ago
|
Attachment #8514056 -
Flags: approval-gaia-v2.1?(fabrice)
![]() |
Assignee | |
Comment 46•11 years ago
|
||
The Gij now only failed at one irrelevant Browser assertion failure, which not failed at previous runs:
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=1af9a5e4a638
![]() |
Assignee | |
Comment 47•11 years ago
|
||
Comment on attachment 8514056 [details] [review]
Patch v2.1
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): The orientation API design has some flaws make apps can aggressively lock the orientation while we're back from SecureApp or ordinary app. This patch can fix the part Gaia is able to do.
[User impact] if declined: Error occurs
[Testing completed]: Gaia-Try is green except intermittent tests as the above comment described.
[Risk to taking this patch] (and alternatives if risky): No obvious risks
[String changes made]: No
Attachment #8514056 -
Flags: approval-gaia-v2.1?(fabrice)
![]() |
Assignee | |
Comment 48•11 years ago
|
||
Yes, the test now is passed:
https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=1af9a5e4a638
Updated•11 years ago
|
Attachment #8514056 -
Flags: approval-gaia-v2.1?(fabrice) → approval-gaia-v2.1+
![]() |
Assignee | |
Comment 49•11 years ago
|
||
![]() |
||
Comment 50•11 years ago
|
||
This issue is verified fixed on Flame 2.1 and 2.2.
Result: The lockscreen is in portrait mode following STRs on Comment 14.
Device: Flame 2.1 (319mb)(Kitkat Base)(Full Flash)
BuildID: 20141104001202
Gaia: 8b0cf889ae0d48a9eb7ecdcb9b67590de45cc5e5
Gecko: 388b03efe92d
Gonk: 48835395daa6a49b281db62c50805bd6ca24077e
Version: 34.0 (2.1)
Firmware: V188
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Device: Flame 2.2 Master (319mb)(Kitkat Base)(Full Flash)
BuildID: 20141104040207
Gaia: 3c50520982560ccba301474d1ac43706138fc851
Gecko: 54d05732f29b
Gonk: 48835395daa6a49b281db62c50805bd6ca24077e
Version: 36.0a1 (2.2)
Firmware Version: v188
User Agent: Mozilla/5.0 (Mobile; rv:36.0) Gecko/36.0 Firefox/36.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Updated•11 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
You need to log in
before you can comment on or make changes to this bug.
Description
•