Bug 167755 - GC may not visit event targets for async events
Summary: GC may not visit event targets for async events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-02-02 14:08 PST by Michael Saboff
Modified: 2017-02-02 14:08 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2017-02-02 14:08:10 PST
]
When running the test fast/shadow-dom/slotchange-event-bubbling.html with a Debug build and the options JSC_scribbleFreeCells=true JSC_collectContinuously=true JSC_useGenerationalGC=false the following ASSERT will fire in JSEventListener.h

129 	    ASSERT(!m_isolatedWorld->isNormal() || m_wrapper || !m_jsFunction);

This is due to the Weak m_wrapper having been collected while the m_jsFunction is still alive.  We need to make sure we visit wrappers and functions for event targets that are on an asynchromous event queue.

<rdar://problem/30316709>