[Webkit-unassigned] [Bug 262029] New: Import attributes not re-checked for already loaded mdules

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 24 23:56:41 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=262029

            Bug ID: 262029
           Summary: Import attributes not re-checked for already loaded
                    mdules
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nicolo.ribaudo at gmail.com

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230925/cceb4c12/attachment-0001.htm>


More information about the webkit-unassigned mailing list