Changeset 128074 in webkit


Ignore:
Timestamp:
Sep 10, 2012 10:12:55 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][a11y] editing/pasteboard/paste-blockquote-into-blockquote-4.html crashes
https://bugs.webkit.org/show_bug.cgi?id=96199

Patch by Joanmarie Diggs <jdiggs@igalia.com> on 2012-09-10
Reviewed by Martin Robinson.

Added sanity check to correct erroneous assumption that there will
always be a child object.

No new tests as the bug crashes two existing Layout Tests which should
no longer crash as a result of this fix.

  • accessibility/gtk/AccessibilityObjectAtk.cpp:

(WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128070 r128074  
     12012-09-10  Joanmarie Diggs  <jdiggs@igalia.com>
     2
     3        [GTK][a11y] editing/pasteboard/paste-blockquote-into-blockquote-4.html crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=96199
     5
     6        Reviewed by Martin Robinson.
     7
     8        Added sanity check to correct erroneous assumption that there will
     9        always be a child object.
     10
     11        No new tests as the bug crashes two existing Layout Tests which should
     12        no longer crash as a result of this fix.
     13
     14        * accessibility/gtk/AccessibilityObjectAtk.cpp:
     15        (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
     16
    1172012-09-10  Mike West  <mkwst@chromium.org>
    218
  • trunk/Source/WebCore/accessibility/gtk/AccessibilityObjectAtk.cpp

    r127936 r128074  
    9090
    9191        child = child->firstChild();
    92         if (child->isLink() || !child->firstAnonymousBlockChild())
     92        if (child && (child->isLink() || !child->firstAnonymousBlockChild()))
    9393            return IncludeObject;
    9494    }
Note: See TracChangeset for help on using the changeset viewer.