зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 5c6cdeb8648d (bug 1355588) causing talos tart timeouts.
--HG-- extra : rebase_source : 238d706bb366772d4870493938deac41a271db6b
This commit is contained in:
Родитель
b282b7ca54
Коммит
a2aab24802
|
@ -176,24 +176,6 @@ panelview[mainview] > .panel-header {
|
|||
min-width: calc(var(--tab-min-width) + 10px);
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("browser.tabs.newanimations") {
|
||||
|
||||
.tabbrowser-tab:not([pinned]):not([tabdrop-samewindow]) {
|
||||
transition: transform 100ms ease-in-out;
|
||||
}
|
||||
|
||||
#tabbrowser-tabs[movingtab] > .tabbrowser-tab[selected] {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.tabbrowser-tab:not([pinned]):not([fadein]) {
|
||||
transform: translateY(var(--tab-min-height));
|
||||
}
|
||||
|
||||
} /* end @supports -moz-bool-pref("browser.tabs.newanimations") */
|
||||
|
||||
@supports not -moz-bool-pref("browser.tabs.newanimations") {
|
||||
|
||||
.tabbrowser-tab:not([pinned]):not([fadein]) {
|
||||
max-width: 0.1px;
|
||||
min-width: 0.1px;
|
||||
|
@ -221,8 +203,6 @@ panelview[mainview] > .panel-header {
|
|||
display: none;
|
||||
}
|
||||
|
||||
} /* end @supports not -moz-bool-pref("browser.tabs.newanimations") */
|
||||
|
||||
%ifdef NIGHTLY_BUILD
|
||||
@supports -moz-bool-pref("browser.tabs.hideThrobber") {
|
||||
.tab-throbber {
|
||||
|
|
|
@ -1234,19 +1234,11 @@
|
|||
]]></handler>
|
||||
|
||||
<handler event="transitionend"><![CDATA[
|
||||
if (event.propertyName != "max-width" &&
|
||||
event.propertyName != "transform") {
|
||||
if (event.propertyName != "max-width") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (gBrowser.tabAnimationsInProgress == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
let tab = event.originalTarget;
|
||||
if (tab.nodeName != "tab") {
|
||||
return;
|
||||
}
|
||||
var tab = event.target;
|
||||
|
||||
if (tab.getAttribute("fadein") == "true") {
|
||||
if (tab._fullyOpen) {
|
||||
|
@ -1257,9 +1249,6 @@
|
|||
} else if (tab.closing) {
|
||||
gBrowser._endRemoveTab(tab);
|
||||
}
|
||||
|
||||
let evt = new CustomEvent("TabAnimationEnd", { bubbles: true });
|
||||
tab.dispatchEvent(evt);
|
||||
]]></handler>
|
||||
|
||||
<handler event="dblclick"><![CDATA[
|
||||
|
|
|
@ -23,10 +23,13 @@ function checkAnimationState() {
|
|||
|
||||
info("tab didn't close immediately, so the tab opening animation must have started moving");
|
||||
info("waiting for the tab to close asynchronously");
|
||||
tab.addEventListener("TabAnimationEnd", function listener() {
|
||||
tab.addEventListener("transitionend", function listener(event) {
|
||||
if (event.propertyName == "max-width") {
|
||||
tab.removeEventListener("transitionend", listener);
|
||||
executeSoon(function() {
|
||||
ok(!tab.parentNode, "tab removed asynchronously");
|
||||
finish();
|
||||
});
|
||||
}, {once: true});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -36,7 +36,8 @@ add_task(async function() {
|
|||
await withPerfObserver(async function() {
|
||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||
gBrowser.removeTab(tab, { animate: true });
|
||||
await BrowserTestUtils.waitForEvent(tab, "TabAnimationEnd");
|
||||
await BrowserTestUtils.waitForEvent(tab, "transitionend",
|
||||
false, e => e.propertyName === "max-width");
|
||||
await switchDone;
|
||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||
frames: {
|
||||
|
|
|
@ -45,7 +45,8 @@ add_task(async function() {
|
|||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||
let tab = gBrowser.tabs[gBrowser.tabs.length - 1];
|
||||
gBrowser.removeTab(tab, { animate: true, byMouse: true });
|
||||
await BrowserTestUtils.waitForEvent(tab, "TabAnimationEnd");
|
||||
await BrowserTestUtils.waitForEvent(tab, "transitionend",
|
||||
false, e => e.propertyName === "max-width");
|
||||
await switchDone;
|
||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||
frames: {
|
||||
|
|
|
@ -42,7 +42,8 @@ add_task(async function() {
|
|||
await withPerfObserver(async function() {
|
||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||
BrowserOpenTab();
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "TabAnimationEnd");
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
|
||||
false, e => e.propertyName === "max-width");
|
||||
await switchDone;
|
||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||
frames: {
|
||||
|
|
|
@ -40,7 +40,8 @@ add_task(async function() {
|
|||
await withPerfObserver(async function() {
|
||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||
BrowserOpenTab();
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "TabAnimationEnd");
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
|
||||
false, e => e.propertyName === "max-width");
|
||||
await switchDone;
|
||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||
frames: {
|
||||
|
|
|
@ -75,7 +75,8 @@ add_task(async function() {
|
|||
await withPerfObserver(async function() {
|
||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||
BrowserOpenTab();
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "TabAnimationEnd");
|
||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
|
||||
false, e => e.propertyName === "max-width");
|
||||
await switchDone;
|
||||
await BrowserTestUtils.waitForCondition(() => {
|
||||
return gBrowser.tabContainer.arrowScrollbox.hasAttribute("scrolledtoend");
|
||||
|
|
|
@ -42,15 +42,15 @@ Tart.prototype = {
|
|||
|
||||
tabDetector: {
|
||||
arm(handler, win) {
|
||||
win.gBrowser.tabContainer.addEventListener("TabAnimationEnd", handler);
|
||||
win.gBrowser.tabContainer.addEventListener("transitionend", handler);
|
||||
},
|
||||
|
||||
measureNow(e) {
|
||||
return (e.type == "TabAnimationEnd");
|
||||
return (e.type == "transitionend" && e.propertyName == "max-width");
|
||||
},
|
||||
|
||||
cleanup(handler, win) {
|
||||
win.gBrowser.tabContainer.removeEventListener("TabAnimationEnd", handler);
|
||||
win.gBrowser.tabContainer.removeEventListener("transitionend", handler);
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче