fix: ensure the sandboxed preloads globals do not leak (#17712)

This commit is contained in:
Samuel Attard 2019-04-16 13:57:02 -04:00 committed by Shelley Vohr
parent b3d8db6996
commit be6fb7cb12
6 changed files with 157 additions and 6 deletions

17
spec/fixtures/api/no-leak.html vendored Normal file
View 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>