Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f972bb0d49772d10b770dc3f4be2d2118a21615
      
https://github.com/WebKit/WebKit/commit/6f972bb0d49772d10b770dc3f4be2d2118a21615
  Author: Matthew Finkel <[email protected]>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M Source/WebCore/Modules/mediasource/MediaSourceRegistry.cpp
    M Source/WebCore/Modules/mediasource/MediaSourceRegistry.h
    M Source/WebCore/fileapi/Blob.cpp
    M Source/WebCore/fileapi/ThreadableBlobRegistry.cpp
    M Source/WebCore/fileapi/ThreadableBlobRegistry.h
    M Source/WebCore/fileapi/URLKeepingBlobAlive.cpp
    M Source/WebCore/html/PublicURLManager.cpp
    M Source/WebCore/html/URLRegistry.h

  Log Message:
  -----------
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to