fix: ensure the sandboxed preloads globals do not leak (#17712)
This commit is contained in:
parent
b3d8db6996
commit
be6fb7cb12
6 changed files with 157 additions and 6 deletions
17
spec/fixtures/api/no-leak.html
vendored
Normal file
17
spec/fixtures/api/no-leak.html
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.postMessage({
|
||||
require: typeof require,
|
||||
exports: typeof exports,
|
||||
windowRequire: typeof window.require,
|
||||
windowExports: typeof window.exports,
|
||||
windowPreload: typeof window.sandboxed_preload,
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue