[webkit-changes] [WebKit/WebKit] a350c1: Load WebArchives with non-persistent datastore

Matthew Finkel noreply at github.com
Tue Feb 13 11:55:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a350c1e9191addf59889f6466e051115ab36d38c
      https://github.com/WebKit/WebKit/commit/a350c1e9191addf59889f6466e051115ab36d38c
  Author: Matthew Finkel <sysrqb at apple.com>
  Date:   2024-02-13 (Tue, 13 Feb 2024)

  Changed paths:
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/ios/webarchive/loading/cache-expired-subresource-expected.txt
    M LayoutTests/platform/mac-wk1/TestExpectations
    M LayoutTests/platform/mac-wk1/webarchive/loading/test-loading-archive-subresource-expected.txt
    A LayoutTests/platform/mac-wk2/webarchive/loading/cache-expired-subresource-expected.txt
    M LayoutTests/platform/mac/TestExpectations
    M LayoutTests/platform/mac/fast/loader/webarchive-encoding-respected.html
    M LayoutTests/platform/mac/webarchive/loading/cache-expired-subresource-expected.txt
    A LayoutTests/platform/wk2/webarchive/loading/javascript-url-iframe-crash-expected.txt
    A LayoutTests/platform/wk2/webarchive/loading/object-expected.txt
    A LayoutTests/platform/wk2/webarchive/loading/test-loading-top-archive-expected.txt
    M LayoutTests/platform/wk2/webarchive/loading/video-in-webarchive-expected.txt
    M LayoutTests/webarchive/loading/cache-expired-subresource.html
    M LayoutTests/webarchive/loading/javascript-url-iframe-crash.html
    M LayoutTests/webarchive/loading/mainresource-null-mimetype-crash.html
    M LayoutTests/webarchive/loading/missing-data.html
    M LayoutTests/webarchive/loading/object.html
    M LayoutTests/webarchive/loading/test-loading-archive-subresource-expected.txt
    M LayoutTests/webarchive/loading/test-loading-archive-subresource-null-mimetype.html
    M LayoutTests/webarchive/loading/test-loading-archive-subresource.html
    M LayoutTests/webarchive/loading/test-loading-archive.html
    M LayoutTests/webarchive/loading/test-loading-top-archive.html
    M LayoutTests/webarchive/loading/video-in-webarchive.html
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/loader/DocumentLoader.cpp
    M Source/WebCore/loader/FrameLoader.cpp
    M Source/WebCore/loader/FrameLoader.h
    M Source/WebCore/platform/MIMETypeRegistry.cpp
    M Source/WebCore/platform/MIMETypeRegistry.h
    M Source/WebKit/Shared/LoadParameters.h
    M Source/WebKit/Shared/LoadParameters.serialization.in
    M Source/WebKit/Shared/WebBackForwardListItem.h
    M Source/WebKit/UIProcess/ProvisionalPageProxy.cpp
    M Source/WebKit/UIProcess/ProvisionalPageProxy.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
    A Tools/TestWebKitAPI/Tests/WebKitCocoa/download.example.webarchive
    M Tools/TestWebKitAPI/Tests/mac/LoadWebArchive.mm

  Log Message:
  -----------
  Load WebArchives with non-persistent datastore
https://bugs.webkit.org/show_bug.cgi?id=268724
rdar://122290562

Reviewed by Alex Christensen.

Let's try loading web archives in non-persistent datastores.

* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/ios/webarchive/loading/cache-expired-subresource-expected.txt:
* LayoutTests/platform/mac-wk1/webarchive/loading/test-loading-archive-subresource-expected.txt:
* LayoutTests/platform/mac-wk2/webarchive/loading/cache-expired-subresource-expected.txt: Copied from LayoutTests/platform/mac/webarchive/loading/cache-expired-subresource-expected.txt.
* LayoutTests/platform/mac/TestExpectations:
* LayoutTests/platform/mac/webarchive/loading/cache-expired-subresource-expected.txt:
* LayoutTests/platform/wk2/webarchive/loading/javascript-url-iframe-crash-expected.txt: Copied from LayoutTests/platform/wk2/webarchive/loading/video-in-webarchive-expected.txt.
* LayoutTests/platform/wk2/webarchive/loading/object-expected.txt: Copied from LayoutTests/platform/wk2/webarchive/loading/video-in-webarchive-expected.txt.
* LayoutTests/platform/wk2/webarchive/loading/test-loading-top-archive-expected.txt: Copied from LayoutTests/platform/wk2/webarchive/loading/video-in-webarchive-expected.txt.
* LayoutTests/platform/wk2/webarchive/loading/video-in-webarchive-expected.txt:
* LayoutTests/webarchive/loading/cache-expired-subresource.html:
* LayoutTests/webarchive/loading/javascript-url-iframe-crash.html:
* LayoutTests/webarchive/loading/mainresource-null-mimetype-crash.html:
* LayoutTests/webarchive/loading/missing-data.html:
* LayoutTests/webarchive/loading/object.html:
* LayoutTests/webarchive/loading/test-loading-archive-subresource-expected.txt:
* LayoutTests/webarchive/loading/test-loading-archive-subresource-null-mimetype.html:
* LayoutTests/webarchive/loading/test-loading-archive-subresource.html:
* LayoutTests/webarchive/loading/test-loading-archive.html:
* LayoutTests/webarchive/loading/test-loading-top-archive.html:
* LayoutTests/webarchive/loading/video-in-webarchive.html:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::disallowWebArchive const):
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadWithNavigationAction):
(WebCore::FrameLoader::loadDifferentDocumentItem):
* Source/WebCore/loader/FrameLoader.h:
* Source/WebCore/platform/MIMETypeRegistry.cpp:
(WebCore::MIMETypeRegistry::isWebArchiveMIMEType):
* Source/WebCore/platform/MIMETypeRegistry.h:
* Source/WebKit/Shared/LoadParameters.h:
* Source/WebKit/Shared/LoadParameters.serialization.in:
* Source/WebKit/Shared/WebBackForwardListItem.h:
(WebKit::WebBackForwardListItem::dataStoreForWebArchive const):
(WebKit::WebBackForwardListItem::setDataStoreForWebArchive):
* Source/WebKit/UIProcess/ProvisionalPageProxy.cpp:
(WebKit::ProvisionalPageProxy::ProvisionalPageProxy):
(WebKit::ProvisionalPageProxy::backForwardAddItem):
* Source/WebKit/UIProcess/ProvisionalPageProxy.h:
(WebKit::ProvisionalPageProxy::replacedDataStoreForWebArchiveLoad const):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::swapToProvisionalPage):
(WebKit::WebPageProxy::loadRequestWithNavigationShared):
(WebKit::WebPageProxy::loadFile):
(WebKit::WebPageProxy::receivedNavigationActionPolicyDecision):
(WebKit::WebPageProxy::continueNavigationInNewProcess):
(WebKit::WebPageProxy::triggerBrowsingContextGroupSwitchForNavigation):
(WebKit::WebPageProxy::backForwardAddItem):
(WebKit::WebPageProxy::backForwardAddItemShared):
(WebKit::WebPageProxy::queryPermission):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::loadRequest):
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/download.example.webarchive: Added.
* Tools/TestWebKitAPI/Tests/mac/LoadWebArchive.mm:
(TestWebKitAPI::TEST):
(TestWebKitAPI::constructArchive):

Canonical link: https://commits.webkit.org/274565@main




More information about the webkit-changes mailing list