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):
+
+2012-02-16 Antonio Gomes <agomes@rim.com>
+
[BlackBerry] Upstream touch handling related classes
https://bugs.webkit.org/show_bug.cgi?id=78509
return true;
}
+void FrameLoaderClientBlackBerry::didSaveToPageCache()
+{
+ // When page goes into PageCache, clean up any possible
+ // document data cache we might have.
+ m_webPagePrivate->clearDocumentData(m_frame->document());
+}
+
void FrameLoaderClientBlackBerry::provisionalLoadStarted()
{
// We would like to hide the virtual keyboard before it navigates to another page
virtual void transitionToCommittedFromCachedFrame(CachedFrame*) { notImplemented(); }
virtual void transitionToCommittedForNewPage();
virtual bool canCachePage() const;
- virtual void didSaveToPageCache() { }
+ virtual void didSaveToPageCache();
virtual void didRestoreFromPageCache();
virtual void dispatchDidBecomeFrameset(bool) { }
virtual void download(ResourceHandle*, const ResourceRequest&, const ResourceRequest&, const ResourceResponse&);