[Webkit-unassigned] [Bug 208642] REGRESSION: (r257905) [ Mac wk2 Debug ] ASSERTION FAILED: !m_isolatedWorld->isNormal() || m_wrapper || !m_jsFunction

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 5 17:20:20 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=208642

--- Comment #11 from Yusuke Suzuki <ysuzuki at apple.com> ---
> The assertion is saying that if m_jsFunction is not null, then m_wrapper shouldn't be null. This must be true because any event target with a valid JS event listener should have had a wrapper when the event listener was added, and the wrapper should never be collected as long as the event listener can be invoked.

No. m_jsFunction can be any value basically if m_wrapper is null. This can be collected. But this can be retained because of conservative GC, because user puts listener function to somewhere, and the other any reasons.
So, m_jsFunction in this assertion is completely unrelated to what we should test.
The correct assertion should be at least,

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200306/2e260bd1/attachment-0001.htm>


More information about the webkit-unassigned mailing list