Commit 2684cf6a authored by rjw's avatar rjw

Fixed 3126141. Allow pages with plugins to be cached. This is safe

        because plugins are cleanly started/stopped when their containing views are
        added/removed from the view hierarchy.

        Reviewed by trey.

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::canCachePage):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent be02abb2
2003-01-17 Richard Williamson <rjw@apple.com>
Fixed 3126141. Allow pages with plugins to be cached. This is safe
because plugins are cleanly started/stopped when their containing views are
added/removed from the view hierarchy.
Reviewed by trey.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::canCachePage):
=======
2003-01-17 David Hyatt <hyatt@apple.com> 2003-01-17 David Hyatt <hyatt@apple.com>
The new table code from Lars. Also includes bug fixes for The new table code from Lars. Also includes bug fixes for
......
2003-01-17 Richard Williamson <rjw@apple.com>
Fixed 3126141. Allow pages with plugins to be cached. This is safe
because plugins are cleanly started/stopped when their containing views are
added/removed from the view hierarchy.
Reviewed by trey.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::canCachePage):
=======
2003-01-17 David Hyatt <hyatt@apple.com> 2003-01-17 David Hyatt <hyatt@apple.com>
The new table code from Lars. Also includes bug fixes for The new table code from Lars. Also includes bug fixes for
......
...@@ -473,15 +473,12 @@ bool KWQKHTMLPart::canCachePage() ...@@ -473,15 +473,12 @@ bool KWQKHTMLPart::canCachePage()
{ {
// Only save page state if: // Only save page state if:
// 1. We're not a frame or frameset. // 1. We're not a frame or frameset.
// 2. The page has no javascript timers. // 2. The page has no unload handler.
// 3. The page has no unload handler. // 3. The page has no password fields.
// 4. The page has no password fields. // 4. The page has no javascript timers.
// 5. The page has no plugins.
// 6. The page has no JavaScript window timeouts.
if (d->m_doc && if (d->m_doc &&
(d->m_frames.count() || (d->m_frames.count() ||
parentPart() || parentPart() ||
d->m_objects.count() ||
d->m_doc->getWindowEventListener (EventImpl::UNLOAD_EVENT) || d->m_doc->getWindowEventListener (EventImpl::UNLOAD_EVENT) ||
d->m_doc->hasPasswordField())) { d->m_doc->hasPasswordField())) {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment