mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 731556 - When closing a hidden tab, don't attempt to animate it. r=gavin
--HG-- extra : rebase_source : 88451a3909c6191a6be8e83fc6c1e01ae325a451
This commit is contained in:
parent
08f4b19f52
commit
e453d115e3
@ -1526,6 +1526,7 @@
|
||||
if (!animate /* the caller didn't opt in */ ||
|
||||
isLastTab ||
|
||||
aTab.pinned ||
|
||||
aTab.hidden ||
|
||||
this._removingTabs.length > 3 /* don't want lots of concurrent animations */ ||
|
||||
aTab.getAttribute("fadein") != "true" /* fade-in transition hasn't been triggered yet */ ||
|
||||
window.getComputedStyle(aTab).maxWidth == "0.1px" /* fade-in transition hasn't moved yet */ ||
|
||||
|
Loading…
Reference in New Issue
Block a user