mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 18:31:29 +00:00
Bug 778725 - Fix program error managing snapshot errors in b2g reftests, r=jgriffin
This commit is contained in:
parent
bc5de6f5f3
commit
0c2afaa887
@ -466,18 +466,12 @@ function WaitForTestEnd(contentRootElement, inPrintMode) {
|
||||
MakeProgress();
|
||||
}
|
||||
|
||||
#if REFTEST_B2G
|
||||
function OnDocumentLoad()
|
||||
{
|
||||
var currentDoc = content.document;
|
||||
#else
|
||||
function OnDocumentLoad(event)
|
||||
{
|
||||
var currentDoc = content.document;
|
||||
if (event.target != currentDoc)
|
||||
// Ignore load events for subframes.
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (gClearingForAssertionCheck &&
|
||||
currentDoc.location.href == BLANK_URL_FOR_CLEARING) {
|
||||
@ -818,7 +812,6 @@ function SendUpdateCanvasForEvent(event)
|
||||
}
|
||||
#if REFTEST_B2G
|
||||
OnInitialLoad();
|
||||
OnDocumentLoad();
|
||||
#else
|
||||
addEventListener("load", OnInitialLoad, true);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user