function testLoadAbortChromeExtensionURLWrongPartition() {
  var localResource = chrome.runtime.getURL('guest.html');
  var webview = document.createElement('webview');
  webview.addEventListener('loadabort', function(e) {
    embedder.test.assertEq(-20, e.code);
    embedder.test.assertEq('ERR_BLOCKED_BY_CLIENT', e.reason);
    embedder.test.succeed();
  });
  webview.addEventListener('loadstop', function(e) {
    embedder.test.fail();
  });
  webview.setAttribute('src', localResource);
  document.body.appendChild(webview);
}
// accessible resource from a partition that is not privileged.
accessible resource from a partition that is not privileged.
accessible resource from a partition that is not privileged .
function testLoadAbortChromeExtensionURLWrongPartition() {
  var localResource = chrome.runtime.getURL('guest.html');
  var webview = document.createElement('webview');
  webview.addEventListener('loadabort', function(e) {
    embedder.test.assertEq(-20, e.code);
    embedder.test.assertEq('ERR_BLOCKED_BY_CLIENT', e.reason);
    embedder.test.succeed();
  });
  webview.addEventListener('loadstop', function(e) {
    embedder.test.fail();
  });
  webview.setAttribute('src', localResource);
  document.body.appendChild(webview);
}
function testLoadAbortChromeExtensionURLWrongPartition ( ) { var localResource = chrome . runtime . getURL ( 'guest.html' ) ; var webview = document . createElement ( 'webview' ) ; webview . addEventListener ( 'loadabort' , function ( e ) { embedder . test . assertEq ( - 20 , e . code ) ; embedder . test . assertEq ( 'ERR_BLOCKED_BY_CLIENT' , e . reason ) ; embedder . test . succeed ( ) ; } ) ; webview . addEventListener ( 'loadstop' , function ( e ) { embedder . test . fail ( ) ; } ) ; webview . setAttribute ( 'src' , localResource ) ; document . body . appendChild ( webview ) ; }
accessible resource from a partition that is not privileged.
accessible resource from a partition that is not privileged .