electron/spec/fixtures/api/isolated.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
774 B
HTML
Raw Normal View History

2016-12-13 19:47:54 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Isolated World</title>
<script>
window.hello = 'world'
2016-12-15 23:23:45 +00:00
Array.prototype.push = 3
Function.prototype.apply = true
const opened = window.open()
opened.close()
2016-12-13 19:47:54 +00:00
window.postMessage({
preloadProperty: typeof window.foo,
pageProperty: typeof window.hello,
typeofRequire: typeof require,
2016-12-15 23:23:45 +00:00
typeofProcess: typeof process,
typeofArrayPush: typeof Array.prototype.push,
typeofFunctionApply: typeof Function.prototype.apply,
typeofPreloadExecuteJavaScriptProperty: typeof window.preloadExecuteJavaScriptProperty,
typeofOpenedWindow: typeof opened
2016-12-13 19:47:54 +00:00
}, '*')
</script>
</head>
<body>
</body>
</html>