Closed Bug 1419513 Opened 7 years ago Closed 7 years ago

Inline modules don't execute after document load

Categories

(Core :: JavaScript Engine, defect, P2)

58 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1426440
Tracking Status
firefox59 --- affected

People

(Reporter: holcomb227, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce:

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0

With JavaScript, create a script element with type set to module and textContent set to anything that will execute. Append the script after the DOMContentLoaded event has been fired.

Example: https://gist.github.com/JeremyRH/06ce39e9d50d10312b58f298ece6b2ad


Actual results:

The script did not execute.


Expected results:

The script should have executed.
Blocks: modules-0
Flags: needinfo?(jcoppeard)
Priority: -- → P2
This should be fixed by bug 1426440.
Flags: needinfo?(jcoppeard)
This works for me in latest nightly.  I see the following in the web console:

before document load
DOMContentLoaded
after document load

Can you confirm?
Flags: needinfo?(holcomb227)
(In reply to Jon Coppeard (:jonco) from comment #2)
> This works for me in latest nightly.  I see the following in the web console:
> 
> before document load
> DOMContentLoaded
> after document load
> 
> Can you confirm?

Yes, I can confirm I'm seeing the same. This issue seems to be fixed in the latest nightly (59.0a1).
Flags: needinfo?(holcomb227)
(In reply to holcomb227 from comment #3)
Great.  Thanks for reporting this!
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.