B2G/gecko/browser/components/sessionstore/test/browser_526613.js
// let the first window be focused (see above)
let the first window be focused
let the first window be focused
function pollMostRecentWindow() {
        if (Services.wm.getMostRecentWindow("navigator:browser") == window) {
          ss.setBrowserState(oldState);
        } else {
          info("waiting for the current window to become active");
          setTimeout(pollMostRecentWindow, 0);
          window.focus(); 
        }
      }
function pollMostRecentWindow ( ) { if ( Services . wm . getMostRecentWindow ( "navigator:browser" ) == window ) { ss . setBrowserState ( oldState ) ; } else { info ( "waiting for the current window to become active" ) ; setTimeout ( pollMostRecentWindow , 0 ) ; window . focus ( ) ; } }
let the first window be focused (see above)
let the first window be focused ( see above )
//XXX Why is this needed?