B2G/gecko/toolkit/mozapps/update/test/chrome/utils.js
/**
 * Default callback for the wizard's documentElement pageshow listener. This
 * will return early for event's where the originalTarget's nodeName is not
 * wizardpage.
 */
Default callback for the wizard's documentElement pageshow listener. This
will return early for event's where the originalTarget's nodeName is not
wizardpage.
Default callback for the wizard ' s documentElement pageshow listener . This will return early for event ' s where the originalTarget ' s nodeName is not wizardpage .
function onPageShowDefault(aEvent) {
  if (!gTimeoutTimer) {
    debugDump("gTimeoutTimer is null... returning early");
    return;
  }
  if (aEvent.originalTarget.nodeName != "wizardpage") {
    debugDump("only handles events with an originalTarget nodeName of " +
              "|wizardpage|. aEvent.originalTarget.nodeName = " +
              aEvent.originalTarget.nodeName + "... returning early");
    return;
  }
  gTestCounter++;
  gCallback(aEvent);
}
function onPageShowDefault ( aEvent ) { if ( ! gTimeoutTimer ) { debugDump ( "gTimeoutTimer is null... returning early" ) ; return ; } if ( aEvent . originalTarget . nodeName != "wizardpage" ) { debugDump ( "only handles events with an originalTarget nodeName of " + "|wizardpage|. aEvent.originalTarget.nodeName = " + aEvent . originalTarget . nodeName + "... returning early" ) ; return ; } gTestCounter ++ ; gCallback ( aEvent ) ; }
Default callback for the wizard's documentElement pageshow listener.
Default callback for the wizard ' s documentElement pageshow listener .
// Return early if the event's original target isn't for a wizardpage element. // This check is necessary due to the remotecontent element firing pageshow.