зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1371450 - Crash test. r=emilio
The crash test causes a panic in Servo_ResolveStyle on debug build without this patch series. The reason why we send mouse move event twice is that one for E10S and the other one is for non-E10S. It seems to be caused by being requestIdleCallback processed on different timing. MozReview-Commit-ID: 7cBmwhE9HDk --HG-- extra : rebase_source : a74aa277e2b161b1e4f8da27293cf89ddc3821e1
This commit is contained in:
Родитель
439420deeb
Коммит
a4f183c102
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<title></title>
|
||||
<style>
|
||||
@keyframes anim {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
#animation {
|
||||
animation: anim 3s infinite;
|
||||
}
|
||||
.red {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<div><span id="target">text</span></div>
|
||||
<div id="animation">animation</div>
|
||||
<script>
|
||||
window.addEventListener('load', () => {
|
||||
var target = document.getElementById('target');
|
||||
target.classList.add('red');
|
||||
requestIdleCallback(() => {
|
||||
target.classList.remove('red');
|
||||
SpecialPowers.getDOMWindowUtils(window)
|
||||
.sendMouseEvent("mousemove", 100, 100, 1,
|
||||
0, 1, 0);
|
||||
requestIdleCallback(() => {
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
});
|
||||
});
|
||||
SpecialPowers.getDOMWindowUtils(window)
|
||||
.sendMouseEvent("mousemove", 100, 100, 1,
|
||||
0, 1, 0);
|
||||
});
|
||||
</script>
|
|
@ -171,6 +171,7 @@ pref(dom.animations-api.core.enabled,true) load 1340344.html
|
|||
load 1342316-1.html
|
||||
load 1356601-1.html
|
||||
load 1370793-1.xhtml
|
||||
load 1371450-1.html
|
||||
load 1374175-1.html
|
||||
load content-only-on-link-before.html
|
||||
load content-only-on-visited-before.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче