Closed
Bug 842091
Opened 12 years ago
Closed 12 years ago
Cards view sometimes flickers white when opened while app other than homescreen is foreground
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:tef+, b2g18 verified, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 verified)
VERIFIED
FIXED
blocking-b2g | tef+ |
People
(Reporter: cjones, Assigned: cjones)
References
Details
(Keywords: polish)
Attachments
(1 file)
1.71 KB,
patch
|
timdream
:
review+
alive
:
review+
justin.lebar+bug
:
feedback+
vingtetun
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
STR
(1) Launch dialer, then settings, then email, then calendar, leaving calendar in the foreground
(2) Long-press HOME to open cards view
The card for calendar flickers white before showing screenshot(?).
Assignee | ||
Comment 1•12 years ago
|
||
When the homescreen is foreground, we get bug 837350.
Assignee | ||
Comment 2•12 years ago
|
||
The problem seems to be that the foreground app is setVisible(false) before the cards view is ready.
Assignee | ||
Comment 3•12 years ago
|
||
This doesn't appear to be gaia's fault; the frame is setVisible(false) in the same CSS "transaction" that removes the white background. I think the problem is that the app throwing out its layers is racing to the compositor with the window-manager layer transaction that removes the background. When the app wins, we get the flicker.
Assignee | ||
Comment 4•12 years ago
|
||
This is a pretty gross hack, though not the grossest I've ever written. Fixing it "for reals" would be too risky to consider for a v1.0 uplift.
The UX improvement is fantastic! It's amazing how you get inured to these kinds of bugs.
jlebar, do you think this will negatively impact any of the app-launching fixes you've made? This will keep apps in the fg class for an extra 50ms when they're sent to the background.
Assignee: nobody → jones.chris.g
Attachment #714857 -
Flags: review?(timdream)
Attachment #714857 -
Flags: review?(alive)
Attachment #714857 -
Flags: feedback?(justin.lebar+bug)
Comment 5•12 years ago
|
||
Comment on attachment 714857 [details] [diff] [review]
Prevent flickering when transitioning to cards view
Is the homescreen visible when you're in cards view? If so, there's a chance that this will cause us to kill the homescreen.
But it's probably fine. I don't think there's any impact on the app-launching stuff, if this 50ms delay applies only when we're showing cards view.
Attachment #714857 -
Flags: feedback?(justin.lebar+bug) → feedback+
Assignee | ||
Comment 6•12 years ago
|
||
The homescreen becomes visible during this transition, but it's already setVisible(true) before we setVisible(false) the transitioning app, so this patch won't affect that.
I filed bug 842102 on what we need to actually fix this bug.
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 714857 [details] [diff] [review]
Prevent flickering when transitioning to cards view
I'm going to go ahead and this through approval triage.
This is a very low-risk change that fixes a major visually jarring glitch when entering the cards view.
Attachment #714857 -
Flags: approval-gaia-v1?
Comment 8•12 years ago
|
||
omgthatssomuchbetter
Comment 9•12 years ago
|
||
Comment on attachment 714857 [details] [diff] [review]
Prevent flickering when transitioning to cards view
Review of attachment 714857 [details] [diff] [review]:
-----------------------------------------------------------------
Simple workaround and may be a race condition but if we have no better way before paint event is fired to system app... r=me.
Attachment #714857 -
Flags: review?(alive) → review+
Comment 10•12 years ago
|
||
Comment on attachment 714857 [details] [diff] [review]
Prevent flickering when transitioning to cards view
r+ if this fixes the problem. If you want the hack only apply to cards view opening, considering add
if (screenElement.classList.contains('cards-view'))
Also, Would you file a bug and attach the # to the comment so we could hopefully remove the hack one day?
Attachment #714857 -
Flags: review?(timdream)
Attachment #714857 -
Flags: review+
Attachment #714857 -
Flags: approval-gaia-v1?(21)
Attachment #714857 -
Flags: approval-gaia-v1?
Assignee | ||
Comment 11•12 years ago
|
||
The followup is bug 842102, but I'll add a comment in the code.
Assignee | ||
Comment 12•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 14•12 years ago
|
||
Comment on attachment 714857 [details] [diff] [review]
Prevent flickering when transitioning to cards view
Let's say that I really don't like this solution and it is a shame for me to a+ it. But I have been told by all people that have tried the phone that this white flash is ugly and that the phone feels broken because of it and users wins.
This is a very low risk patch that should land on both v1.0.1 and v1-train
Attachment #714857 -
Flags: approval-gaia-v1?(21) → approval-gaia-v1+
Assignee | ||
Comment 15•12 years ago
|
||
Bug 842102 won't be hard to fix, but we shouldn't take that for v1.0.
Comment 16•12 years ago
|
||
v1-train@7c2b9afc7601ae7a925ea97bfa0fb1be1639f739
Assignee | ||
Comment 17•12 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) (:21) from comment #14)
> Comment on attachment 714857 [details] [diff] [review]
> Prevent flickering when transitioning to cards view
>
> This is a very low risk patch that should land on both v1.0.1 and v1-train
This seems to have only landed on v1-train.
Flags: needinfo?(jhford)
I think the rule of the week is that only tef+ bugs get to be uplifted to the 1.0.1 release. So I'd expect that that is what people are querying for when looking for what to uplift.
blocking-b2g: - → tef?
Comment 19•12 years ago
|
||
Approving low risk fix for uplift.
blocking-b2g: tef? → tef+
status-b2g18-v1.0.0:
--- → wontfix
Comment 20•12 years ago
|
||
v1-train: 7c2b9afc7601ae7a925ea97bfa0fb1be1639f739
v1.0.1: c92d592e77ec11323ad2b1e11be6f5c1157982f7
Flags: needinfo?(jhford)
Comment 21•12 years ago
|
||
Unagi Build ID: 20130313070202
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/e74dafa6b2d9
Gaia: b34e726147f8e671ad8c538b50900ccfbffcb084
Kernel: Dec 5th
In the build above, I'm unable to get the bug to occur. I've opened up a a bunch of programs and gone into card view from inside multiple programs but also just on different home screens and not seen this flash.
Marking this as Verified Fixed.
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•