Bug 262029
| Summary: | Import attributes not re-checked for already loaded modules | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Nicolò Ribaudo <hello+webkit> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ashvayka, cdumez, mark.lam, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Nicolò Ribaudo
When re-loading an already loaded module specifier, the attributes should be re-validated.
await import("data:application/json,3", { with: { type: "json" } });
await import("data:application/json,3");
The second import should fail, but it succeedes.
Spec: https://html.spec.whatwg.org/#fetch-a-single-module-script (it uses the `type` as part of the modules map key)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/116331337>