-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect CachedResource in more places
https://bugs.webkit.org/show_bug.cgi?id=259331 rdar://80172764 Reviewed by David Kilzer. Protect CachedResource in more places. In particular, a call to MemoryCache::remove() may delete the resource it is passed so it is important to protect the resource if we're going to use it after. * Source/WebCore/loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::didFail): * Source/WebCore/loader/cache/CachedFont.cpp: (WebCore::CachedFont::setErrorAndDeleteData): * Source/WebCore/loader/cache/CachedImage.cpp: (WebCore::CachedImage::updateBufferInternal): * Source/WebCore/loader/cache/CachedResource.cpp: (WebCore::CachedResource::redirectReceived): * Source/WebCore/loader/cache/CachedResourceHandle.cpp: (WebCore::CachedResourceHandleBase::CachedResourceHandleBase): * Source/WebCore/loader/cache/CachedResourceHandle.h: (WebCore::CachedResourceHandle::CachedResourceHandle): * Source/WebCore/loader/cache/MemoryCache.cpp: (WebCore::MemoryCache::revalidationSucceeded): (WebCore::MemoryCache::resourceForRequestImpl): (WebCore::MemoryCache::forEachSessionResource): (WebCore::MemoryCache::remove): (WebCore::MemoryCache::removeResourcesWithOrigin): (WebCore::MemoryCache::removeResourcesWithOrigins): (WebCore::MemoryCache::getStatistics): * Source/WebCore/loader/cache/MemoryCache.h: Canonical link: https://commits.webkit.org/266163@main
- Loading branch information
Showing
8 changed files
with
37 additions
and
19 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