Add failing spec for nodeIntegration inheritance

This commit is contained in:
Kevin Sawicki 2016-03-23 16:53:20 -07:00
parent afdad927b7
commit 777704e659
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
var windowUrl = decodeURIComponent(window.location.search.substring(3))
var opened = window.open('file://' + windowUrl, '', 'nodeIntegration=yes,show=no')
window.addEventListener('message', function (event) {
try {
opened.close();
} finally {
window.opener.postMessage(event.data, '*');
}
});
</script>
</body>
</html>