Add test for nativeWindowOpen + contextIsolation
This commit is contained in:
parent
edeac2f59e
commit
0034b306f5
3 changed files with 37 additions and 0 deletions
10
spec/fixtures/api/native-window-open-isolated.html
vendored
Normal file
10
spec/fixtures/api/native-window-open-isolated.html
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
const popup = window.open();
|
||||
popup.document.write('<h1>Hello</h1>');
|
||||
const content = popup.document.querySelector('h1').innerText;
|
||||
window.postMessage(content, '*');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue