browser: hide webcontents when window not shown
This commit is contained in:
parent
1520ebfe1f
commit
5ca5c4fb92
3 changed files with 30 additions and 1 deletions
7
spec/fixtures/pages/document-hidden.html
vendored
Normal file
7
spec/fixtures/pages/document-hidden.html
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
require('ipc').send('hidden', document.hidden);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue