Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=251980 rdar://problem/105213321 Reviewed by Chris Dumez. Introduce WebIDL, experimental flag and minimal implementation. Covered by rebased tests. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/background-fetch/abort.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/content-security-policy.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/fetch-uploads.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/fetch.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/get-ids.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/get.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/idlharness.https.any-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/idlharness.https.any.serviceworker-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/idlharness.https.any.sharedworker-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/idlharness.https.any.worker-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/interfaces.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/background-fetch/match.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/mixed-content-and-allowed-schemes.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/port-blocking.https.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/background-fetch/update-ui.https.window-expected.txt: Added. * Source/JavaScriptCore/runtime/IntlListFormat.h: * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WebCore/CMakeLists.txt: * Source/WebCore/DerivedSources-input.xcfilelist: * Source/WebCore/DerivedSources-output.xcfilelist: * Source/WebCore/DerivedSources.make: * Source/WebCore/Headers.cmake: * Source/WebCore/Modules/fetch/FetchHeaders.h: * Source/WebCore/Modules/fetch/FetchHeadersGuard.h: Added. * Source/WebCore/Modules/fetch/FetchResponseBodyLoader.h: Added. (WebCore::FetchResponseBodyLoader::takeConsumeDataCallback): (WebCore::FetchResponseBodyLoader::hasConsumeDataCallback const): (WebCore::FetchResponseBodyLoader::consumeDataCallback): (WebCore::FetchResponseBodyLoader::consumeDataByChunk): * Source/WebCore/Sources.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/bindings/js/WebCoreBuiltinNames.h: * Source/WebCore/dom/EventNames.h: * Source/WebCore/dom/EventNames.in: * Source/WebCore/dom/EventTargetFactory.in: * Source/WebCore/workers/service/background-fetch/BackgroundFetchEvent.cpp: Added. (WebCore::BackgroundFetchEvent::create): (WebCore::BackgroundFetchEvent::BackgroundFetchEvent): (WebCore::BackgroundFetchEvent::~BackgroundFetchEvent): (WebCore::BackgroundFetchEvent::registration const): * Source/WebCore/workers/service/background-fetch/BackgroundFetchEvent.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchEvent.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchEventInit.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchEventInit.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchFailureReason.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchFailureReason.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchInformation.h: Added. (WebCore::BackgroundFetchInformation::isolatedCopy const): (WebCore::BackgroundFetchInformation::isolatedCopy): * Source/WebCore/workers/service/background-fetch/BackgroundFetchManager.cpp: Added. (WebCore::BackgroundFetchManager::BackgroundFetchManager): (WebCore::BackgroundFetchManager::~BackgroundFetchManager): (WebCore::BackgroundFetchManager::fetch): (WebCore::BackgroundFetchManager::get): (WebCore::BackgroundFetchManager::getIds): * Source/WebCore/workers/service/background-fetch/BackgroundFetchManager.h: Added. (WebCore::BackgroundFetchManager::create): * Source/WebCore/workers/service/background-fetch/BackgroundFetchManager.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchOptions.h: Added. (WebCore::BackgroundFetchOptions::BackgroundFetchOptions): (WebCore::BackgroundFetchOptions::downloadTotal): (WebCore::BackgroundFetchOptions::isolatedCopy const): (WebCore::BackgroundFetchOptions::isolatedCopy): * Source/WebCore/workers/service/background-fetch/BackgroundFetchOptions.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchRecord.cpp: Added. (WebCore::BackgroundFetchRecord::BackgroundFetchRecord): (WebCore::BackgroundFetchRecord::~BackgroundFetchRecord): (WebCore::BackgroundFetchRecord::request): (WebCore::BackgroundFetchRecord::settleResponseReadyPromise): * Source/WebCore/workers/service/background-fetch/BackgroundFetchRecord.h: Added. (WebCore::BackgroundFetchRecord::create): (WebCore::BackgroundFetchRecord::responseReady): * Source/WebCore/workers/service/background-fetch/BackgroundFetchRecord.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchRecordIdentifier.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchRecordInformation.h: Added. (WebCore::BackgroundFetchRecordInformation::isolatedCopy const): (WebCore::BackgroundFetchRecordInformation::isolatedCopy): * Source/WebCore/workers/service/background-fetch/BackgroundFetchRegistration.cpp: Added. (WebCore::BackgroundFetchRegistration::create): (WebCore::BackgroundFetchRegistration::BackgroundFetchRegistration): (WebCore::BackgroundFetchRegistration::~BackgroundFetchRegistration): (WebCore::BackgroundFetchRegistration::abort): (WebCore::BackgroundFetchRegistration::match): (WebCore::BackgroundFetchRegistration::matchAll): (WebCore::BackgroundFetchRegistration::updateInformation): (WebCore::BackgroundFetchRegistration::activeDOMObjectName const): (WebCore::BackgroundFetchRegistration::stop): (WebCore::BackgroundFetchRegistration::virtualHasPendingActivity const): * Source/WebCore/workers/service/background-fetch/BackgroundFetchRegistration.h: Added. (WebCore::BackgroundFetchRegistration::id const): (WebCore::BackgroundFetchRegistration::uploadTotal const): (WebCore::BackgroundFetchRegistration::uploaded const): (WebCore::BackgroundFetchRegistration::downloadTotal const): (WebCore::BackgroundFetchRegistration::downloaded const): (WebCore::BackgroundFetchRegistration::result): (WebCore::BackgroundFetchRegistration::failureReason): (WebCore::BackgroundFetchRegistration::recordsAvailable): (WebCore::BackgroundFetchRegistration::registrationIdentifier const): * Source/WebCore/workers/service/background-fetch/BackgroundFetchRegistration.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchRequest.h: Added. (WebCore::BackgroundFetchRequest::isolatedCopy const): (WebCore::BackgroundFetchRequest::isolatedCopy): * Source/WebCore/workers/service/background-fetch/BackgroundFetchResult.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchResult.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchUIOptions.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchUIOptions.idl: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchUpdateUIEvent.cpp: Added. (WebCore::BackgroundFetchUpdateUIEvent::create): (WebCore::BackgroundFetchUpdateUIEvent::BackgroundFetchUpdateUIEvent): (WebCore::BackgroundFetchUpdateUIEvent::~BackgroundFetchUpdateUIEvent): (WebCore::BackgroundFetchUpdateUIEvent::updateUI): * Source/WebCore/workers/service/background-fetch/BackgroundFetchUpdateUIEvent.h: Added. * Source/WebCore/workers/service/background-fetch/BackgroundFetchUpdateUIEvent.idl: Added. * Source/WebCore/workers/service/background-fetch/ImageResource.h: Added. (WebCore::ImageResource::isolatedCopy const): (WebCore::ImageResource::isolatedCopy): * Source/WebCore/workers/service/background-fetch/ImageResource.idl: Added. * Source/WebCore/workers/service/background-fetch/ServiceWorkerGlobalScope+BackgroundFetchAPI.idl: Added. * Source/WebCore/workers/service/background-fetch/ServiceWorkerRegistration+BackgroundFetchAPI.idl: Added. * Source/WebCore/workers/service/background-fetch/ServiceWorkerRegistrationBackgroundFetchAPI.cpp: Added. (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::ServiceWorkerRegistrationBackgroundFetchAPI): (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::~ServiceWorkerRegistrationBackgroundFetchAPI): (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::backgroundFetch): (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::backgroundFetchIfCreated): (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::backgroundFetchManager): (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::from): (WebCore::ServiceWorkerRegistrationBackgroundFetchAPI::supplementName): * Source/WebCore/workers/service/background-fetch/ServiceWorkerRegistrationBackgroundFetchAPI.h: Added. Canonical link: https://commits.webkit.org/260532@main
- Loading branch information