mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision cd44958a002b1ad494168e0290554644de84526e
This commit is contained in:
parent
2ed23ce4c9
commit
4443426308
103 changed files with 1740 additions and 1138 deletions
|
@ -1,12 +1,12 @@
|
|||
<script src="/common/PrefixedPostMessage.js"></script>
|
||||
<script>
|
||||
var prefixedMessage = new PrefixedMessageResource();
|
||||
var max = 50, attempts = 0;
|
||||
var max = 150, attempts = 0;
|
||||
function sendCoordinates() {
|
||||
// Certain windowing systems position windows asynchronously.
|
||||
// As a result, the window may not be positioned yet when the
|
||||
// load event fires. To accommodate this, allow waiting up to
|
||||
// 5 seconds for positioning to take place.
|
||||
// 15 seconds for positioning to take place.
|
||||
if (!window.screenX && !window.screenY && ++attempts < max) {
|
||||
setTimeout(sendCoordinates, 100);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue