Bug 219471

Summary: window.addEventListener DOMContentLoaded is not triggered
Product: WebKit Reporter: xiehaiyan_xhy
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, beidson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   

Description xiehaiyan_xhy 2020-12-02 18:37:32 PST
No DOMContentLoaded got from JS event listener as below:

window.addEventListener("DOMContentLoaded", (event) => {
    console.log("DOMContentLoaded");
});

https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event
Comment 1 Alexey Proskuryakov 2020-12-02 19:33:59 PST
Could you please attach a complete test case? DOMContentLoaded works in general.
Comment 2 Radar WebKit Bug Importer 2020-12-17 14:13:50 PST
<rdar://problem/72440638>