⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 207477 in webkit


Ignore:
Timestamp:
Oct 18, 2016, 12:19:45 PM (10 years ago)
Author:
Brent Fulgham
Message:

Correct Document::removeAllEventListeners
​https://bugs.webkit.org/show_bug.cgi?id=163558
<rdar://problem/28716840>

Reviewed by Chris Dumez.

Tested by fast/dom/node-move-to-new-document-crash-main.html.

  • dom/Document.cpp:

(WebCore::Document::removeAllEventListeners): Clear out the wheel and
touch event targets when clearing all data.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207474 r207477  
     12016-10-18  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Correct Document::removeAllEventListeners
     4        https://bugs.webkit.org/show_bug.cgi?id=163558
     5        <rdar://problem/28716840>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Tested by fast/dom/node-move-to-new-document-crash-main.html.
     10
     11        * dom/Document.cpp:
     12        (WebCore::Document::removeAllEventListeners): Clear out the wheel and
     13        touch event targets when clearing all data.
     14
    1152016-10-18  Dean Jackson  <dino@apple.com>
    216
  • trunk/Source/WebCore/dom/Document.cpp

    r207458 r207477  
    23522352    for (Node* node = firstChild(); node; node = NodeTraversal::next(*node))
    23532353        node->removeAllEventListeners();
     2354
     2355#if ENABLE(TOUCH_EVENTS)
     2356    m_touchEventTargets = nullptr;
     2357#endif
     2358    m_wheelEventTargets = nullptr;
    23542359}
    23552360
Note: See TracChangeset for help on using the changeset viewer.