diff --git a/README.md b/README.md index 32827cf..2944e0d 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,16 @@ block local-file web apps. - **Form submissions** — GET forms append query strings to the target page; POST forms navigate (body silently dropped, no server) - **`window.open()`** — opens local pages in new tabs +- **ES Modules** — dynamic `import()` works with local module files +- **Web Workers and Shared Workers** — `new Worker()` and + `new SharedWorker()` with local scripts enable background computation + threads (including cross-tab shared workers) +- **WebAssembly** — `WebAssembly.instantiate()` works for compiled code +- **Cross-origin fetch to remote HTTPS** — `fetch('https://example.com')` + from a `file://` page works with no CORS blocking (confirms the + "deprecated web security" design goal) +- **Cross-origin remote resources** — remote ` + + diff --git a/tests/local-site/assets/advanced-runner.js b/tests/local-site/assets/advanced-runner.js new file mode 100644 index 0000000..b852e95 --- /dev/null +++ b/tests/local-site/assets/advanced-runner.js @@ -0,0 +1,247 @@ +// Advanced JS test runner — writes results to #results as tests complete. +(function () { + var log = []; + function flush() { + var el = document.getElementById('results'); + if (el) el.textContent = log.join('\n'); + } + function add(msg) { + log.push(msg); + flush(); + } + + add('=== Advanced JS Test Start ==='); + add('URL: ' + location.href); + add(''); + + // ── 1. ES Modules ────────────────────────────────────────────── + add('--- ES Modules ---'); + add('Testing