Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
CachedResourceLoader should not need to remove fragment identifier
https://bugs.webkit.org/show_bug.cgi?id=163015 Patch by Youenn Fablet <youenn@apple.com> on 2016-10-18 Reviewed by Darin Adler. No expected change for non-window port. For window port, CachedResourceLoader will strip the fragment identifier of the URL passed to subresourceForURL before querying the memory cache. Removing the fragment identifier from the request stored in CachedResourceRequest. The fragment identifier is stored in a separate field. This allows CachedResourceLoader to not care about fragment identifier. CachedResource can then get access to it. * loader/cache/CachedResource.cpp: (WebCore::CachedResource::CachedResource): (WebCore::CachedResource::finishRequestInitialization): Deleted. * loader/cache/CachedResource.h: * loader/cache/CachedResourceLoader.cpp: (WebCore::CachedResourceLoader::cachedResource): Updated the method taking a const String& to strip the fragment identifier if needed. Updated the method taking a const URL& to assert if the fragment identifier is present. (WebCore::CachedResourceLoader::requestUserCSSStyleSheet): (WebCore::CachedResourceLoader::requestResource): * loader/cache/CachedResourceRequest.cpp: (WebCore::CachedResourceRequest::CachedResourceRequest): (WebCore::CachedResourceRequest::splitFragmentIdentifierFromRequestURL): * loader/cache/CachedResourceRequest.h: (WebCore::CachedResourceRequest::releaseFragmentIdentifier): (WebCore::CachedResourceRequest::clearFragmentIdentifier): * loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::shouldRemoveFragmentIdentifier): (WebCore::MemoryCache::removeFragmentIdentifierIfNeeded): (WebCore::MemoryCache::revalidationSucceeded): (WebCore::MemoryCache::resourceForRequest): * loader/cache/MemoryCache.h: Canonical link: https://commits.webkit.org/181372@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
e46a96b
commit 23a079d
Showing
8 changed files
with
87 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters