Changeset 58760 in webkit


Ignore:
Timestamp:
May 4, 2010 8:30:07 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-05-04 Ben Murdoch <benm@google.com>

Reviewed by Simon Hausmann.

Crash in handleTouchEvent: using dangling node ptrs in hashmap
https://bugs.webkit.org/show_bug.cgi?id=38514

  • fast/events/touch/resources/touch-stale-node-crash.js: Added.
  • fast/events/touch/resources/send-touch-up.html: Added.
  • fast/events/touch/touch-stale-node-crash-expected.txt: Added.
  • fast/events/touch/touch-stale-node-crash.html: Added.

2010-05-04 Ben Murdoch <benm@google.com>

Reviewed by Simon Hausmann.

Crash in handleTouchEvent: using dangling node ptrs in hashmap
https://bugs.webkit.org/show_bug.cgi?id=38514

When navigating away from a page, if you have your finger still
pressed and then lift it on the new page we see a crash if the
node got deleted as we still have a dangling pointer in the
m_originatingTouchPointTargets hashmap and try to use it as the
receiver to dispatch a touchend event.

Test: fast/events/touch/touch-stale-node-crash.html

  • page/EventHandler.cpp: (WebCore::EventHandler::clear): Clear the hashmap of touch targets.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r58750 r58760  
     12010-05-04  Ben Murdoch  <benm@google.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Crash in handleTouchEvent: using dangling node ptrs in hashmap
     6        https://bugs.webkit.org/show_bug.cgi?id=38514
     7
     8        * fast/events/touch/resources/touch-stale-node-crash.js: Added.
     9        * fast/events/touch/resources/send-touch-up.html: Added.
     10        * fast/events/touch/touch-stale-node-crash-expected.txt: Added.
     11        * fast/events/touch/touch-stale-node-crash.html: Added.
     12
    1132010-05-04  Jeremy Moskovich  <jeremy@chromium.org>
    214
  • trunk/WebCore/ChangeLog

    r58758 r58760  
     12010-05-04  Ben Murdoch  <benm@google.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Crash in handleTouchEvent: using dangling node ptrs in hashmap
     6        https://bugs.webkit.org/show_bug.cgi?id=38514
     7
     8        When navigating away from a page, if you have your finger still
     9        pressed and then lift it on the new page we see a crash if the
     10        node got deleted as we still have a dangling pointer in the
     11        m_originatingTouchPointTargets hashmap and try to use it as the
     12        receiver to dispatch a touchend event.
     13
     14        Test: fast/events/touch/touch-stale-node-crash.html
     15
     16        * page/EventHandler.cpp:
     17        (WebCore::EventHandler::clear): Clear the hashmap of touch targets.
     18
    1192010-05-04  Joseph Pecoraro  <joepeck@webkit.org>
    220
  • trunk/WebCore/page/EventHandler.cpp

    r58625 r58760  
    232232    m_latchedWheelEventNode = 0;
    233233    m_previousWheelScrolledNode = 0;
     234#if ENABLE(TOUCH_EVENTS)
     235    m_originatingTouchPointTargets.clear();
     236#endif
    234237}
    235238
Note: See TracChangeset for help on using the changeset viewer.