[Webkit-unassigned] [Bug 26421] New: resources not fetched when application cache is on

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 15 15:31:18 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26421

           Summary: resources not fetched when application cache is on
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yong.li at torchmobile.com


When application cache is used, fetching some resources that are neither in the
cache nor in application cache fallback URL list can be refused.

As a result, the software doesn't show the list of checkboxes on
http://static.webvm.net/appcache/todo.html

bool DocumentLoader::shouldLoadResourceFromApplicationCache(const
ResourceRequest& request, ApplicationCacheResource*& resource)
{
    ApplicationCache* cache = applicationCache();
    if (!cache || !cache->isComplete())
        return false;

    // If the resource is not a HTTP/HTTPS GET, then abort
    if (!ApplicationCache::requestIsHTTPOrHTTPSGet(request))
        return false;

    // If the resource's URL is an master entry, the manifest, an explicit
entry, a fallback entry, or a dynamic entry
    // in the application cache, then get the resource from the cache (instead
of fetching it).
    resource = cache->resourceForURL(request.url());

    // Resources that match fallback namespaces or online whitelist entries are
fetched from the network,
    // unless they are also cached.
    if (!resource && (cache->urlMatchesFallbackNamespace(request.url()) ||
cache->isURLInOnlineWhitelist(request.url())))
        return false;

    // Resources that are not present in the manifest will always fail to load
(at least, after the
    // cache has been primed the first time), making the testing of offline
applications simpler.
    return true;
}


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list