a8487ff2be
https://bugs.webkit.org/show_bug.cgi?id=229041 Reviewed by Alex Christensen. LayoutTests/imported/w3c: Rebaseline WPT tests now that more checks are passing. * web-platform-tests/html/cross-origin-embedder-policy/blob.https-expected.txt: * web-platform-tests/html/cross-origin-embedder-policy/cross-origin-isolated-permission.https-expected.txt: * web-platform-tests/html/cross-origin-opener-policy/coep-blob-popup.https-expected.txt: Source/WebCore: Add Cross-Origin-Embedder-Policy (COEP) support for Blob URLs. We do the same thing as for COOP, we pass the COEP policy when registering the Blob URL and store it in the BlobData. When we need the construct a Blob resource response as a result of a load, we add the right COEP headers based on the BlobData's COEP policy. No new tests, rebaselined existing tests. * Modules/fetch/FetchLoader.cpp: (WebCore::FetchLoader::startLoadingBlobURL): * fileapi/Blob.cpp: (WebCore::BlobURLRegistry::registerURL): (WebCore::Blob::Blob): * fileapi/FileReaderLoader.cpp: (WebCore::FileReaderLoader::start): * fileapi/ThreadableBlobRegistry.cpp: (WebCore::ThreadableBlobRegistry::registerBlobURL): * fileapi/ThreadableBlobRegistry.h: * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::loadResource): * loader/CrossOriginEmbedderPolicy.cpp: (WebCore::addCrossOriginEmbedderPolicyHeaders): * loader/CrossOriginEmbedderPolicy.h: (WebCore::operator==): * loader/CrossOriginOpenerPolicy.cpp: (WebCore::addCrossOriginOpenerPolicyHeaders): * loader/FrameLoader.cpp: (WebCore::FrameLoader::didBeginDocument): * platform/network/BlobData.h: (WebCore::BlobData::crossOriginEmbedderPolicy const): (WebCore::BlobData::setCrossOriginEmbedderPolicy): * platform/network/BlobRegistry.h: * platform/network/BlobRegistryImpl.cpp: (WebCore::BlobRegistryImpl::registerBlobURL): (WebCore::BlobRegistryImpl::registerBlobURLOptionallyFileBacked): * platform/network/BlobRegistryImpl.h: * platform/network/BlobResourceHandle.cpp: (WebCore::BlobResourceHandle::notifyResponseOnSuccess): Source/WebKit: * NetworkProcess/NetworkConnectionToWebProcess.cpp: (WebKit::NetworkConnectionToWebProcess::registerBlobURLFromURL): (WebKit::NetworkConnectionToWebProcess::registerBlobURLOptionallyFileBacked): * NetworkProcess/NetworkConnectionToWebProcess.h: * NetworkProcess/NetworkConnectionToWebProcess.messages.in: * NetworkProcess/NetworkDataTaskBlob.cpp: (WebKit::NetworkDataTaskBlob::dispatchDidReceiveResponse): * NetworkProcess/NetworkProcessPlatformStrategies.cpp: (WebKit::NetworkProcessPlatformStrategies::createBlobRegistry): * WebProcess/FileAPI/BlobRegistryProxy.cpp: (WebKit::BlobRegistryProxy::registerBlobURL): * WebProcess/FileAPI/BlobRegistryProxy.h: Source/WebKitLegacy/mac: * WebCoreSupport/WebPlatformStrategies.mm: Source/WebKitLegacy/win: * WebCoreSupport/WebPlatformStrategies.cpp: LayoutTests: Update test expectations to unskip tests that are now passing. * TestExpectations: Canonical link: https://commits.webkit.org/240518@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281055 268f45cc-cd09-0410-ab3c-d52691b4dbfc |
||
---|---|---|
.. | ||
AsyncFileStream.cpp | ||
AsyncFileStream.h | ||
Blob.cpp | ||
Blob.h | ||
Blob.idl | ||
BlobBuilder.cpp | ||
BlobBuilder.h | ||
BlobCallback.cpp | ||
BlobCallback.h | ||
BlobCallback.idl | ||
BlobLoader.h | ||
BlobPropertyBag.h | ||
BlobPropertyBag.idl | ||
BlobURL.cpp | ||
BlobURL.h | ||
EndingType.h | ||
EndingType.idl | ||
File.cpp | ||
File.h | ||
File.idl | ||
FileCocoa.mm | ||
FileList.cpp | ||
FileList.h | ||
FileList.idl | ||
FileReader.cpp | ||
FileReader.h | ||
FileReader.idl | ||
FileReaderLoader.cpp | ||
FileReaderLoader.h | ||
FileReaderLoaderClient.h | ||
FileReaderSync.cpp | ||
FileReaderSync.h | ||
FileReaderSync.idl | ||
NetworkSendQueue.cpp | ||
NetworkSendQueue.h | ||
ThreadableBlobRegistry.cpp | ||
ThreadableBlobRegistry.h |