Changeset 65747 in webkit


Ignore:
Timestamp:
Aug 20, 2010 12:02:38 PM (14 years ago)
Author:
tony@chromium.org
Message:

2010-08-20 Tony Chang <tony@chromium.org>

Reviewed by Kent Tamura.

[chromium] fix a null pointer crash when dispatching JS keyboard events
https://bugs.webkit.org/show_bug.cgi?id=44313

  • fast/events/initkeyboardevent-crash-expected.txt: Added.
  • fast/events/initkeyboardevent-crash.html: Added.

2010-08-20 Tony Chang <tony@chromium.org>

Reviewed by Kent Tamura.

[chromium] fix a null pointer crash when dispatching JS keyboard events
https://bugs.webkit.org/show_bug.cgi?id=44313

  • src/WebInputEventConversion.cpp: (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r65746 r65747  
     12010-08-20  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        [chromium] fix a null pointer crash when dispatching JS keyboard events
     6        https://bugs.webkit.org/show_bug.cgi?id=44313
     7
     8        * fast/events/initkeyboardevent-crash-expected.txt: Added.
     9        * fast/events/initkeyboardevent-crash.html: Added.
     10
    1112010-08-20  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/WebKit/chromium/ChangeLog

    r65743 r65747  
     12010-08-20  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        [chromium] fix a null pointer crash when dispatching JS keyboard events
     6        https://bugs.webkit.org/show_bug.cgi?id=44313
     7
     8        * src/WebInputEventConversion.cpp:
     9        (WebKit::WebKeyboardEventBuilder::WebKeyboardEventBuilder):
     10
    1112010-08-20  Jay Civelli  <jcivelli@chromium.org>
    212
  • trunk/WebKit/chromium/src/WebInputEventConversion.cpp

    r64756 r65747  
    333333    timeStampSeconds = event.timeStamp() * 1.0e-3;
    334334    windowsKeyCode = event.keyCode();
     335
     336    // The platform keyevent does not exist if the event was created using
     337    // initKeyboardEvent.
     338    if (!event.keyEvent())
     339        return;
    335340    nativeKeyCode = event.keyEvent()->nativeVirtualKeyCode();
    336341    unsigned int numChars = std::min(event.keyEvent()->text().length(),
Note: See TracChangeset for help on using the changeset viewer.