Bug 219469

Summary: window load events will be triggered multiple times when a site is loading
Product: WebKit Reporter: xiehaiyan_xhy
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: beidson, cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=219038
https://bugs.webkit.org/show_bug.cgi?id=15484

Description xiehaiyan_xhy 2020-12-02 18:12:52 PST
Repro:
On some websites such as msn news, fox news websites, window load events will be triggered multiple times.
This won't happen on Android webview or other browsers

sample website: https://www.foxnews.com/politics/trump-says-he-will-leave-office-electoral-college-votes-biden

Code
window.addEventListener("load", (event) => {
        console.log("load event triggered");
        
    });
Comment 1 Radar WebKit Bug Importer 2020-12-17 14:13:39 PST
<rdar://problem/72440629>