Bug 960351 - browser_bug726427_csstransform_tooltip.js times out, r=pbrosset

--HG--
extra : rebase_source : e05f39f7ef4d73823bb5445b1cc398f81e560253
This commit is contained in:
Olli Pettay 2014-01-16 15:38:10 +02:00
Родитель f593bb23c9
Коммит fd57885856
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -147,7 +147,13 @@ function assertTooltipShownOn(tooltip, element, cb) {
tooltip.panel.removeEventListener("popupshown", shown, true);
cb();
}, true);
tooltip._showOnHover(element);
// Run _showOnHover at stable state after the next refresh driver tick.
// This way nothing during reflow or painting should be able to
// cancel showing the popup.
element.ownerDocument.defaultView.requestAnimationFrame(() => {
executeSoon(() => { tooltip._showOnHover(element); });
});
}
function assertTooltipNotShownOn(tooltip, element, cb) {