function testDisplayNone() {
  var webview = document.createElement('webview');
  webview.onloadstop = function() {
    document.body.style.display = 'none';
    // Give it some time (100ms) before making document.body visible again.
    window.setTimeout(function() {
      document.body.style.display = '';
      webview.onloadstop = function() {
        chrome.send('testResult', [true]);
      };
      webview.reload();
    }, 100);
  };
  webview.onloadabort = function() {
    chrome.send('testResult', [false]);
  };
  webview.src = 'about:blank';
  document.body.appendChild(webview);
}
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function testDisplayNone() {
  var webview = document.createElement('webview');
  webview.onloadstop = function() {
    document.body.style.display = 'none';
    window.setTimeout(function() {
      document.body.style.display = '';
      webview.onloadstop = function() {
        chrome.send('testResult', [true]);
      };
      webview.reload();
    }, 100);
  };
  webview.onloadabort = function() {
    chrome.send('testResult', [false]);
  };
  webview.src = 'about:blank';
  document.body.appendChild(webview);
}
function testDisplayNone ( ) { var webview = document . createElement ( 'webview' ) ; webview . onloadstop = function ( ) { document . body . style . display = 'none' ; window . setTimeout ( function ( ) { document . body . style . display = '' ; webview . onloadstop = function ( ) { chrome . send ( 'testResult' , [ true ] ) ; } ; webview . reload ( ) ; } , 100 ) ; } ; webview . onloadabort = function ( ) { chrome . send ( 'testResult' , [ false ] ) ; } ; webview . src = 'about:blank' ; document . body . appendChild ( webview ) ; }
found in the LICENSE file.
found in the LICENSE file .
// Give it some time (100ms) before making document.body visible again.