Changeset 95861 in webkit


Ignore:
Timestamp:
Sep 23, 2011 2:48:02 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

occasional crash in Chromium in dispatching keyEvent
https://bugs.webkit.org/show_bug.cgi?id=67941

Patch by Scott Graham <scottmg@chromium.org> on 2011-09-23
Reviewed by Darin Fisher.

Use focusedWebCoreNode() to handle null document for frame when
retrieving focused node in handling keyEvent.

  • src/WebViewImpl.cpp:

(WebKit::WebViewImpl::keyEvent):

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r95860 r95861  
     12011-09-23  Scott Graham  <scottmg@chromium.org>
     2
     3        occasional crash in Chromium in dispatching keyEvent
     4        https://bugs.webkit.org/show_bug.cgi?id=67941
     5
     6        Reviewed by Darin Fisher.
     7
     8        Use focusedWebCoreNode() to handle null document for frame when
     9        retrieving focused node in handling keyEvent.
     10
     11        * src/WebViewImpl.cpp:
     12        (WebKit::WebViewImpl::keyEvent):
     13
    1142011-09-23  Fady Samuel  <fsamuel@chromium.org>
    215
  • trunk/Source/WebKit/chromium/src/WebViewImpl.cpp

    r95640 r95861  
    655655            // Suppress the next keypress event unless the focused node is a plug-in node.
    656656            // (Flash needs these keypress events to handle non-US keyboards.)
    657             Node* node = frame->document()->focusedNode();
     657            Node* node = focusedWebCoreNode();
    658658            if (!node || !node->renderer() || !node->renderer()->isEmbeddedObject())
    659659                m_suppressNextKeypressEvent = true;
Note: See TracChangeset for help on using the changeset viewer.