[Webkit-unassigned] [Bug 197696] [iOS Debug] ASSERTION FAILED: !m_originalNode in WebCore::JSLazyEventListener::checkValidityForEventTarget(WebCore::EventTarget &)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 8 12:06:08 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=197696
--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
Oh great...
#if PLATFORM(IOS_FAMILY)
if (targetNode == &targetNode->document() && eventType == eventNames().scrollEvent)
targetNode->document().domWindow()->incrementScrollEventListenersCount();
// FIXME: Would it be sufficient to special-case this code for <body> and <frameset>?
//
// This code was added to address <rdar://problem/5846492> Onorientationchange event not working for document.body.
// Forward this call to addEventListener() to the window since these are window-only events.
if (eventType == eventNames().orientationchangeEvent || eventType == eventNames().resizeEvent)
targetNode->document().domWindow()->addEventListener(eventType, WTFMove(listener), options);
#if ENABLE(TOUCH_EVENTS)
if (eventNames().isTouchRelatedEventType(targetNode->document(), eventType))
targetNode->document().addTouchEventListener(*targetNode);
#endif
#endif // PLATFORM(IOS_FAMILY)
So we create a LazyEventListener for an Element (e.g. body) and then add it to the window. This explains the crashes we've seen on iOS with the reziseEvent lazy listeners.
--
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/20190508/c274ed00/attachment.html>
More information about the webkit-unassigned
mailing list