Bug 261377 - Propagate active script for import() through setTimeout and other string evaluators
Summary: Propagate active script for import() through setTimeout and other string eval...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2023-09-09 15:01 PDT by Domenic Denicola
Modified: 2023-09-11 10:16 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Domenic Denicola 2023-09-09 15:01:51 PDT
See various string-compilation-* tests at https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/module/dynamic-import?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&q=%2Fhtml%2Fsemantics%2Fscripting-1%2Fthe-script-element%2Fmodule%2Fdynamic-import%2F , plus the new one I'm adding at https://github.com/web-platform-tests/wpt/pull/41895 .

The basic goal is that things like

eval(`import("./some-relative-url.mjs")`);

or

setTimeout(`import("./some-relative-url.mjs")`);

should behave the same as

import("./some-relative-url.mjs");
Comment 1 Radar WebKit Bug Importer 2023-09-10 18:24:09 PDT
<rdar://problem/115264021>