zotero/test/tests/data/test-js.html
Dan Stillman 3a54a5ecb1 Fix allowJavaScript option in HiddenBrowser
allowJavaScript: false didn't disable scripts for a system-principal
document, such as a blob: URL created from chrome code, which runs
scripts regardless of the allowJavascript flag. Sandbox the document
instead, forcing a null principal and blocking script execution.
2026-07-24 13:11:50 -04:00

14 lines
246 B
HTML

<html>
<head>
<meta charset="utf-8"/>
</head>
<script>
window.onload = function () {
document.getElementById('target').textContent = 'This is a test.';
};
</script>
<body>
<p>Static content</p>
<p id="target"/>
</body>
</html>