B2G/gecko/testing/marionette/marionette-listener.js
/**
 * Called when listener is first started up. 
 * The listener sends its unique window ID and its current URI to the actor.
 * If the actor returns an ID, we start the listeners. Otherwise, nothing happens.
 */
Called when listener is first started up.
The listener sends its unique window ID and its current URI to the actor.
If the actor returns an ID, we start the listeners. Otherwise, nothing happens.
Called when listener is first started up . The listener sends its unique window ID and its current URI to the actor . If the actor returns an ID we start the listeners . Otherwise nothing happens .
function registerSelf() {
  let msg = {value: winUtil.outerWindowID, href: content.location.href};
  let register = sendSyncMessage("Marionette:register", msg);
  if (register[0]) {
    listenerId = register[0].id;
    importedScripts = FileUtils.File(register[0].importedScripts);
    startListeners();
  }
}
function registerSelf ( ) { let msg = { value : winUtil . outerWindowID , href : content . location . href } ; let register = sendSyncMessage ( "Marionette:register" , msg ) ; if ( register [ 0 ] ) { listenerId = register [ 0 ] . id ; importedScripts = FileUtils . File ( register [ 0 ] . importedScripts ) ; startListeners ( ) ; } }
Called when listener is first started up.
Called when listener is first started up .