From ceb63592c5a89c8ee5e3cc6bb2186474c678fb0f Mon Sep 17 00:00:00 2001 From: Grace Kloba Date: Thu, 3 Dec 2009 09:53:55 -0800 Subject: Experimental change. Cache pages with unload event for back/forward. This will improve the history navigation. But it may break some sites. See discussion in https://bugs.webkit.org/show_bug.cgi?id=29021. --- WebCore/history/CachedFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'WebCore/history/CachedFrame.cpp') diff --git a/WebCore/history/CachedFrame.cpp b/WebCore/history/CachedFrame.cpp index 16c7087..fe6c31f 100644 --- a/WebCore/history/CachedFrame.cpp +++ b/WebCore/history/CachedFrame.cpp @@ -99,6 +99,10 @@ void CachedFrameBase::restore() for (unsigned i = 0; i < m_childFrames.size(); ++i) m_childFrames[i]->open(); +#ifdef ANDROID_PAGE_CACHE_UNLOAD + // matches pageshowEvent as in Document::implicitClose() + m_document->dispatchWindowLoadEvent(); +#endif m_document->dispatchWindowEvent(PageTransitionEvent::create(EventNames().pageshowEvent, true), m_document); } -- cgit v1.1