Closed
Bug 1137613
Opened 9 years ago
Closed 9 years ago
[System] The animation that shows a notification feels sluggish
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(b2g-v2.2 fixed, b2g-master fixed)
RESOLVED
FIXED
2.2 S9 (3apr)
People
(Reporter: julienw, Assigned: julienw)
References
Details
(Keywords: polish, Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
46 bytes,
text/x-github-pull-request
|
julienw
:
review+
julienw
:
ui-review+
bajaj
:
approval-gaia-v2.2+
|
Details | Review |
STR: 1. receive a SMS (or take a screenshot) Total animation time is 1.4sec. Look at the animation: 1. first .36s: the ambient indicator appears progressively, it takes 86px only in the center of the screen. 2. next .36s: nothing happens, this is "pause". 3. next .48s: the ambient indicator width progressively increases until taking the whole available width. 4. next .2s: the notification box is progressively displayed. This is a very long time, but I don't object this, as we usually don't need to see notifications right away. However, the pause at step 2 makes the whole animation feels sluggish. We think the phone is lagging. Tiffanie things the same in bug 988530 comment 25. I think we should change this in v2.2. Yes it's polish, but it's not risky at all because it's all done in CSS. Proposal: * get rid of the pause (step 3). * makes the other various steps shorter. .2s for steps 1 and 3 should be more than enough. We need to look at how it looks like on the device because animating the width _can_ be sluggish though. NI Tiffanie: what do you think?
Flags: needinfo?(tshakespeare)
Assignee | ||
Updated•9 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Comment 1•9 years ago
|
||
I don't see an issue with the proposal but Eric is going to have final say.
Flags: needinfo?(tshakespeare) → needinfo?(epang)
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master Here is a proposal if you want to test it.
Assignee | ||
Updated•9 years ago
|
Attachment #8570877 -
Flags: review?(mhenretty)
Comment 4•9 years ago
|
||
(In reply to Tiffanie Shakespeare from comment #1) > I don't see an issue with the proposal but Eric is going to have final say. Thanks for flagging me on this Tiff! This is fine by me, thanks Julien for making a patch :).
Flags: needinfo?(epang)
Comment 5•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master For the record, I don't think the old animation felt sluggish, since even during the pause it was animating the background color of the "nub". I think it's sad that we can't see that color transition anymore, I thought it was a nice effect. That said, if everyone else is on board with this change I won't block it. I left a comment on github about css properties, but code looks fine overall.
Attachment #8570877 -
Flags: review?(mhenretty) → review+
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(felash)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master Let's do another round of review after these changes.
Flags: needinfo?(felash)
Attachment #8570877 -
Flags: ui-review?(epang)
Attachment #8570877 -
Flags: review?(mhenretty)
Attachment #8570877 -
Flags: review+
Comment 8•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master Feels better to me. Make sure you squash :)
Attachment #8570877 -
Flags: review?(mhenretty) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master Amazing what a fraction of a second does. Looks good to me R+ Thanks for making the change Julien!
Attachment #8570877 -
Flags: ui-review?(epang) → ui-review+
Assignee | ||
Comment 10•9 years ago
|
||
Thanks guys ! master: 7f1d04fb1ffa72578b75c7ebba64ed221fbc230e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master [Approval Request Comment] [Bug caused by] (feature/regressing bug #): bug 1042713 [User impact] if declined: the animation looks sluggish and the phone seems to be slow. [Testing completed]: yes, mostly manually [Risk to taking this patch] (and alternatives if risky): low [String changes made]: none
Attachment #8570877 -
Flags: approval-gaia-v2.2?
Comment 12•9 years ago
|
||
Backed out for likely causing Gij failures when landing: https://treeherder.mozilla.org/#/jobs?repo=b2g-inbound&revision=b47bc9275d63 Backout commit: https://github.com/mozilla-b2g/gaia/commit/3fc0ac309f5fb0c1fe82c12223b955a4efce27e6 Logs: http://ftp.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/b2g-inbound-linux64_gecko/1425414827/b2g-inbound_ubuntu64_vm-b2gdt_test-gaia-js-integration-7-bm67-tests1-linux64-build46.txt.gz
Status: RESOLVED → REOPENED
Flags: needinfo?(felash)
Resolution: FIXED → ---
Comment 13•9 years ago
|
||
Comment on attachment 8570877 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master Clearing approval until this re-lands.
Attachment #8570877 -
Flags: approval-gaia-v2.2?
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Comment 15•9 years ago
|
||
Sounds likely. Too bad we don't have a screenshot for "normal" assertion errors :(
Assignee | ||
Comment 16•9 years ago
|
||
Never failed once locally :(
Assignee | ||
Comment 17•9 years ago
|
||
It doesn't fail on my slow computer either :/ I don't have a clue.
Comment 18•9 years ago
|
||
Have you tried adding a screenshot to the test when it runs on treeherder? The test seems pretty simple, so based on the patch I wonder if we're too slow when trying to close the notification now? Does it hide any earlier than before?
Assignee | ||
Comment 19•9 years ago
|
||
The problem is that the test ends before the "based on Mozilla" overlay is removed. So we can't see anything.
Comment 20•9 years ago
|
||
Removing profiling backlog, this isn't a performance issue - the animation just has a long pause defined in it.
No longer blocks: 1094010
Assignee | ||
Comment 21•9 years ago
|
||
Mmm I wonder if we still have the issue now that bug 1062109 landed. I'm trying to rebase.
Comment 22•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8570877 -
Attachment is obsolete: true
Flags: needinfo?(felash)
Assignee | ||
Comment 23•9 years ago
|
||
Comment on attachment 8578773 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master carrying over r=mhenretty and ui-r=omega
Attachment #8578773 -
Flags: ui-review+
Attachment #8578773 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(felash)
Assignee | ||
Comment 24•9 years ago
|
||
Thanks to bug 1062109, the test is no more intermittent and is consistently failing with the patch. This makes things easier :) So I think I found the issue: because the element is always displayed after the patch (I removed the visibility easing), ".displayed()" returns before the notification is displayed, and the "slide up" flick does nothing. The "right" way would be to wait the end of the animation before doing anything in the marionette test, but I don't really know how to do this. So instead, I've put back the visibility easing, which makes marionette's "displayed()" behave like we want it to. I'd need to check on a device how this looks like before merging, but I hope that it looks right now that bug 1137203 is fixed. I updated the PR and will check tomorrow.
Assignee | ||
Comment 25•9 years ago
|
||
I checked on a device and it looks great. I updated the PR too, with some comments to explain some bits to a possible reader. Now I want to wait for a good gaia try, but because gaia try is lying, I'll wait until tomorrow instead ;) I hope I'll still be able to uplift to 2.2 !
Assignee | ||
Comment 26•9 years ago
|
||
Found a failing test (notification_behavior_test.js) but it seems to fail on master too, so merging.
Flags: needinfo?(felash)
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 27•9 years ago
|
||
Comment on attachment 8578773 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master [Approval Request Comment] See comment 11. This is a low risk patch, that's why I'm asking for approval for v2.2. The issues we had were solely test issues, not code issues.
Attachment #8578773 -
Flags: approval-gaia-v2.2?
Comment 28•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/1aec7e584f1b6d6bfe5b1c2afe1985b3e64c84ef
Updated•9 years ago
|
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Comment 29•9 years ago
|
||
Comment on attachment 8578773 [details] [review] [gaia] julienw:1137613-notification-animation > mozilla-b2g:master We should backout if there are any fallouts due to this, rather than forward fixing things.
Attachment #8578773 -
Flags: approval-gaia-v2.2? → approval-gaia-v2.2+
Comment 30•9 years ago
|
||
v2.2: https://github.com/mozilla-b2g/gaia/commit/50d70c79035fc47b8a96d73013fa0985f2f38a12
You need to log in
before you can comment on or make changes to this bug.
Description
•