fix: ensure no node globals passively leak when nodeIntegration is disabled (#21342)

This commit is contained in:
Samuel Attard 2019-12-02 10:09:47 -08:00 committed by GitHub
parent 66035a2448
commit ee58d60612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

13
spec/fixtures/api/globals.html vendored Normal file
View 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>