Changeset 107991 in webkit


Ignore:
Timestamp:
Feb 16, 2012 4:04:23 PM (12 years ago)
Author:
tonikitoo@webkit.org
Message:

2012-02-16 Antonio Gomes <agomes@rim.com>

Crash @WebPagePrivate::enqueueRenderingOfClippedContentOfScrollableNodeAfterInRegionScrolling MKS_2986818
https://bugs.webkit.org/show_bug.cgi?id=78845

Reviewed by Rob Buis.

We were trying to operate on a cached Node when its page/frame/document
were gone to PageCache already. To avoid such problems, lets clean up
any document data we have cached when the Frame goes into the cache.

  • WebCoreSupport/FrameLoaderClientBlackBerry.cpp: (WebCore::FrameLoaderClientBlackBerry::didSaveToPageCache): (WebCore):
  • WebCoreSupport/FrameLoaderClientBlackBerry.h: (FrameLoaderClientBlackBerry):
Location:
trunk/Source/WebKit/blackberry
Files:
3 edited

Legend:

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

    r107990 r107991  
     12012-02-16  Antonio Gomes  <agomes@rim.com>
     2
     3        Crash @WebPagePrivate::enqueueRenderingOfClippedContentOfScrollableNodeAfterInRegionScrolling MKS_2986818
     4        https://bugs.webkit.org/show_bug.cgi?id=78845
     5
     6        Reviewed by Rob Buis.
     7
     8        We were trying to operate on a cached Node when its page/frame/document
     9        were gone to PageCache already. To avoid such problems, lets clean up
     10        any document data we have cached when the Frame goes into the cache.
     11
     12        * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
     13        (WebCore::FrameLoaderClientBlackBerry::didSaveToPageCache):
     14        (WebCore):
     15        * WebCoreSupport/FrameLoaderClientBlackBerry.h:
     16        (FrameLoaderClientBlackBerry):
     17
    1182012-02-16  Antonio Gomes  <agomes@rim.com>
    219
  • trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp

    r107734 r107991  
    12101210}
    12111211
     1212void FrameLoaderClientBlackBerry::didSaveToPageCache()
     1213{
     1214    // When page goes into PageCache, clean up any possible
     1215    // document data cache we might have.
     1216    m_webPagePrivate->clearDocumentData(m_frame->document());
     1217}
     1218
    12121219void FrameLoaderClientBlackBerry::provisionalLoadStarted()
    12131220{
  • trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.h

    r107734 r107991  
    144144    virtual void transitionToCommittedForNewPage();
    145145    virtual bool canCachePage() const;
    146     virtual void didSaveToPageCache() { }
     146    virtual void didSaveToPageCache();
    147147    virtual void didRestoreFromPageCache();
    148148    virtual void dispatchDidBecomeFrameset(bool) { }
Note: See TracChangeset for help on using the changeset viewer.