Changeset 84757 in webkit


Ignore:
Timestamp:
Apr 24, 2011 11:29:49 AM (13 years ago)
Author:
mitz@apple.com
Message:

../WebCore: Manual test for <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
https://bugs.webkit.org/show_bug.cgi?id=59299

Reviewed by Maciej Stachowiak.

  • manual-tests/back-from-document-with-scrollbar.html: Added.

../WebKit2: <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
https://bugs.webkit.org/show_bug.cgi?id=59299

Reviewed by Maciej Stachowiak.

  • WebProcess/WebCoreSupport/WebChromeClient.cpp:

(WebKit::WebChromeClient::invalidateContentsAndWindow): Null-check the document.
(WebKit::WebChromeClient::invalidateContentsForSlowScroll): Ditto.

Location:
trunk/Source
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84755 r84757  
     12011-04-24  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Manual test for <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
     6        https://bugs.webkit.org/show_bug.cgi?id=59299
     7
     8        * manual-tests/back-from-document-with-scrollbar.html: Added.
     9
    1102011-04-24  Rik Cabanier  <cabanier@adobe.com>
    211
  • trunk/Source/WebKit2/ChangeLog

    r84751 r84757  
     12011-04-24  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        <rdar://problem/9329741> Reproducible crash in WebChromeClient::invalidateContentsAndWindow() on simonscat.com
     6        https://bugs.webkit.org/show_bug.cgi?id=59299
     7
     8        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
     9        (WebKit::WebChromeClient::invalidateContentsAndWindow): Null-check the document.
     10        (WebKit::WebChromeClient::invalidateContentsForSlowScroll): Ditto.
     11
    1122011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp

    r84702 r84757  
    357357void WebChromeClient::invalidateContentsAndWindow(const IntRect& rect, bool)
    358358{
    359     if (m_page->corePage()->mainFrame()->document()->printing())
    360         return;
     359    if (Document* document = m_page->corePage()->mainFrame()->document()) {
     360        if (document->printing())
     361            return;
     362    }
     363
    361364    m_page->drawingArea()->setNeedsDisplay(rect);
    362365}
     
    364367void WebChromeClient::invalidateContentsForSlowScroll(const IntRect& rect, bool)
    365368{
    366     if (m_page->corePage()->mainFrame()->document()->printing())
    367         return;
     369    if (Document* document = m_page->corePage()->mainFrame()->document()) {
     370        if (document->printing())
     371            return;
     372    }
     373
    368374    m_page->pageDidScroll();
    369375    m_page->drawingArea()->setNeedsDisplay(rect);
Note: See TracChangeset for help on using the changeset viewer.