⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 50153 in webkit


Ignore:
Timestamp:
Oct 27, 2009, 9:43:39 AM (17 years ago)
Author:
beidson@apple.com
Message:

Rubberstamped by Sam Weinig.

Re-enable the check that disallows pages with unload handlers in the page cache.

<rdar://problem/7196485> and http://webkit.org/b/29021

WebCore:

  • loader/FrameLoader.cpp:

(WebCore::FrameLoader::canCachePageContainingThisFrame):
(WebCore::FrameLoader::logCanCacheFrameDecision):

LayoutTests:

  • platform/mac/Skipped:
  • platform/win/Skipped:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r50148 r50153  
     12009-10-27  Brady Eidson  <beidson@apple.com>
     2
     3        Rubberstamped by Sam Weinig.
     4
     5        Re-enable the check that disallows pages with unload handlers in the page cache.
     6
     7        <rdar://problem/7196485> and http://webkit.org/b/29021
     8
     9        * platform/mac/Skipped:
     10        * platform/win/Skipped:
     11
    1122009-10-27  Xan Lopez  <xlopez@igalia.com>
    213
  • trunk/LayoutTests/platform/mac/Skipped

    r49995 r50153  
    8888media/video-volume-slider.html
    8989
    90 # As long as pages with unload handlers are put in the Page Cache, this test doesn't make any sense for Mac.
    91 # <rdar://problem/7196485> and https://bugs.webkit.org/show_bug.cgi?id=29021
    92 fast/loader/frames-with-unload-handlers-in-page-cache.html
    93 
    9490# This port doesn't support detecting slow unload handlers.
    9591fast/dom/Window/slow_unload_handler.html
  • trunk/LayoutTests/platform/win/Skipped

    r49995 r50153  
    638638http/tests/security/mixedContent
    639639
    640 # As long as pages with unload handlers are put in the Page Cache, this test doesn't make any sense for Windows.
    641 # <rdar://problem/7196485> and https://bugs.webkit.org/show_bug.cgi?id=29021
    642 fast/loader/frames-with-unload-handlers-in-page-cache.html
    643 
    644640# <https://bugs.webkit.org/show_bug.cgi?id=29057>
    645641editing/pasteboard/files-during-page-drags.html
  • trunk/WebCore/ChangeLog

    r50152 r50153  
     12009-10-27  Brady Eidson  <beidson@apple.com>
     2
     3        Rubberstamped by Sam Weinig.
     4
     5        Re-enable the check that disallows pages with unload handlers in the page cache.
     6
     7        <rdar://problem/7196485> and http://webkit.org/b/29021
     8
     9        * loader/FrameLoader.cpp:
     10        (WebCore::FrameLoader::canCachePageContainingThisFrame):
     11        (WebCore::FrameLoader::logCanCacheFrameDecision):
     12
    1132009-10-27  Timothy Hatcher  <timothy@apple.com>
    214
  • trunk/WebCore/loader/FrameLoader.cpp

    r50116 r50153  
    114114#endif
    115115
    116 #if PLATFORM(MAC) || PLATFORM(WIN)
    117 #define PAGE_CACHE_ACCEPTS_UNLOAD_HANDLERS
    118 #endif
    119 
    120116namespace WebCore {
    121117
     
    14691465        && !m_containsPlugIns
    14701466        && !m_URL.protocolIs("https")
    1471 #ifndef PAGE_CACHE_ACCEPTS_UNLOAD_HANDLERS
    14721467        && (!m_frame->domWindow() || !m_frame->domWindow()->hasEventListeners(eventNames().unloadEvent))
    1473 #endif
    14741468#if ENABLE(DATABASE)
    14751469        && !m_frame->document()->hasOpenDatabases()
     
    16161610        if (m_URL.protocolIs("https"))
    16171611            { PCLOG("   -Frame is HTTPS"); cannotCache = true; }
    1618 #ifndef PAGE_CACHE_ACCEPTS_UNLOAD_HANDLERS
    16191612        if (m_frame->domWindow() && m_frame->domWindow()->hasEventListeners(eventNames().unloadEvent))
    16201613            { PCLOG("   -Frame has an unload event listener"); cannotCache = true; }
    1621 #endif
    16221614#if ENABLE(DATABASE)
    16231615        if (m_frame->document()->hasOpenDatabases())
Note: See TracChangeset for help on using the changeset viewer.