function testAssignSrcAfterCrash() {
  var webview = document.createElement('webview');
  webview.setAttribute('partition', arguments.callee.name);
  var terminated = false;
  webview.addEventListener('loadstop', function(evt) {
    if (!terminated) {
      webview.terminate();
      return;
    }
    // The guest has recovered after being terminated.
    embedder.test.succeed();
  });
  webview.addEventListener('exit', function(evt) {
    terminated = true;
    webview.setAttribute('src', 'data:text/html,test page');
  });
  webview.setAttribute('src', 'data:text/html,test page');
  document.body.appendChild(webview);
}
// prior to a crash spawns off a new guest process.
prior to a crash spawns off a new guest process.
prior to a crash spawns off a new guest process .
function testAssignSrcAfterCrash() {
  var webview = document.createElement('webview');
  webview.setAttribute('partition', arguments.callee.name);
  var terminated = false;
  webview.addEventListener('loadstop', function(evt) {
    if (!terminated) {
      webview.terminate();
      return;
    }
    embedder.test.succeed();
  });
  webview.addEventListener('exit', function(evt) {
    terminated = true;
    webview.setAttribute('src', 'data:text/html,test page');
  });
  webview.setAttribute('src', 'data:text/html,test page');
  document.body.appendChild(webview);
}
function testAssignSrcAfterCrash ( ) { var webview = document . createElement ( 'webview' ) ; webview . setAttribute ( 'partition' , arguments . callee . name ) ; var terminated = false ; webview . addEventListener ( 'loadstop' , function ( evt ) { if ( ! terminated ) { webview . terminate ( ) ; return ; } embedder . test . succeed ( ) ; } ) ; webview . addEventListener ( 'exit' , function ( evt ) { terminated = true ; webview . setAttribute ( 'src' , 'data:text/html,test page' ) ; } ) ; webview . setAttribute ( 'src' , 'data:text/html,test page' ) ; document . body . appendChild ( webview ) ; }
prior to a crash spawns off a new guest process.
prior to a crash spawns off a new guest process .
// The guest has recovered after being terminated.