Changeset 41425 in webkit


Ignore:
Timestamp:
Mar 4, 2009 10:25:50 AM (15 years ago)
Author:
beidson@apple.com
Message:

2009-03-04 Brady Eidson <beidson@apple.com>

Reviewed by Darin Adler

<rdar://problem/6619630> Quick Look of vCards stuck on image of first card opened.

I narrowed this down to http://trac.webkit.org/changeset/39304 which, among other things,
consolidated some of the various decision making pieces of the Cache into the new method
FrameLoader::cachePolicy().

Before 39304, when deciding whether to use an existing CachedResource, we checked if the FrameLoader
is reloading. If it is, we'd evict any existing resource then recreate it. Quick looks uses the
same URL for this image every time and expects it to be reloaded with each new card.

The FrameLoader::isReloading() check did one thing - Ask the DocumentLoader if it's cache policy
is "ReloadIgnoringCacheData". This check was lost in the consolidation to the new method.

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::cachePolicy): Restore the DocumentLoader's cachePolicy check as a possible condition for returning CachePolicyReload.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r41424 r41425  
     12009-03-04  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Darin Adler
     4
     5        <rdar://problem/6619630> Quick Look of vCards stuck on image of first card opened.
     6
     7        I narrowed this down to http://trac.webkit.org/changeset/39304 which, among other things,
     8        consolidated some of the various decision making pieces of the Cache into the new method
     9        FrameLoader::cachePolicy().
     10
     11        Before 39304, when deciding whether to use an existing CachedResource, we checked if the FrameLoader
     12        is reloading.  If it is, we'd evict any existing resource then recreate it.  Quick looks uses the
     13        same URL for this image every time and expects it to be reloaded with each new card.
     14
     15        The FrameLoader::isReloading() check did one thing - Ask the DocumentLoader if it's cache policy
     16        is "ReloadIgnoringCacheData".  This check was lost in the consolidation to the new method. 
     17
     18        * loader/FrameLoader.cpp:
     19        (WebCore::FrameLoader::cachePolicy): Restore the DocumentLoader's cachePolicy check as a possible
     20          condition for returning CachePolicyReload.
     21
    1222009-03-04  Timothy Hatcher  <timothy@apple.com>
    223
  • trunk/WebCore/loader/FrameLoader.cpp

    r41398 r41425  
    32383238        return CachePolicyVerify;
    32393239   
    3240     if (m_loadType == FrameLoadTypeReloadFromOrigin)
     3240    if (m_loadType == FrameLoadTypeReloadFromOrigin || documentLoader()->request().cachePolicy() == ReloadIgnoringCacheData)
    32413241        return CachePolicyReload;
    32423242   
Note: See TracChangeset for help on using the changeset viewer.