Closed Bug 1426189 Opened 2 years ago Closed 2 years ago

JS module test for document.currentScript fails

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

document.currentScript is supposed to be null for modules, but that isn't currently the case.
Priority: -- → P3
Patch to make the current script null when executing modules.
Attachment #8939528 - Flags: review?(amarchesini)
Attachment #8939528 - Flags: review?(amarchesini) → review+
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/eeeb7268e492
Make document.currentScript null in modules r=baku
https://hg.mozilla.org/mozilla-central/rev/eeeb7268e492
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.