Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BlobURLHandle doesn't work as intended for opaque origin Blob URLs
https://bugs.webkit.org/show_bug.cgi?id=244862 Reviewed by Darin Adler. BlobURLHandle doesn't work as intended for opaque origin Blob URLs. This is causing some of the subtests in imported/w3c/web-platform-tests/FileAPI/url/sandboxed-iframe.html to fail in WebKit. The issue is that the SecurityOrigin of an opaque-origin blob URL gets stored in a OriginMap inside ThreadableBlobOrigin. When the blob URL would later get revoked, we would remove its origin from the OriginMap, without checking if there are any BlobURLHandles keeping the blob alive. * LayoutTests/imported/w3c/web-platform-tests/FileAPI/url/sandboxed-iframe-expected.txt: * Source/WebCore/fileapi/ThreadableBlobRegistry.cpp: (WebCore::blobURLReferencesMap): (WebCore::unregisterBlobURLOriginIfNecessary): (WebCore::ThreadableBlobRegistry::registerBlobURL): (WebCore::ThreadableBlobRegistry::unregisterBlobURL): (WebCore::ThreadableBlobRegistry::registerBlobURLHandle): (WebCore::ThreadableBlobRegistry::unregisterBlobURLHandle): Canonical link: https://commits.webkit.org/254238@main
- Loading branch information
Showing
2 changed files
with
36 additions
and
8 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