mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 99d71c24a5df (bug 681138) for making the intermittent-failure worse
This commit is contained in:
parent
6a1a76f8ee
commit
89807598cf
@ -47,12 +47,9 @@ function doSnapShot(iframe) {
|
||||
callbackTestCanvas(iframe);
|
||||
};
|
||||
|
||||
function remotePageLoaded(callback) {
|
||||
function remotePageLoaded() {
|
||||
var iframe = this;
|
||||
setTimeout(function(){
|
||||
doSnapShot(iframe);
|
||||
callback();
|
||||
}, 0);
|
||||
setTimeout(function(){doSnapShot(iframe);}, 0)
|
||||
};
|
||||
|
||||
const MAX_ITERATIONS = 1000;
|
||||
@ -74,11 +71,8 @@ function createIframe(url,next) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
iframe.remotePageLoaded(function() {
|
||||
if (next) {
|
||||
setTimeout(function(){createIframe(next,null);}, 0)
|
||||
}
|
||||
});
|
||||
iframe.remotePageLoaded();
|
||||
if (next) setTimeout(function(){createIframe(next,null);}, 0)
|
||||
}
|
||||
iframe.addEventListener("load", iframeLoadCompleted, false);
|
||||
window.document.body.appendChild(iframe);
|
||||
|
Loading…
Reference in New Issue
Block a user