[webkit-changes] [WebKit/WebKit] c65efd: Implement support for the Clear-Site-Data HTTP header
Chris Dumez
noreply at github.com
Wed Sep 21 20:24:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c65efd2b205ccaef913dff861a6e354dbdb9a212
https://github.com/WebKit/WebKit/commit/c65efd2b205ccaef913dff861a6e354dbdb9a212
Author: Chris Dumez <cdumez at apple.com>
Date: 2022-09-21 (Wed, 21 Sep 2022)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/imported/w3c/resources/import-expectations.json
M LayoutTests/imported/w3c/resources/resource-files.json
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/META.yml
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/executionContexts.sub-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/executionContexts.sub.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation-insecure-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation-insecure.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation.https-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation.https.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/resource-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/resource.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/storage.https-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/storage.https.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/controlled-endpoint.py
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/echo-clear-site-data.py
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/iframe_executionContexts.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/page_using_service_worker.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/page_with_resource.sub.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/send_report.html
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/service_worker.js
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/test_utils.sub.js
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/w3c-import.log
A LayoutTests/imported/w3c/web-platform-tests/clear-site-data/w3c-import.log
M LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/unregister-immediately-during-extendable-events.https-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/unregister-immediately.https-expected.txt
A LayoutTests/platform/glib/imported/w3c/web-platform-tests/clear-site-data/navigation-insecure-expected.txt
A LayoutTests/platform/glib/imported/w3c/web-platform-tests/clear-site-data/resource-expected.txt
M LayoutTests/platform/ios-wk2/TestExpectations
M LayoutTests/platform/mac-wk1/TestExpectations
M LayoutTests/platform/mac-wk2/TestExpectations
M LayoutTests/platform/win/TestExpectations
M Source/WebCore/page/SecurityOrigin.h
M Source/WebCore/platform/network/HTTPHeaderNames.in
M Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.cpp
M Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.h
M Source/WebKit/NetworkProcess/NetworkProcess.h
M Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp
M Source/WebKit/NetworkProcess/NetworkResourceLoader.h
M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h
M Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp
M Source/WebKit/WebProcess/Network/NetworkProcessConnection.h
M Source/WebKit/WebProcess/Network/NetworkProcessConnection.messages.in
M Source/WebKit/WebProcess/WebProcess.h
Log Message:
-----------
Implement support for the Clear-Site-Data HTTP header
https://bugs.webkit.org/show_bug.cgi?id=203215
Reviewed by Darin Adler.
Implement support for the Clear-Site-Data HTTP header:
- https://w3c.github.io/webappsec-clear-site-data
All header values are implemented expect for "executionContexts".
Firefox and Chrome already ship this.
* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/resources/import-expectations.json:
* LayoutTests/imported/w3c/resources/resource-files.json:
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/META.yml: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/executionContexts.sub-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/executionContexts.sub.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation-insecure-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation-insecure.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation.https-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/navigation.https.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/resource-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/resource.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/storage.https-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/storage.https.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/controlled-endpoint.py: Added.
(main):
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/echo-clear-site-data.py: Added.
(main):
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/iframe_executionContexts.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/page_using_service_worker.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/page_with_resource.sub.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/send_report.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/service_worker.js: Added.
(e.url.pathname.match):
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/test_utils.sub.js: Added.
(TestUtils.STORAGE.string_appeared_here):
(string_appeared_here):
(TestUtils.DATATYPES.string_appeared_here):
(TestUtils.COMBINATIONS):
(TestUtils.getClearSiteDataUrl):
(TestUtils.getPageWithResourceUrl):
(TestUtils):
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/support/w3c-import.log: Added.
* LayoutTests/imported/w3c/web-platform-tests/clear-site-data/w3c-import.log: Added.
* LayoutTests/platform/ios-wk2/TestExpectations:
* LayoutTests/platform/mac-wk1/TestExpectations:
* LayoutTests/platform/mac-wk2/TestExpectations:
* LayoutTests/platform/win/TestExpectations:
* Source/WebCore/page/SecurityOrigin.h:
* Source/WebCore/platform/network/HTTPHeaderNames.in:
* Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.cpp:
(WebKit::NetworkConnectionToWebProcess::deleteWebsiteDataForOrigins):
* Source/WebKit/NetworkProcess/NetworkConnectionToWebProcess.h:
* Source/WebKit/NetworkProcess/NetworkProcess.h:
* Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::processClearSiteDataHeader):
(WebKit::NetworkResourceLoader::didReceiveResponse):
* Source/WebKit/NetworkProcess/NetworkResourceLoader.h:
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::computeNetworkProcessAccessTypeForDataFetch):
(WebKit::computeWebProcessAccessTypeForDataFetch):
(WebKit::computeNetworkProcessAccessTypeForDataRemoval):
(WebKit::WebsiteDataStore::computeWebProcessAccessTypeForDataRemoval):
(WebKit::computeWebProcessAccessTypeForDataRemoval): Deleted.
* Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h:
* Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp:
(WebKit::NetworkProcessConnection::deleteWebsiteDataForOrigins):
* Source/WebKit/WebProcess/Network/NetworkProcessConnection.h:
* Source/WebKit/WebProcess/Network/NetworkProcessConnection.messages.in:
* Source/WebKit/WebProcess/WebProcess.h:
Canonical link: https://commits.webkit.org/254745@main
More information about the webkit-changes
mailing list