mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1267106 - Reftest harness should check readyState and continue if the document state is 'complete'. r=jmaher
MozReview-Commit-ID: IiiVKXaHhuY --HG-- extra : rebase_source : c0c1c4c1bf0827ecc5ee931eb9fddaec85772ae8
This commit is contained in:
parent
349f20d644
commit
887ff1cdb0
@ -1154,5 +1154,10 @@ function SendUpdateCanvasForEvent(event, contentRootElement)
|
||||
#if REFTEST_B2G
|
||||
OnInitialLoad();
|
||||
#else
|
||||
addEventListener("load", OnInitialLoad, true);
|
||||
if (content.document.readyState == "complete") {
|
||||
// load event has already fired for content, get started
|
||||
OnInitialLoad();
|
||||
} else {
|
||||
addEventListener("load", OnInitialLoad, true);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user