Skip to content
Snippets Groups Projects
Commit 0c2afaa8 authored by Andrew Halberstadt's avatar Andrew Halberstadt
Browse files

Bug 778725 - Fix program error managing snapshot errors in b2g reftests, r=jgriffin

parent bc5de6f5
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment