diff options
author | Grace Kloba <klobag@google.com> | 2009-12-03 09:53:55 -0800 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2009-12-03 11:58:09 -0800 |
commit | ceb63592c5a89c8ee5e3cc6bb2186474c678fb0f (patch) | |
tree | 2746ec4fb961cea6d570fbf24718074d4c9c2e28 /WebCore/history/CachedFrame.cpp | |
parent | ab87fa9e3781b4b32b4c1014acd9079ea145e2d6 (diff) | |
download | external_webkit-ceb63592c5a89c8ee5e3cc6bb2186474c678fb0f.zip external_webkit-ceb63592c5a89c8ee5e3cc6bb2186474c678fb0f.tar.gz external_webkit-ceb63592c5a89c8ee5e3cc6bb2186474c678fb0f.tar.bz2 |
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.
Diffstat (limited to 'WebCore/history/CachedFrame.cpp')
-rw-r--r-- | WebCore/history/CachedFrame.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |