Open Bug 1886437 Opened 7 months ago Updated 5 months ago

loadedmetadata is fired even before the script has a chance to run to register event handlers

Categories

(Web Compatibility :: Knowledge Base, defect)

defect

Tracking

(Not tracked)

People

(Reporter: jgraham, Unassigned)

References

(Blocks 1 open bug)

Details

The handlers registered by video.addEventListener('loadedmetadata' added after the video element is already in the DOM sometimes don't fire. This is a race condition, but it seems like other browser engines may be less susceptible to the race condition than Gecko, so it can cause site breakage.

Whiteboard: [webcompat:needs-knowledgebase]
You need to log in before you can comment on or make changes to this bug.