-
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.
Plumb an optional top SecurityOriginData into ThreadableBlobRegistry
https://bugs.webkit.org/show_bug.cgi?id=254235 rdar://problem/107024226 Reviewed by Chris Dumez. Plumb into ThreadableBlobRegistry the top SecurityOriginData associated with the Blob URL. For public Blob URLs, this origin is obtained from the top document. For internal Blob URLs, the value is std::nullopt because a blob is not inherently bound to a top origin. This is a pre-patch for partitioning the blob registry by top origin. This change should have any behavioral change. * Source/WebCore/Modules/mediasource/MediaSourceRegistry.cpp: (WebCore::MediaSourceRegistry::unregisterURL): * Source/WebCore/Modules/mediasource/MediaSourceRegistry.h: * Source/WebCore/fileapi/Blob.cpp: (WebCore::BlobURLRegistry::registerURL): (WebCore::BlobURLRegistry::unregisterURL): (WebCore::BlobURLRegistry::unregisterURLsForContext): (WebCore::Blob::Blob): (WebCore::Blob::~Blob): * Source/WebCore/fileapi/ThreadableBlobRegistry.cpp: (WebCore::ThreadableBlobRegistry::registerBlobURL): (WebCore::ThreadableBlobRegistry::unregisterBlobURL): (WebCore::ThreadableBlobRegistry::registerBlobURLHandle): (WebCore::ThreadableBlobRegistry::unregisterBlobURLHandle): * Source/WebCore/fileapi/ThreadableBlobRegistry.h: * Source/WebCore/fileapi/URLKeepingBlobAlive.cpp: (WebCore::URLKeepingBlobAlive::registerBlobURLHandleIfNecessary): (WebCore::URLKeepingBlobAlive::unregisterBlobURLHandleIfNecessary): * Source/WebCore/html/PublicURLManager.cpp: (WebCore::PublicURLManager::revoke): * Source/WebCore/html/URLRegistry.h: Canonical link: https://commits.webkit.org/266021@main
- Loading branch information
Showing
8 changed files
with
34 additions
and
21 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