Changeset 149948 in webkit


Ignore:
Timestamp:
May 11, 2013 9:28:15 PM (11 years ago)
Author:
Simon Fraser
Message:

Possible crash when going Back while loading PDF
https://bugs.webkit.org/show_bug.cgi?id=115972

Reviewed by Dan Bernstein.

It's possible for m_frame to be null when Document::findUnsafeParentScrollPropagationBoundary()
is called, so null-check currentFrame.

  • dom/Document.cpp:

(WebCore::Document::findUnsafeParentScrollPropagationBoundary):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r149947 r149948  
     12013-05-11  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Possible crash when going Back while loading PDF
     4        https://bugs.webkit.org/show_bug.cgi?id=115972
     5
     6        Reviewed by Dan Bernstein.
     7
     8        It's possible for m_frame to be null when Document::findUnsafeParentScrollPropagationBoundary()
     9        is called, so null-check currentFrame.
     10
     11        * dom/Document.cpp:
     12        (WebCore::Document::findUnsafeParentScrollPropagationBoundary):
     13
    1142013-05-11  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/Source/WebCore/dom/Document.cpp

    r149869 r149948  
    27822782{
    27832783    Frame* currentFrame = m_frame;
    2784     Frame* ancestorFrame = currentFrame->tree()->parent();
     2784    if (!currentFrame)
     2785        return 0;
     2786
     2787    Frame* ancestorFrame = currentFrame->tree()->parent();
    27852788
    27862789    while (ancestorFrame) {
Note: See TracChangeset for help on using the changeset viewer.