[Webkit-unassigned] [Bug 194337] New: nomodule scripts are loaded in some cases (with empty cache or in new tab)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 6 02:36:16 PST 2019


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

            Bug ID: 194337
           Summary: nomodule scripts are loaded in some cases (with empty
                    cache or in new tab)
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jakub.g.opensource at gmail.com

Created attachment 361285

  --> https://bugs.webkit.org/attachment.cgi?id=361285&action=review

min repro HTML

Repro:

0. Open Safari (any version, including 12 or TP74; preferably 11+ to have `performance.getEntries()`)
1. Empty the browser cache (alt-cmd-e), or open a new tab (cmd-t)
2. Load https://jg-testpage.github.io/es-modules/module-nomodule/safari.html (also attached to this bug)
3. Observe that `nomodule.js` is listed as one of the loaded resources.

Expected:

3. `nomodule` scripts should never be loaded in a modern browser.

Additional notes:

- Reproducible about 50% of the time in new tab
- Reproducible 100% of the time when when the cache is empty
- When there's no "traditional" script on top of HTML that has neither "nomodule" nor "type=module", I didn't repro (so far)

Other browsers

- Chrome: not affected
- Firefox: not affected
- Edge: affected, but it has bigger problems (it always loads nomodule)

-- 
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/20190206/f003f4d5/attachment.html>


More information about the webkit-unassigned mailing list