Bug 247380
| Summary: | Check for execution context between different phases of event listeners | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chirag M Shah <chirag_m_shah> |
| Component: | DOM | Assignee: | Chirag M Shah <chirag_m_shah> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | Keywords: | InRadar |
| Priority: | P2 | ||
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chirag M Shah
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chirag M Shah
Pull request: https://github.com/chirags27/WebKit/pull/3
Chirag M Shah
Pull request: https://github.com/WebKit/WebKit/pull/6141
Chirag M Shah
rdar://101744963
EWS
Committed 256402@main (1624156ba5f9): <https://commits.webkit.org/256402@main>
Reviewed commits have been landed. Closing PR #6141 and removing active labels.