Bug 1691034: Remove problematic "auto-reload" behavior from crashtest 370174-3.html. r=emilio

This "automatic reload" behavior was probably useful as a PoC for the original
bug, but it's no good in a crashtest, because:

(a) the reload probably doesn't even take effect most of the time, since it's
in a setTimeout that the test is under no obligation to wait for.

(b) if the reload *does* get a chance to take effect (e.g. on a slower
test-runner where it takes longer for the test harness to judge the test to be
complete), then the test may simply never terminate (or take a long time to
terminate), because each reload causes some more paints, which the test harness
is then forced to wait on; and another reload may arrive before the test
harness checks back to see if we're done painting.

So: let's just remove the auto-reload behavior from this crashtest.

Differential Revision: https://phabricator.services.mozilla.com/D112686
This commit is contained in:
Daniel Holbert 2021-04-20 14:20:43 +00:00
Родитель c78d99121a
Коммит 81ff45624a
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -19,8 +19,7 @@ function tripleclick(){
var wu = SpecialPowers.DOMWindowUtils;
wu.sendMouseEvent('mousedown', 500, 500, 0, 3, 0);
setTimeout(tripleclick,20);
setTimeout(function(){window.location.reload()}, 200);
}
setTimeout(tripleclick,200);
</SCRIPT>
</BODY></HTML>
</BODY></HTML>