mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Backed out changeset 5c6cdeb8648d (bug 1355588) causing talos tart timeouts.
--HG-- extra : rebase_source : 238d706bb366772d4870493938deac41a271db6b
This commit is contained in:
parent
b282b7ca54
commit
a2aab24802
@ -176,24 +176,6 @@ panelview[mainview] > .panel-header {
|
|||||||
min-width: calc(var(--tab-min-width) + 10px);
|
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]) {
|
.tabbrowser-tab:not([pinned]):not([fadein]) {
|
||||||
max-width: 0.1px;
|
max-width: 0.1px;
|
||||||
min-width: 0.1px;
|
min-width: 0.1px;
|
||||||
@ -221,8 +203,6 @@ panelview[mainview] > .panel-header {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* end @supports not -moz-bool-pref("browser.tabs.newanimations") */
|
|
||||||
|
|
||||||
%ifdef NIGHTLY_BUILD
|
%ifdef NIGHTLY_BUILD
|
||||||
@supports -moz-bool-pref("browser.tabs.hideThrobber") {
|
@supports -moz-bool-pref("browser.tabs.hideThrobber") {
|
||||||
.tab-throbber {
|
.tab-throbber {
|
||||||
|
@ -1234,19 +1234,11 @@
|
|||||||
]]></handler>
|
]]></handler>
|
||||||
|
|
||||||
<handler event="transitionend"><![CDATA[
|
<handler event="transitionend"><![CDATA[
|
||||||
if (event.propertyName != "max-width" &&
|
if (event.propertyName != "max-width") {
|
||||||
event.propertyName != "transform") {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gBrowser.tabAnimationsInProgress == 0) {
|
var tab = event.target;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let tab = event.originalTarget;
|
|
||||||
if (tab.nodeName != "tab") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tab.getAttribute("fadein") == "true") {
|
if (tab.getAttribute("fadein") == "true") {
|
||||||
if (tab._fullyOpen) {
|
if (tab._fullyOpen) {
|
||||||
@ -1257,9 +1249,6 @@
|
|||||||
} else if (tab.closing) {
|
} else if (tab.closing) {
|
||||||
gBrowser._endRemoveTab(tab);
|
gBrowser._endRemoveTab(tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
let evt = new CustomEvent("TabAnimationEnd", { bubbles: true });
|
|
||||||
tab.dispatchEvent(evt);
|
|
||||||
]]></handler>
|
]]></handler>
|
||||||
|
|
||||||
<handler event="dblclick"><![CDATA[
|
<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("tab didn't close immediately, so the tab opening animation must have started moving");
|
||||||
info("waiting for the tab to close asynchronously");
|
info("waiting for the tab to close asynchronously");
|
||||||
tab.addEventListener("TabAnimationEnd", function listener() {
|
tab.addEventListener("transitionend", function listener(event) {
|
||||||
executeSoon(function() {
|
if (event.propertyName == "max-width") {
|
||||||
ok(!tab.parentNode, "tab removed asynchronously");
|
tab.removeEventListener("transitionend", listener);
|
||||||
finish();
|
executeSoon(function() {
|
||||||
});
|
ok(!tab.parentNode, "tab removed asynchronously");
|
||||||
}, {once: true});
|
finish();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,8 @@ add_task(async function() {
|
|||||||
await withPerfObserver(async function() {
|
await withPerfObserver(async function() {
|
||||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||||
gBrowser.removeTab(tab, { animate: true });
|
gBrowser.removeTab(tab, { animate: true });
|
||||||
await BrowserTestUtils.waitForEvent(tab, "TabAnimationEnd");
|
await BrowserTestUtils.waitForEvent(tab, "transitionend",
|
||||||
|
false, e => e.propertyName === "max-width");
|
||||||
await switchDone;
|
await switchDone;
|
||||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||||
frames: {
|
frames: {
|
||||||
|
@ -45,7 +45,8 @@ add_task(async function() {
|
|||||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||||
let tab = gBrowser.tabs[gBrowser.tabs.length - 1];
|
let tab = gBrowser.tabs[gBrowser.tabs.length - 1];
|
||||||
gBrowser.removeTab(tab, { animate: true, byMouse: true });
|
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;
|
await switchDone;
|
||||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||||
frames: {
|
frames: {
|
||||||
|
@ -42,7 +42,8 @@ add_task(async function() {
|
|||||||
await withPerfObserver(async function() {
|
await withPerfObserver(async function() {
|
||||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||||
BrowserOpenTab();
|
BrowserOpenTab();
|
||||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "TabAnimationEnd");
|
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
|
||||||
|
false, e => e.propertyName === "max-width");
|
||||||
await switchDone;
|
await switchDone;
|
||||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||||
frames: {
|
frames: {
|
||||||
|
@ -40,7 +40,8 @@ add_task(async function() {
|
|||||||
await withPerfObserver(async function() {
|
await withPerfObserver(async function() {
|
||||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||||
BrowserOpenTab();
|
BrowserOpenTab();
|
||||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "TabAnimationEnd");
|
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
|
||||||
|
false, e => e.propertyName === "max-width");
|
||||||
await switchDone;
|
await switchDone;
|
||||||
}, {expectedReflows: EXPECTED_REFLOWS,
|
}, {expectedReflows: EXPECTED_REFLOWS,
|
||||||
frames: {
|
frames: {
|
||||||
|
@ -75,7 +75,8 @@ add_task(async function() {
|
|||||||
await withPerfObserver(async function() {
|
await withPerfObserver(async function() {
|
||||||
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
|
||||||
BrowserOpenTab();
|
BrowserOpenTab();
|
||||||
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "TabAnimationEnd");
|
await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
|
||||||
|
false, e => e.propertyName === "max-width");
|
||||||
await switchDone;
|
await switchDone;
|
||||||
await BrowserTestUtils.waitForCondition(() => {
|
await BrowserTestUtils.waitForCondition(() => {
|
||||||
return gBrowser.tabContainer.arrowScrollbox.hasAttribute("scrolledtoend");
|
return gBrowser.tabContainer.arrowScrollbox.hasAttribute("scrolledtoend");
|
||||||
|
@ -42,15 +42,15 @@ Tart.prototype = {
|
|||||||
|
|
||||||
tabDetector: {
|
tabDetector: {
|
||||||
arm(handler, win) {
|
arm(handler, win) {
|
||||||
win.gBrowser.tabContainer.addEventListener("TabAnimationEnd", handler);
|
win.gBrowser.tabContainer.addEventListener("transitionend", handler);
|
||||||
},
|
},
|
||||||
|
|
||||||
measureNow(e) {
|
measureNow(e) {
|
||||||
return (e.type == "TabAnimationEnd");
|
return (e.type == "transitionend" && e.propertyName == "max-width");
|
||||||
},
|
},
|
||||||
|
|
||||||
cleanup(handler, win) {
|
cleanup(handler, win) {
|
||||||
win.gBrowser.tabContainer.removeEventListener("TabAnimationEnd", handler);
|
win.gBrowser.tabContainer.removeEventListener("transitionend", handler);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user