Event listeners can move a frame, which invalidates the current script execution context between phases. Basically, we should be checking for script execution context between: fireEventListeners(event, EventInvokePhase::Capturing); and fireEventListeners(event, EventInvokePhase::Bubbling); in EventTarget.cpp
Pull request: https://github.com/chirags27/WebKit/pull/3
Pull request: https://github.com/WebKit/WebKit/pull/6141
rdar://101744963
Committed 256402@main (1624156ba5f9): <https://commits.webkit.org/256402@main> Reviewed commits have been landed. Closing PR #6141 and removing active labels.