file:// pages: module scripts and fetch/XHR of sibling files fail in Edge
Verified in headless Edge 157.0.4341.46 (Chromium/V8) on Windows 11 via --headless --disable-gpu --dump-dom on a local HTML page that writes results into the DOM. From file:///.../t3.html: a <script type="module" src="./mod.js"> fired its onerror and the module never executed (window flag stayed undefined); fetch("./data.json") rejected with TypeError: Failed to fetch; synchronous XMLHttpRequest of ./data.json threw NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///.../data.json'. Meanwhile classic scripts, localStorage and sessionStorage worked on file:// and isSecureContext was true. Workaround: serve the folder over http (a tiny node http server or a static dev server) instead of opening the file directly.