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:
Jim Mathies 2016-10-11 09:53:43 -05:00
parent 349f20d644
commit 887ff1cdb0

View File

@ -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