372be18657
1. Skip JavaScript validation for <script type="module"> tags - new Function() cannot validate ES module syntax (import/export) - Module scripts now execute without validation errors - Fixes issue where HTML artifacts with modules would fail to load 2. Improve __isExtensionContext detection logic - Changed from whitelist (chrome-extension://, moz-extension://) - To blacklist approach: negate http://, https://, file:// - More robust - handles all extension protocols (about:srcdoc, etc.) - Fixes "offline mode" errors when using browser_script artifacts Resolves artifacts not working in extension context after document.write()