Changeset 63841 in webkit


Ignore:
Timestamp:
Jul 21, 2010 10:44:36 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-07-21 Finnur Thorarinsson <finnur.webkit@gmail.com>

Reviewed by Dimitri Glazkov.

Avoid crashing during find-in-page when |view| is NULL.
https://bugs.webkit.org/show_bug.cgi?id=42760

There are no layout tests because we don't have a repro case
to work with, so this is a speculative fix based on crash dump
diagnosis. See bug for details.

  • src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::shouldScopeMatches):
Location:
trunk/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r63810 r63841  
     12010-07-21  Finnur Thorarinsson  <finnur.webkit@gmail.com>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Avoid crashing during find-in-page when |view| is NULL.
     6        https://bugs.webkit.org/show_bug.cgi?id=42760
     7       
     8        There are no layout tests because we don't have a repro case
     9        to work with, so this is a speculative fix based on crash dump
     10        diagnosis. See bug for details.
     11
     12        * src/WebFrameImpl.cpp:
     13        (WebKit::WebFrameImpl::shouldScopeMatches):
     14
    1152010-07-21  Hans Wennborg  <hans@chromium.org>
    216
  • trunk/WebKit/chromium/src/WebFrameImpl.cpp

    r62770 r63841  
    21022102bool WebFrameImpl::shouldScopeMatches(const String& searchText)
    21032103{
    2104     // Don't scope if we can't find a frame or if the frame is not visible.
     2104    // Don't scope if we can't find a frame or a view or if the frame is not visible.
    21052105    // The user may have closed the tab/application, so abort.
    2106     if (!frame() || !hasVisibleContent())
     2106    if (!frame() || !frame()->view() || !hasVisibleContent())
    21072107        return false;
    21082108
Note: See TracChangeset for help on using the changeset viewer.