Closed
Bug 916735
Opened 11 years ago
Closed 11 years ago
Add a pref to disable animation when entering/exiting customization mode
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: Unfocused, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P3][Australis:M9])
Attachments
(1 file)
5.58 KB,
patch
|
Unfocused
:
review+
|
Details | Diff | Splinter Review |
Running the CustomizableUI tests is needlessly slow at the moment, thanks to the animation for entering/exiting customization mode. Lets have a pref to disable that, and save some hours of machine time. Also, likely useful for some people on low-spec machines or remote desktop connections/thin clients.
Assignee | ||
Comment 1•11 years ago
|
||
Agreed. Let's also do this before we merge...
Blocks: australis-cust
Whiteboard: [Australis:P3][Australis:M9]
Assignee | ||
Comment 2•11 years ago
|
||
Hmm. But can we actually do this? Of course, we do want to keep checking our animation (end detecting) stuff keeps working, not introduce non-automatic-test-only failures in our code. :-(
Comment 3•11 years ago
|
||
Instead of canceling the transitions outright, we could force the durations to be very, very quick if some attribute is applied - we could read the pref at the beginning of CustomizeMode.enter, and add the attribute...removing it on exit. Just an idea.
Comment 4•11 years ago
|
||
(In reply to Mike Conley (:mconley) from comment #3) > Instead of canceling the transitions outright, we could force the durations > to be very, very quick if some attribute is applied - we could read the pref > at the beginning of CustomizeMode.enter, and add the attribute...removing it > on exit. > > Just an idea. http://gifrific.com/wp-content/uploads/2013/04/Mr-Burns-Saying-Excellent.gif
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #4) > (In reply to Mike Conley (:mconley) from comment #3) > > Instead of canceling the transitions outright, we could force the durations > > to be very, very quick if some attribute is applied - we could read the pref > > at the beginning of CustomizeMode.enter, and add the attribute...removing it > > on exit. > > > > Just an idea. > > http://gifrific.com/wp-content/uploads/2013/04/Mr-Burns-Saying-Excellent.gif This is what I thought. But trying this with the test for bug 880382, setting the transition-duration to 1ms, I can reliably get the runtime down from 17s to 14s. If I just nuke all the start/endCustomizing calls, I get it down to 7s. It's not just the animation that's slow here, especially not on debug builds where 150ms is very little in terms of wallclock time. So, all in all, not sure how much changing this will give us here.
Assignee | ||
Comment 6•11 years ago
|
||
Of course, maybe my patch sucks and I'm missing something obvious. This is what I tried.
Comment 7•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #6) > Created attachment 806236 [details] [diff] [review] > use a pref to fast-forward animation for tests > > Of course, maybe my patch sucks and I'm missing something obvious. This is > what I tried. What happens at 0ms? Note that the wrapping and unwrapping of widgets takes some time...
Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Mike Conley (:mconley) from comment #7) > (In reply to :Gijs Kruitbosch from comment #6) > > Created attachment 806236 [details] [diff] [review] > > use a pref to fast-forward animation for tests > > > > Of course, maybe my patch sucks and I'm missing something obvious. This is > > what I tried. > > What happens at 0ms? Note that the wrapping and unwrapping of widgets takes > some time... At 0ms the events don't fire and we don't actually go into customize mode properly (whee). :-(
Reporter | ||
Comment 9•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #5) > This is what I thought. But trying this with the test for bug 880382, > setting the transition-duration to 1ms, I can reliably get the runtime down > from 17s to 14s. Runtime of our tests went down by 30% for me. Were only going to be adding more and more tests, so that seems like a win - even if it's not at big as I'd hoped. And this is useful beyond just tests.
Reporter | ||
Comment 10•11 years ago
|
||
Does setting transition-property:none still result in the events being fired?
Assignee | ||
Comment 11•11 years ago
|
||
(In reply to Blair McBride [:Unfocused] from comment #10) > Does setting transition-property:none still result in the events being fired? No, then the events no longer fire. Also, is it just me or should these transitions be in the browser/base CSS files rather than in the browser/themes/shared bits? Otherwise themes can break customization mode if they 'forget' to specify a transition...
Assignee | ||
Updated•11 years ago
|
Attachment #806236 -
Flags: review?(bmcbride)
Reporter | ||
Comment 12•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #11) > Also, is it just me or should these > transitions be in the browser/base CSS files rather than in the > browser/themes/shared bits? Otherwise themes can break customization mode if > they 'forget' to specify a transition... Hm, yea.
Reporter | ||
Updated•11 years ago
|
Attachment #806236 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 13•11 years ago
|
||
https://hg.mozilla.org/projects/ux/rev/2cdad19e044f Filed bug 918782 for the shared theme stuff to figure out exactly what needs moving and so on.
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Whiteboard: [Australis:P3][Australis:M9] → [Australis:P3][Australis:M9][fixed-in-ux]
Assignee | ||
Comment 14•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2cdad19e044f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][Australis:M9][fixed-in-ux] → [Australis:P3][Australis:M9]
Target Milestone: --- → Firefox 28
You need to log in
before you can comment on or make changes to this bug.
Description
•