Closed
Bug 979031
Opened 11 years ago
Closed 11 years ago
Don't animate the tabs when adding about:customizing
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
VERIFIED
FIXED
Firefox 30
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [Australis:P2])
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
mconley
:
review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
As another hedge against bad customize mode transition performance, madhava and phlsa from UX have proposed that we special-case about:customizing in tabbrowser's addTab to skip the tab opening animation.
Comment 1•11 years ago
|
||
Can we introduce an attribute on the tab, e.g. something like 'animate' which is 'true' by default?
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mconley
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #1)
> Can we introduce an attribute on the tab, e.g. something like 'animate'
> which is 'true' by default?
Yeah, I think that's the route I'm going to take, inside the tabbrowser binding.
Assignee | ||
Comment 3•11 years ago
|
||
As luck would have it, we had this nice animate boolean being composed in "addTab" which I was able to piggyback onto.
Comment 4•11 years ago
|
||
Comment on attachment 8385001 [details] [diff] [review]
Patch v1
Instead of this hack, please make switchToTabHavingURI, openUILinkIn and tabbrowser's loadOneTab support optionally skipping the new tab animation and pass that through to addTab, which already supports the skipAnimation flag.
Attachment #8385001 -
Flags: review-
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Mike Conley (:mconley) from comment #3)
> Created attachment 8385001 [details] [diff] [review]
> Patch v1
>
> As luck would have it, we had this nice animate boolean being composed in
> "addTab" which I was able to piggyback onto.
I agree - that's a better approach - thanks Dao.
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8385001 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8385035 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8385036 [details] [diff] [review]
Patch v2.1
How about this?
Attachment #8385036 -
Flags: review?(dao)
Comment 9•11 years ago
|
||
Comment on attachment 8385036 [details] [diff] [review]
Patch v2.1
> referrerURI: aReferrerURI,
> charset: aCharset,
> postData: aPostData,
> inBackground: loadInBackground,
> allowThirdPartyFixup: aAllowThirdPartyFixup,
> relatedToCurrent: aRelatedToCurrent,
>- disableMCB: aDisableMCB});
>+ disableMCB: aDisableMCB,
>+ skipAnimation: aSkipAnimation});
nit: move this one line up such that you don't need to touch the other line
For clarity, since openUILinkIn isn't about tabs exclusively, I think the flag should be called something like skipTabOpeningAnimation (preferably briefer, but in the end clarity trumps brevity) there and then openUILinkIn should pass that as skipAnimation to loadOneTab.
Attachment #8385036 -
Flags: review?(dao)
Attachment #8385036 -
Flags: review-
Attachment #8385036 -
Flags: feedback+
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8385036 -
Attachment is obsolete: true
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8385327 [details] [diff] [review]
Patch v2.2
Thanks for the feedback, Dao! What do you think of this?
Attachment #8385327 -
Flags: review?(dao)
Comment 12•11 years ago
|
||
Comment on attachment 8385327 [details] [diff] [review]
Patch v2.2
> if (isBrowserWindow && isTabEmpty(gBrowser.selectedTab))
> gBrowser.selectedBrowser.loadURI(aURI.spec);
> else
>- openUILinkIn(aURI.spec, "tab");
>+ openUILinkIn(aURI.spec, "tab", aOpenParams);
We should honor aOpenParams in both cases. Please replace the loadURI call with openUILinkIn(aURI.spec, "current", aOpenParams).
> browser.loadOneTab(url, {
> referrerURI: aReferrerURI,
> charset: aCharset,
> postData: aPostData,
> inBackground: loadInBackground,
> allowThirdPartyFixup: aAllowThirdPartyFixup,
> relatedToCurrent: aRelatedToCurrent,
>- disableMCB: aDisableMCB});
>+ disableMCB: aDisableMCB,
>+ skipAnimation: aSkipTabAnimation});
Same comment that I made before about moving this up to leave the other line alone.
Attachment #8385327 -
Flags: review?(dao) → review+
Assignee | ||
Comment 13•11 years ago
|
||
Done! Thanks Dao!
Attachment #8385327 -
Attachment is obsolete: true
Attachment #8385480 -
Flags: review+
Assignee | ||
Comment 14•11 years ago
|
||
Whiteboard: [Australis:P2] → [Australis:P2][fixed-in-fx-team]
Comment 15•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P2][fixed-in-fx-team] → [Australis:P2]
Target Milestone: --- → Firefox 30
Assignee | ||
Comment 16•11 years ago
|
||
Comment on attachment 8385480 [details] [diff] [review]
Patch v2.3 (r+'d by dao)
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Australis.
User impact if declined:
A slightly jankier customize mode transition.
Testing completed (on m-c, etc.):
Lots of local testing and a few nights on m-c.
Risk to taking this patch (and alternatives if risky):
The only risk is that is seems this patch causes a ~2%-~6% CART regression on OS X (see bug 980032). From my talks with UX, they're not too concerned about it, and the decrease in "motion" in the tab strip is worth the hit. Investigation will take place in bug 980032 to see what can be done about the regression.
String or IDL/UUID changes made by this patch:
None.
Attachment #8385480 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8385480 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 17•11 years ago
|
||
Comment on attachment 8385480 [details] [diff] [review]
Patch v2.3 (r+'d by dao)
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
Australis.
User impact if declined:
A slightly jankier customize mode transition.
Testing completed (on m-c, etc.):
Lots of local testing and a few nights on m-c.
Risk to taking this patch (and alternatives if risky):
Very low. This will probably result in a CART regression on OS X, but this was investigated and WONTFIXED as bug 980032.
String or IDL/UUID changes made by this patch:
None.
Attachment #8385480 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8385480 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 18•11 years ago
|
||
status-firefox29:
--- → fixed
Updated•11 years ago
|
status-firefox30:
--- → fixed
Updated•11 years ago
|
QA Contact: cornel.ionce
Comment 19•11 years ago
|
||
Verified fixed on Windows 7 64bit, Ubuntu 12.04 and Mac OS X 10.9 using latest Aurora (build ID:20140410004003) and on Firefox 29 beta 6 (build ID: 20140407135746).
You need to log in
before you can comment on or make changes to this bug.
Description
•