Backed out 1 changesets (bug 1478637) for browser_trackingUI_animation_2.js failures CLOSED TREE

Backed out changeset 85496f02e642 (bug 1478637)
This commit is contained in:
Ciure Andrei 2018-08-17 02:57:57 +03:00
Родитель 298f16043a
Коммит f1a03e9751
1 изменённых файлов: 4 добавлений и 11 удалений

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

@ -379,18 +379,11 @@ var ContentBlocking = {
},
cancelAnimation() {
if (!this.iconBox.hasAttribute("animate")) {
return;
let iconAnimation = this.animatedIcon.getAnimations()[0];
if (iconAnimation && iconAnimation.currentTime) {
iconAnimation.cancel();
}
window.promiseDocumentFlushed(() => {
return this.animatedIcon.getAnimations()[0];
}).then(iconAnimation => {
if (iconAnimation && iconAnimation.currentTime) {
iconAnimation.cancel();
}
this.iconBox.removeAttribute("animate");
});
this.iconBox.removeAttribute("animate");
},
onSecurityChange(state, webProgress, isSimulated) {