fix: ensure no node globals passively leak when nodeIntegration is disabled (#21342)
This commit is contained in:
parent
66035a2448
commit
ee58d60612
3 changed files with 46 additions and 0 deletions
13
spec/fixtures/api/globals.html
vendored
Normal file
13
spec/fixtures/api/globals.html
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.postMessage({
|
||||
globals: Object.keys(Object.getOwnPropertyDescriptors(window))
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue