Diff
Modified: trunk/Source/WebKit/CMakeLists.txt (295364 => 295365)
--- trunk/Source/WebKit/CMakeLists.txt 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/CMakeLists.txt 2022-06-07 21:31:50 UTC (rev 295365)
@@ -231,7 +231,6 @@
UIProcess/SpeechRecognitionRemoteRealtimeMediaSourceManager
UIProcess/SpeechRecognitionServer
UIProcess/VisitedLinkStore
- UIProcess/WebCookieManagerProxy
UIProcess/WebFullScreenManagerProxy
UIProcess/WebGeolocationManagerProxy
UIProcess/WebLockRegistryProxy
Modified: trunk/Source/WebKit/DerivedSources-input.xcfilelist (295364 => 295365)
--- trunk/Source/WebKit/DerivedSources-input.xcfilelist 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/DerivedSources-input.xcfilelist 2022-06-07 21:31:50 UTC (rev 295365)
@@ -160,7 +160,6 @@
$(PROJECT_DIR)/UIProcess/ViewGestureController.messages.in
$(PROJECT_DIR)/UIProcess/VisitedLinkStore.messages.in
$(PROJECT_DIR)/UIProcess/WebAuthentication/WebAuthenticatorCoordinatorProxy.messages.in
-$(PROJECT_DIR)/UIProcess/WebCookieManagerProxy.messages.in
$(PROJECT_DIR)/UIProcess/WebFullScreenManagerProxy.messages.in
$(PROJECT_DIR)/UIProcess/WebGeolocationManagerProxy.messages.in
$(PROJECT_DIR)/UIProcess/WebLockRegistryProxy.messages.in
Modified: trunk/Source/WebKit/DerivedSources-output.xcfilelist (295364 => 295365)
--- trunk/Source/WebKit/DerivedSources-output.xcfilelist 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/DerivedSources-output.xcfilelist 2022-06-07 21:31:50 UTC (rev 295365)
@@ -502,9 +502,6 @@
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebCookieManagerMessageReceiver.cpp
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebCookieManagerMessages.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebCookieManagerMessagesReplies.h
-$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebCookieManagerProxyMessageReceiver.cpp
-$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebCookieManagerProxyMessages.h
-$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebCookieManagerProxyMessagesReplies.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebDeviceOrientationUpdateProviderMessageReceiver.cpp
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebDeviceOrientationUpdateProviderMessages.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebKit/WebDeviceOrientationUpdateProviderMessagesReplies.h
Modified: trunk/Source/WebKit/DerivedSources.make (295364 => 295365)
--- trunk/Source/WebKit/DerivedSources.make 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/DerivedSources.make 2022-06-07 21:31:50 UTC (rev 295365)
@@ -173,7 +173,6 @@
UIProcess/Cocoa/PlaybackSessionManagerProxy \
UIProcess/Cocoa/UserMediaCaptureManagerProxy \
UIProcess/Cocoa/VideoFullscreenManagerProxy \
- UIProcess/WebCookieManagerProxy \
UIProcess/ViewGestureController \
UIProcess/WebProcessProxy \
UIProcess/Automation/WebAutomationSession \
Modified: trunk/Source/WebKit/NetworkProcess/Cookies/WebCookieManager.cpp (295364 => 295365)
--- trunk/Source/WebKit/NetworkProcess/Cookies/WebCookieManager.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/NetworkProcess/Cookies/WebCookieManager.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -28,7 +28,6 @@
#include "NetworkProcess.h"
#include "WebCookieManagerMessages.h"
-#include "WebCookieManagerProxyMessages.h"
#include "WebCoreArgumentCoders.h"
#include <WebCore/Cookie.h>
#include <WebCore/CookieStorage.h>
@@ -130,7 +129,7 @@
void WebCookieManager::notifyCookiesDidChange(PAL::SessionID sessionID)
{
ASSERT(RunLoop::isMain());
- m_process.send(Messages::WebCookieManagerProxy::CookiesDidChange(sessionID), 0);
+ m_process.send(Messages::NetworkProcessProxy::CookiesDidChange(sessionID), 0);
}
void WebCookieManager::startObservingCookieChanges(PAL::SessionID sessionID)
Modified: trunk/Source/WebKit/Sources.txt (295364 => 295365)
--- trunk/Source/WebKit/Sources.txt 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/Sources.txt 2022-06-07 21:31:50 UTC (rev 295365)
@@ -434,7 +434,6 @@
UIProcess/WebContextInjectedBundleClient.cpp
UIProcess/WebContextMenuListenerProxy.cpp
UIProcess/WebContextMenuProxy.cpp
-UIProcess/WebCookieManagerProxy.cpp
UIProcess/WebDataListSuggestionsDropdown.cpp
UIProcess/WebDateTimePicker.cpp
UIProcess/WebEditCommandProxy.cpp
Modified: trunk/Source/WebKit/SourcesGTK.txt (295364 => 295365)
--- trunk/Source/WebKit/SourcesGTK.txt 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/SourcesGTK.txt 2022-06-07 21:31:50 UTC (rev 295365)
@@ -215,6 +215,8 @@
UIProcess/API/gtk/WebKitWebViewDialog.cpp @no-unify
UIProcess/API/gtk/WebKitWebViewGtk.cpp @no-unify
+UIProcess/API/soup/HTTPCookieStoreSoup.cpp
+
UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp
@@ -281,7 +283,6 @@
UIProcess/gtk/WebTextChecker.cpp
UIProcess/gtk/WebTextCheckerClient.cpp
-UIProcess/soup/WebCookieManagerProxySoup.cpp
UIProcess/soup/WebProcessPoolSoup.cpp
WebProcess/GPU/graphics/gbm/RemoteGraphicsContextGLProxyGBM.cpp
Modified: trunk/Source/WebKit/SourcesWPE.txt (295364 => 295365)
--- trunk/Source/WebKit/SourcesWPE.txt 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/SourcesWPE.txt 2022-06-07 21:31:50 UTC (rev 295365)
@@ -183,6 +183,8 @@
UIProcess/API/glib/WebKitWindowProperties.cpp @no-unify
UIProcess/API/glib/WebKitWebsitePolicies.cpp @no-unify
+UIProcess/API/soup/HTTPCookieStoreSoup.cpp
+
UIProcess/API/wpe/InputMethodFilterWPE.cpp @no-unify
UIProcess/API/wpe/PageClientImpl.cpp @no-unify
UIProcess/API/wpe/TouchGestureController.cpp @no-unify
@@ -226,7 +228,6 @@
UIProcess/linux/MemoryPressureMonitor.cpp
-UIProcess/soup/WebCookieManagerProxySoup.cpp
UIProcess/soup/WebProcessPoolSoup.cpp
UIProcess/wpe/WebPageProxyWPE.cpp
Modified: trunk/Source/WebKit/UIProcess/API/APIHTTPCookieStore.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/API/APIHTTPCookieStore.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/API/APIHTTPCookieStore.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -26,11 +26,8 @@
#include "config.h"
#include "APIHTTPCookieStore.h"
-#if PLATFORM(IOS_FAMILY)
-#include "DefaultWebBrowserChecks.h"
-#endif
-
-#include "WebCookieManagerProxy.h"
+#include "NetworkProcessMessages.h"
+#include "WebCookieManagerMessages.h"
#include "WebProcessPool.h"
#include "WebsiteDataStore.h"
#include "WebsiteDataStoreParameters.h"
@@ -39,12 +36,17 @@
#include <WebCore/HTTPCookieAcceptPolicy.h>
#include <WebCore/NetworkStorageSession.h>
+#if PLATFORM(IOS_FAMILY)
+#include "DefaultWebBrowserChecks.h"
+#endif
+
using namespace WebKit;
namespace API {
HTTPCookieStore::HTTPCookieStore(WebKit::WebsiteDataStore& websiteDataStore)
- : m_owningDataStore(websiteDataStore)
+ : m_sessionID(websiteDataStore.sessionID())
+ , m_owningDataStore(websiteDataStore)
{
}
@@ -51,8 +53,6 @@
HTTPCookieStore::~HTTPCookieStore()
{
ASSERT(m_observers.computesEmpty());
- ASSERT(!m_observedCookieManagerProxy);
- ASSERT(!m_cookieManagerProxyObserver);
}
void HTTPCookieStore::filterAppBoundCookies(Vector<WebCore::Cookie>&& cookies, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&& completionHandler)
@@ -78,109 +78,101 @@
void HTTPCookieStore::cookies(CompletionHandler<void(const Vector<WebCore::Cookie>&)>&& completionHandler)
{
- if (!m_owningDataStore)
- return completionHandler({ });
- auto& cookieManager = m_owningDataStore->networkProcess().cookieManager();
- cookieManager.getAllCookies(m_owningDataStore->sessionID(), [this, protectedThis = Ref { *this }, completionHandler = WTFMove(completionHandler)] (Vector<WebCore::Cookie>&& cookies) mutable {
- filterAppBoundCookies(WTFMove(cookies), WTFMove(completionHandler));
- });
+ if (auto* networkProcess = networkProcessIfExists()) {
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetAllCookies(m_sessionID), [this, protectedThis = Ref { *this }, completionHandler = WTFMove(completionHandler)] (Vector<WebCore::Cookie>&& cookies) mutable {
+ filterAppBoundCookies(WTFMove(cookies), WTFMove(completionHandler));
+ });
+ } else
+ completionHandler({ });
}
void HTTPCookieStore::cookiesForURL(WTF::URL&& url, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&& completionHandler)
{
- if (!m_owningDataStore)
- return completionHandler({ });
- auto& cookieManager = m_owningDataStore->networkProcess().cookieManager();
- cookieManager.getCookies(m_owningDataStore->sessionID(), url, [this, protectedThis = Ref { *this }, completionHandler = WTFMove(completionHandler)] (Vector<WebCore::Cookie>&& cookies) mutable {
- filterAppBoundCookies(WTFMove(cookies), WTFMove(completionHandler));
- });
+ if (auto* networkProcess = networkProcessIfExists()) {
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetCookies(m_sessionID, url), [this, protectedThis = Ref { *this }, completionHandler = WTFMove(completionHandler)] (Vector<WebCore::Cookie>&& cookies) mutable {
+ filterAppBoundCookies(WTFMove(cookies), WTFMove(completionHandler));
+ });
+ } else
+ completionHandler({ });
}
void HTTPCookieStore::setCookies(Vector<WebCore::Cookie>&& cookies, CompletionHandler<void()>&& completionHandler)
{
filterAppBoundCookies(WTFMove(cookies), [this, protectedThis = Ref { *this }, completionHandler = WTFMove(completionHandler)] (auto&& appBoundCookies) mutable {
- if (!m_owningDataStore)
- return;
- auto& cookieManager = m_owningDataStore->networkProcess().cookieManager();
- cookieManager.setCookies(m_owningDataStore->sessionID(), appBoundCookies, WTFMove(completionHandler));
+ if (auto* networkProcess = networkProcessLaunchingIfNecessary())
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::SetCookie(m_sessionID, appBoundCookies), WTFMove(completionHandler));
+ else
+ completionHandler();
});
}
void HTTPCookieStore::deleteCookie(const WebCore::Cookie& cookie, CompletionHandler<void()>&& completionHandler)
{
- if (!m_owningDataStore)
- return completionHandler();
- auto& cookieManager = m_owningDataStore->networkProcess().cookieManager();
- cookieManager.deleteCookie(m_owningDataStore->sessionID(), cookie, WTFMove(completionHandler));
+ if (auto* networkProcess = networkProcessIfExists())
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteCookie(m_sessionID, cookie), WTFMove(completionHandler));
+ else
+ completionHandler();
}
void HTTPCookieStore::deleteAllCookies(CompletionHandler<void()>&& completionHandler)
{
- if (!m_owningDataStore)
- return completionHandler();
- auto& cookieManager = m_owningDataStore->networkProcess().cookieManager();
- cookieManager.deleteAllCookies(m_owningDataStore->sessionID(), WTFMove(completionHandler));
+ if (auto* networkProcess = networkProcessIfExists())
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteAllCookies(m_sessionID), WTFMove(completionHandler));
+ else
+ completionHandler();
}
+void HTTPCookieStore::deleteCookiesForHostnames(const Vector<WTF::String>& hostnames, CompletionHandler<void()>&& completionHandler)
+{
+ if (auto* networkProcess = networkProcessIfExists())
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteCookiesForHostnames(m_sessionID, hostnames), WTFMove(completionHandler));
+ else
+ completionHandler();
+}
+
void HTTPCookieStore::setHTTPCookieAcceptPolicy(WebCore::HTTPCookieAcceptPolicy policy, CompletionHandler<void()>&& completionHandler)
{
- if (!m_owningDataStore)
- return completionHandler();
- auto& cookieManager = m_owningDataStore->networkProcess().cookieManager();
- cookieManager.setHTTPCookieAcceptPolicy(m_owningDataStore->sessionID(), policy, WTFMove(completionHandler));
+ if (auto* networkProcess = networkProcessLaunchingIfNecessary())
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::SetHTTPCookieAcceptPolicy(policy), WTFMove(completionHandler));
+ else
+ completionHandler();
}
+void HTTPCookieStore::getHTTPCookieAcceptPolicy(CompletionHandler<void(const WebCore::HTTPCookieAcceptPolicy&)>&& completionHandler)
+{
+ if (auto* networkProcess = networkProcessLaunchingIfNecessary())
+ networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetHTTPCookieAcceptPolicy(m_sessionID), WTFMove(completionHandler));
+ else
+ completionHandler({ });
+}
+
void HTTPCookieStore::flushCookies(CompletionHandler<void()>&& completionHandler)
{
- if (!m_owningDataStore)
- return completionHandler();
- m_owningDataStore->flushCookies(WTFMove(completionHandler));
+ if (auto* networkProcess = networkProcessIfExists())
+ networkProcess->sendWithAsyncReply(Messages::NetworkProcess::FlushCookies(m_sessionID), WTFMove(completionHandler));
+ else
+ completionHandler();
}
-class APIWebCookieManagerProxyObserver : public WebCookieManagerProxy::Observer {
- WTF_MAKE_FAST_ALLOCATED;
-public:
- explicit APIWebCookieManagerProxyObserver(API::HTTPCookieStore& cookieStore)
- : m_cookieStore(cookieStore)
- {
- }
-
-private:
- void cookiesDidChange() final
- {
- m_cookieStore.cookiesDidChange();
- }
-
- API::HTTPCookieStore& m_cookieStore;
-};
-
void HTTPCookieStore::registerObserver(Observer& observer)
{
+ bool wasObserving = !m_observers.computesEmpty();
m_observers.add(observer);
-
- if (m_cookieManagerProxyObserver || !m_owningDataStore)
+ if (wasObserving)
return;
- ASSERT(!m_observedCookieManagerProxy);
-
- m_cookieManagerProxyObserver = makeUnique<APIWebCookieManagerProxyObserver>(*this);
-
- m_observedCookieManagerProxy = m_owningDataStore->networkProcess().cookieManager();
- m_observedCookieManagerProxy->registerObserver(m_owningDataStore->sessionID(), *m_cookieManagerProxyObserver);
+ if (auto* networkProcess = networkProcessLaunchingIfNecessary())
+ networkProcess->send(Messages::WebCookieManager::StartObservingCookieChanges(m_sessionID), 0);
}
void HTTPCookieStore::unregisterObserver(Observer& observer)
{
m_observers.remove(observer);
-
if (!m_observers.computesEmpty())
return;
- if (m_observedCookieManagerProxy && m_owningDataStore)
- m_observedCookieManagerProxy->unregisterObserver(m_owningDataStore->sessionID(), *m_cookieManagerProxyObserver);
-
- m_observedCookieManagerProxy = nullptr;
- m_cookieManagerProxyObserver = nullptr;
+ if (auto* networkProcess = networkProcessIfExists())
+ networkProcess->send(Messages::WebCookieManager::StopObservingCookieChanges(m_sessionID), 0);
}
void HTTPCookieStore::cookiesDidChange()
@@ -188,5 +180,19 @@
for (auto& observer : m_observers)
observer.cookiesDidChange(*this);
}
-
+
+WebKit::NetworkProcessProxy* HTTPCookieStore::networkProcessIfExists()
+{
+ if (!m_owningDataStore)
+ return nullptr;
+ return m_owningDataStore->networkProcessIfExists();
+}
+
+WebKit::NetworkProcessProxy* HTTPCookieStore::networkProcessLaunchingIfNecessary()
+{
+ if (!m_owningDataStore)
+ return nullptr;
+ return &m_owningDataStore->networkProcess();
+}
+
} // namespace API
Modified: trunk/Source/WebKit/UIProcess/API/APIHTTPCookieStore.h (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/API/APIHTTPCookieStore.h 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/API/APIHTTPCookieStore.h 2022-06-07 21:31:50 UTC (rev 295365)
@@ -27,11 +27,16 @@
#include "APIObject.h"
#include <WebCore/Cookie.h>
+#include <pal/SessionID.h>
#include <wtf/CompletionHandler.h>
#include <wtf/Forward.h>
#include <wtf/WeakHashSet.h>
#include <wtf/WeakPtr.h>
+#if USE(SOUP)
+#include "SoupCookiePersistentStorageType.h"
+#endif
+
namespace WebCore {
struct Cookie;
enum class HTTPCookieAcceptPolicy : uint8_t;
@@ -38,14 +43,12 @@
}
namespace WebKit {
-class WebCookieManagerProxy;
+class NetworkProcessProxy;
class WebsiteDataStore;
}
namespace API {
-class APIWebCookieManagerProxyObserver;
-
class HTTPCookieStore final : public ObjectImpl<Object::Type::HTTPCookieStore> {
public:
static Ref<HTTPCookieStore> create(WebKit::WebsiteDataStore& websiteDataStore)
@@ -59,9 +62,11 @@
void cookiesForURL(WTF::URL&&, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&&);
void setCookies(Vector<WebCore::Cookie>&&, CompletionHandler<void()>&&);
void deleteCookie(const WebCore::Cookie&, CompletionHandler<void()>&&);
+ void deleteCookiesForHostnames(const Vector<WTF::String>&, CompletionHandler<void()>&&);
void deleteAllCookies(CompletionHandler<void()>&&);
void setHTTPCookieAcceptPolicy(WebCore::HTTPCookieAcceptPolicy, CompletionHandler<void()>&&);
+ void getHTTPCookieAcceptPolicy(CompletionHandler<void(const WebCore::HTTPCookieAcceptPolicy&)>&&);
void flushCookies(CompletionHandler<void()>&&);
class Observer : public CanMakeWeakPtr<Observer> {
@@ -77,13 +82,18 @@
void filterAppBoundCookies(Vector<WebCore::Cookie>&&, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&&);
+#if USE(SOUP)
+ void setCookiePersistentStorage(const WTF::String& storagePath, WebKit::SoupCookiePersistentStorageType);
+#endif
+
private:
HTTPCookieStore(WebKit::WebsiteDataStore&);
-
+ WebKit::NetworkProcessProxy* networkProcessIfExists();
+ WebKit::NetworkProcessProxy* networkProcessLaunchingIfNecessary();
+
+ PAL::SessionID m_sessionID;
WeakPtr<WebKit::WebsiteDataStore> m_owningDataStore;
WeakHashSet<Observer> m_observers;
- WeakPtr<WebKit::WebCookieManagerProxy> m_observedCookieManagerProxy;
- std::unique_ptr<APIWebCookieManagerProxyObserver> m_cookieManagerProxyObserver;
};
}
Modified: trunk/Source/WebKit/UIProcess/API/C/WKAPICast.h (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/API/C/WKAPICast.h 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/API/C/WKAPICast.h 2022-06-07 21:31:50 UTC (rev 295365)
@@ -87,7 +87,6 @@
class WebBackForwardListItem;
class WebColorPickerResultListenerProxy;
class WebContextMenuListenerProxy;
-class WebCookieManagerProxy;
class WebCredential;
class WebFormSubmissionListenerProxy;
class WebFramePolicyListenerProxy;
@@ -121,7 +120,6 @@
WK_ADD_API_MAPPING(WKContextRef, WebProcessPool)
WK_ADD_API_MAPPING(WKContextConfigurationRef, API::ProcessPoolConfiguration)
WK_ADD_API_MAPPING(WKContextMenuListenerRef, WebContextMenuListenerProxy)
-WK_ADD_API_MAPPING(WKCookieManagerRef, WebCookieManagerProxy)
WK_ADD_API_MAPPING(WKCredentialRef, WebCredential)
WK_ADD_API_MAPPING(WKDownloadRef, DownloadProxy)
WK_ADD_API_MAPPING(WKFormSubmissionListenerRef, WebFormSubmissionListenerProxy)
Modified: trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -51,7 +51,6 @@
#include <wtf/text/WTFString.h>
// Supplements
-#include "WebCookieManagerProxy.h"
#include "WebGeolocationManagerProxy.h"
#include "WebNotificationManagerProxy.h"
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm 2022-06-07 21:31:50 UTC (rev 295365)
@@ -40,7 +40,6 @@
#import "WKWebsiteDataStoreInternal.h"
#import "WebBackForwardCache.h"
#import "WebCertificateInfo.h"
-#import "WebCookieManagerProxy.h"
#import "WebNotificationManagerProxy.h"
#import "WebProcessCache.h"
#import "WebProcessMessages.h"
Modified: trunk/Source/WebKit/UIProcess/API/glib/WebKitCookieManager.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/API/glib/WebKitCookieManager.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/API/glib/WebKitCookieManager.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -21,9 +21,9 @@
#include "config.h"
#include "WebKitCookieManager.h"
+#include "APIHTTPCookieStore.h"
#include "NetworkProcessProxy.h"
#include "SoupCookiePersistentStorageType.h"
-#include "WebCookieManagerProxy.h"
#include "WebKitCookieManagerPrivate.h"
#include "WebKitEnumTypes.h"
#include "WebKitWebsiteDataManagerPrivate.h"
@@ -56,13 +56,13 @@
LAST_SIGNAL
};
-class WebCookieManagerProxyObserver : public WebCookieManagerProxy::Observer {
+class CookieStoreObserver : public API::HTTPCookieStore::Observer {
WTF_MAKE_FAST_ALLOCATED;
public:
- WebCookieManagerProxyObserver(Function<void()>&& callback)
+ CookieStoreObserver(Function<void()>&& callback)
: m_callback(WTFMove(callback)) { }
private:
- void cookiesDidChange() final
+ void cookiesDidChange(API::HTTPCookieStore&) final
{
m_callback();
}
@@ -71,10 +71,10 @@
};
struct _WebKitCookieManagerPrivate {
- WebCookieManagerProxy& cookieManager() const
+ API::HTTPCookieStore& cookieStore() const
{
ASSERT(dataManager);
- return webkitWebsiteDataManagerGetDataStore(dataManager).networkProcess().cookieManager();
+ return webkitWebsiteDataManagerGetDataStore(dataManager).cookieStore();
}
PAL::SessionID sessionID() const
@@ -85,12 +85,12 @@
~_WebKitCookieManagerPrivate()
{
- cookieManager().unregisterObserver(sessionID(), *m_observer);
+ cookieStore().unregisterObserver(*m_observer);
}
WebKitWebsiteDataManager* dataManager;
- std::unique_ptr<WebCookieManagerProxyObserver> m_observer;
+ std::unique_ptr<CookieStoreObserver> m_observer;
};
static guint signals[LAST_SIGNAL] = { 0, };
@@ -161,10 +161,10 @@
{
WebKitCookieManager* manager = WEBKIT_COOKIE_MANAGER(g_object_new(WEBKIT_TYPE_COOKIE_MANAGER, nullptr));
manager->priv->dataManager = dataManager;
- manager->priv->m_observer = makeUnique<WebCookieManagerProxyObserver>([manager] {
+ manager->priv->m_observer = makeUnique<CookieStoreObserver>([manager] {
g_signal_emit(manager, signals[CHANGED], 0);
});
- manager->priv->cookieManager().registerObserver(manager->priv->sessionID(), *manager->priv->m_observer);
+ manager->priv->cookieStore().registerObserver(*manager->priv->m_observer);
return manager;
}
@@ -238,7 +238,7 @@
GRefPtr<GTask> task = adoptGRef(g_task_new(manager, cancellable, callback, userData));
- manager->priv->cookieManager().getHTTPCookieAcceptPolicy(manager->priv->sessionID(), [task = WTFMove(task)](WebCore::HTTPCookieAcceptPolicy policy) {
+ manager->priv->cookieStore().getHTTPCookieAcceptPolicy([task = WTFMove(task)](WebCore::HTTPCookieAcceptPolicy policy) {
g_task_return_int(task.get(), toWebKitCookieAcceptPolicy(policy));
});
}
@@ -283,7 +283,7 @@
g_return_if_fail(cookie);
GRefPtr<GTask> task = adoptGRef(g_task_new(manager, cancellable, callback, userData));
- manager->priv->cookieManager().setCookies(manager->priv->sessionID(), { WebCore::Cookie(cookie) }, [task = WTFMove(task)]() {
+ manager->priv->cookieStore().setCookies({ WebCore::Cookie(cookie) }, [task = WTFMove(task)]() {
g_task_return_boolean(task.get(), TRUE);
});
}
@@ -330,7 +330,7 @@
g_return_if_fail(uri);
GRefPtr<GTask> task = adoptGRef(g_task_new(manager, cancellable, callback, userData));
- manager->priv->cookieManager().getCookies(manager->priv->sessionID(), URL { String::fromUTF8(uri) }, [task = WTFMove(task)](const Vector<WebCore::Cookie>& cookies) {
+ manager->priv->cookieStore().cookiesForURL(URL { String::fromUTF8(uri) }, [task = WTFMove(task)](const Vector<WebCore::Cookie>& cookies) {
GList* cookiesList = nullptr;
for (auto& cookie : cookies)
cookiesList = g_list_prepend(cookiesList, cookie.toSoupCookie());
@@ -384,7 +384,7 @@
g_return_if_fail(cookie);
GRefPtr<GTask> task = adoptGRef(g_task_new(manager, cancellable, callback, userData));
- manager->priv->cookieManager().deleteCookie(manager->priv->sessionID(), WebCore::Cookie(cookie), [task = WTFMove(task)]() {
+ manager->priv->cookieStore().deleteCookie(WebCore::Cookie(cookie), [task = WTFMove(task)]() {
g_task_return_boolean(task.get(), TRUE);
});
}
Copied: trunk/Source/WebKit/UIProcess/API/soup/HTTPCookieStoreSoup.cpp (from rev 295364, trunk/Source/WebKit/UIProcess/soup/WebCookieManagerProxySoup.cpp) (0 => 295365)
--- trunk/Source/WebKit/UIProcess/API/soup/HTTPCookieStoreSoup.cpp (rev 0)
+++ trunk/Source/WebKit/UIProcess/API/soup/HTTPCookieStoreSoup.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2012 Igalia S.L.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "APIHTTPCookieStore.h"
+
+#include "NetworkProcess.h"
+#include "NetworkProcessProxy.h"
+#include "SoupCookiePersistentStorageType.h"
+#include "WebCookieManagerMessages.h"
+
+namespace API {
+
+void HTTPCookieStore::setCookiePersistentStorage(const WTF::String& storagePath, WebKit::SoupCookiePersistentStorageType storageType)
+{
+ if (auto* networkProcess = networkProcessIfExists())
+ networkProcess->send(Messages::WebCookieManager::SetCookiePersistentStorage(m_sessionID, storagePath, storageType), 0);
+}
+
+} // namespace API
Modified: trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -29,6 +29,7 @@
#include "APIArray.h"
#include "APIAutomationSessionClient.h"
+#include "APIHTTPCookieStore.h"
#include "APINavigation.h"
#include "APIOpenPanelParameters.h"
#include "AutomationProtocolObjects.h"
@@ -36,7 +37,6 @@
#include "WebAutomationSessionMacros.h"
#include "WebAutomationSessionMessages.h"
#include "WebAutomationSessionProxyMessages.h"
-#include "WebCookieManagerProxy.h"
#include "WebFullScreenManagerProxy.h"
#include "WebInspectorUIProxy.h"
#include "WebOpenPanelResultListenerProxy.h"
@@ -1471,8 +1471,8 @@
cookie.sameSite = toWebCoreSameSitePolicy(*parsedSameSite);
- WebCookieManagerProxy& cookieManager = page->websiteDataStore().networkProcess().cookieManager();
- cookieManager.setCookies(page->websiteDataStore().sessionID(), { cookie }, [callback]() {
+ auto& cookieStore = page->websiteDataStore().cookieStore();
+ cookieStore.setCookies({ cookie }, [callback]() {
callback->sendSuccess();
});
}
@@ -1488,8 +1488,8 @@
String host = activeURL.host().toString();
- WebCookieManagerProxy& cookieManager = page->websiteDataStore().networkProcess().cookieManager();
- cookieManager.deleteCookiesForHostnames(page->websiteDataStore().sessionID(), { host, domainByAddingDotPrefixIfNeeded(host) }, [] { });
+ auto& cookieStore = page->websiteDataStore().cookieStore();
+ cookieStore.deleteCookiesForHostnames({ host, domainByAddingDotPrefixIfNeeded(host) }, [] { });
return { };
}
Modified: trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -30,6 +30,7 @@
#include "APICustomProtocolManagerClient.h"
#include "APIDataTask.h"
#include "APIDataTaskClient.h"
+#include "APIHTTPCookieStore.h"
#include "APINavigation.h"
#include "AuthenticationChallengeProxy.h"
#include "AuthenticationManager.h"
@@ -49,7 +50,6 @@
#include "ShouldGrandfatherStatistics.h"
#include "StorageAccessStatus.h"
#include "WebCompiledContentRuleList.h"
-#include "WebCookieManagerProxy.h"
#include "WebNotificationManagerProxy.h"
#include "WebPageMessages.h"
#include "WebPageProxy.h"
@@ -239,7 +239,6 @@
, m_customProtocolManagerClient(makeUniqueRef<API::CustomProtocolManagerClient>())
#endif
, m_throttler(*this, WebProcessPool::anyProcessPoolNeedsUIBackgroundAssertion())
- , m_cookieManager(makeUniqueRef<WebCookieManagerProxy>(*this))
{
RELEASE_LOG(Process, "%p - NetworkProcessProxy::NetworkProcessProxy", this);
@@ -1389,11 +1388,6 @@
send(Messages::NetworkProcess::ProcessDidResume(reason == ResumeReason::ForegroundActivity), 0);
}
-void NetworkProcessProxy::flushCookies(PAL::SessionID sessionID, CompletionHandler<void()>&& completionHandler)
-{
- sendWithAsyncReply(Messages::NetworkProcess::FlushCookies(sessionID), WTFMove(completionHandler));
-}
-
void NetworkProcessProxy::addSession(WebsiteDataStore& store, SendParametersToNetworkProcess sendParametersToNetworkProcess)
{
auto addResult = m_websiteDataStores.add(store);
@@ -1829,6 +1823,12 @@
send(Messages::NetworkProcess::ApplicationWillEnterForeground(), 0);
}
+void NetworkProcessProxy::cookiesDidChange(PAL::SessionID sessionID)
+{
+ if (auto* websiteDataStore = websiteDataStoreFromSessionID(sessionID))
+ websiteDataStore->cookieStore().cookiesDidChange();
+}
+
} // namespace WebKit
#undef MESSAGE_CHECK
Modified: trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.h 2022-06-07 21:31:50 UTC (rev 295365)
@@ -87,7 +87,6 @@
class DownloadProxy;
class DownloadProxyMap;
-class WebCookieManagerProxy;
class WebPageProxy;
class WebUserContentControllerProxy;
@@ -272,8 +271,6 @@
void updateBundleIdentifier(const String&, CompletionHandler<void()>&&);
void clearBundleIdentifier(CompletionHandler<void()>&&);
- WebCookieManagerProxy& cookieManager() { return m_cookieManager.get(); }
-
API::CustomProtocolManagerClient& customProtocolManagerClient() { return m_customProtocolManagerClient.get(); }
#if PLATFORM(COCOA)
@@ -304,6 +301,8 @@
void navigateServiceWorkerClient(WebCore::FrameIdentifier, WebCore::ScriptExecutionContextIdentifier, const URL&, CompletionHandler<void(std::optional<WebCore::PageIdentifier>)>&&);
+ void cookiesDidChange(PAL::SessionID);
+
private:
explicit NetworkProcessProxy();
@@ -420,7 +419,6 @@
#endif
WeakHashSet<WebsiteDataStore> m_websiteDataStores;
- UniqueRef<WebCookieManagerProxy> m_cookieManager;
HashMap<DataTaskIdentifier, Ref<API::DataTask>> m_dataTasks;
#if PLATFORM(IOS_FAMILY)
Modified: trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.messages.in (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.messages.in 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.messages.in 2022-06-07 21:31:50 UTC (rev 295365)
@@ -94,6 +94,8 @@
OpenWindowFromServiceWorker(PAL::SessionID sessionID, String urlString, struct WebCore::SecurityOriginData serviceWorkerOrigin) -> (std::optional<WebCore::PageIdentifier> newPage)
NavigateServiceWorkerClient(WebCore::FrameIdentifier frameIdentifier, WebCore::ScriptExecutionContextIdentifier documentIdentifier, URL url) -> (std::optional<WebCore::PageIdentifier> page)
+
+ CookiesDidChange(PAL::SessionID sessionID)
}
}
Deleted: trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -1,189 +0,0 @@
-/*
- * Copyright (C) 2011, 2013 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "WebCookieManagerProxy.h"
-
-#include "APIArray.h"
-#include "APISecurityOrigin.h"
-#include "NetworkProcessMessages.h"
-#include "NetworkProcessProxy.h"
-#include "WebCookieManagerMessages.h"
-#include "WebCookieManagerProxyMessages.h"
-#include "WebProcessPool.h"
-#include <WebCore/Cookie.h>
-#include <WebCore/SecurityOriginData.h>
-
-namespace WebKit {
-using namespace WebCore;
-
-WebCookieManagerProxy::WebCookieManagerProxy(NetworkProcessProxy& networkProcess)
- : m_networkProcess(networkProcess)
-{
- networkProcess.addMessageReceiver(Messages::WebCookieManagerProxy::messageReceiverName(), *this);
-}
-
-WebCookieManagerProxy::~WebCookieManagerProxy()
-{
- if (m_networkProcess)
- m_networkProcess->removeMessageReceiver(Messages::WebCookieManagerProxy::messageReceiverName());
- if (!m_cookieObservers.isEmpty())
- RELEASE_LOG(Storage, "WebCookieManagerProxy::~WebCookieManagerProxy %u cookie observers will be invalidated", m_cookieObservers.size());
-}
-
-void WebCookieManagerProxy::getHostnamesWithCookies(PAL::SessionID sessionID, CompletionHandler<void(Vector<String>&&)>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetHostnamesWithCookies(sessionID), WTFMove(callbackFunction));
- else
- callbackFunction({ });
-}
-
-void WebCookieManagerProxy::deleteCookiesForHostnames(PAL::SessionID sessionID, const Vector<String>& hostnames, CompletionHandler<void()>&& completionHandler)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteCookiesForHostnames(sessionID, hostnames), WTFMove(completionHandler));
- else
- completionHandler();
-}
-
-void WebCookieManagerProxy::deleteAllCookies(PAL::SessionID sessionID, CompletionHandler<void()>&& completionHandler)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteAllCookies(sessionID), WTFMove(completionHandler));
- else
- completionHandler();
-}
-
-void WebCookieManagerProxy::deleteCookie(PAL::SessionID sessionID, const Cookie& cookie, CompletionHandler<void()>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteCookie(sessionID, cookie), WTFMove(callbackFunction));
- else
- callbackFunction();
-}
-
-void WebCookieManagerProxy::deleteAllCookiesModifiedSince(PAL::SessionID sessionID, WallTime time, CompletionHandler<void()>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::DeleteAllCookiesModifiedSince(sessionID, time), WTFMove(callbackFunction));
- else
- callbackFunction();
-}
-
-void WebCookieManagerProxy::setCookies(PAL::SessionID sessionID, const Vector<Cookie>& cookies, CompletionHandler<void()>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::SetCookie(sessionID, cookies), WTFMove(callbackFunction));
- else
- callbackFunction();
-}
-
-void WebCookieManagerProxy::setCookies(PAL::SessionID sessionID, const Vector<Cookie>& cookies, const URL& url, const URL& mainDocumentURL, CompletionHandler<void()>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::SetCookies(sessionID, cookies, url, mainDocumentURL), WTFMove(callbackFunction));
- else
- callbackFunction();
-}
-
-void WebCookieManagerProxy::getAllCookies(PAL::SessionID sessionID, CompletionHandler<void(Vector<Cookie>&&)>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetAllCookies(sessionID), WTFMove(callbackFunction));
- else
- callbackFunction({ });
-}
-
-void WebCookieManagerProxy::getCookies(PAL::SessionID sessionID, const URL& url, CompletionHandler<void(Vector<Cookie>&&)>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetCookies(sessionID, url), WTFMove(callbackFunction));
- else
- callbackFunction({ });
-}
-
-void WebCookieManagerProxy::startObservingCookieChanges(PAL::SessionID sessionID)
-{
- if (m_networkProcess)
- m_networkProcess->send(Messages::WebCookieManager::StartObservingCookieChanges(sessionID), 0);
-}
-
-void WebCookieManagerProxy::stopObservingCookieChanges(PAL::SessionID sessionID)
-{
- if (m_networkProcess)
- m_networkProcess->send(Messages::WebCookieManager::StopObservingCookieChanges(sessionID), 0);
-}
-
-void WebCookieManagerProxy::registerObserver(PAL::SessionID sessionID, Observer& observer)
-{
- auto result = m_cookieObservers.set(sessionID, WeakHashSet<Observer>());
- result.iterator->value.add(observer);
-
- if (result.isNewEntry)
- startObservingCookieChanges(sessionID);
-}
-
-void WebCookieManagerProxy::unregisterObserver(PAL::SessionID sessionID, Observer& observer)
-{
- auto iterator = m_cookieObservers.find(sessionID);
- if (iterator == m_cookieObservers.end())
- return;
-
- iterator->value.remove(observer);
- if (!iterator->value.computesEmpty())
- return;
-
- m_cookieObservers.remove(iterator);
- stopObservingCookieChanges(sessionID);
-}
-
-void WebCookieManagerProxy::cookiesDidChange(PAL::SessionID sessionID)
-{
- auto iterator = m_cookieObservers.find(sessionID);
- if (iterator == m_cookieObservers.end())
- return;
-
- for (auto& observer : iterator->value)
- observer.cookiesDidChange();
-}
-
-void WebCookieManagerProxy::setHTTPCookieAcceptPolicy(PAL::SessionID, HTTPCookieAcceptPolicy policy, CompletionHandler<void()>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::SetHTTPCookieAcceptPolicy(policy), WTFMove(callbackFunction));
- else
- callbackFunction();
-}
-
-void WebCookieManagerProxy::getHTTPCookieAcceptPolicy(PAL::SessionID sessionID, CompletionHandler<void(HTTPCookieAcceptPolicy)>&& callbackFunction)
-{
- if (m_networkProcess)
- m_networkProcess->sendWithAsyncReply(Messages::WebCookieManager::GetHTTPCookieAcceptPolicy(sessionID), WTFMove(callbackFunction));
- else
- callbackFunction(HTTPCookieAcceptPolicy::Never);
-}
-
-} // namespace WebKit
Deleted: trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.h (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.h 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.h 2022-06-07 21:31:50 UTC (rev 295365)
@@ -1,103 +0,0 @@
-/*
- * Copyright (C) 2011, 2013 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "APIObject.h"
-#include "GenericCallback.h"
-#include "MessageReceiver.h"
-#include "WebContextSupplement.h"
-#include <pal/SessionID.h>
-#include <wtf/Forward.h>
-#include <wtf/HashMap.h>
-#include <wtf/RefPtr.h>
-#include <wtf/WeakHashSet.h>
-
-#if USE(SOUP)
-#include "SoupCookiePersistentStorageType.h"
-#endif
-
-namespace API {
-class Array;
-}
-
-namespace WebCore {
-struct Cookie;
-}
-
-namespace WebKit {
-
-class WebProcessPool;
-class WebProcessProxy;
-
-class WebCookieManagerProxy : public IPC::MessageReceiver {
- WTF_MAKE_FAST_ALLOCATED;
-public:
- WebCookieManagerProxy(NetworkProcessProxy&);
- virtual ~WebCookieManagerProxy();
-
- void getHostnamesWithCookies(PAL::SessionID, CompletionHandler<void(Vector<String>&&)>&&);
- void deleteCookie(PAL::SessionID, const WebCore::Cookie&, CompletionHandler<void()>&&);
- void deleteCookiesForHostnames(PAL::SessionID, const Vector<String>&, CompletionHandler<void()>&&);
- void deleteAllCookies(PAL::SessionID, CompletionHandler<void()>&&);
- void deleteAllCookiesModifiedSince(PAL::SessionID, WallTime, CompletionHandler<void()>&&);
-
- void setCookies(PAL::SessionID, const Vector<WebCore::Cookie>&, CompletionHandler<void()>&&);
- void setCookies(PAL::SessionID, const Vector<WebCore::Cookie>&, const URL&, const URL& mainDocumentURL, CompletionHandler<void()>&&);
-
- void getAllCookies(PAL::SessionID, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&&);
- void getCookies(PAL::SessionID, const URL&, CompletionHandler<void(Vector<WebCore::Cookie>&&)>&&);
-
- void setHTTPCookieAcceptPolicy(PAL::SessionID, WebCore::HTTPCookieAcceptPolicy, CompletionHandler<void()>&&);
- void getHTTPCookieAcceptPolicy(PAL::SessionID, CompletionHandler<void(WebCore::HTTPCookieAcceptPolicy)>&&);
-
- void startObservingCookieChanges(PAL::SessionID);
- void stopObservingCookieChanges(PAL::SessionID);
-
- class Observer : public CanMakeWeakPtr<Observer> {
- public:
- virtual ~Observer() { }
- virtual void cookiesDidChange() = 0;
- };
-
- void registerObserver(PAL::SessionID, Observer&);
- void unregisterObserver(PAL::SessionID, Observer&);
-
-#if USE(SOUP)
- void setCookiePersistentStorage(PAL::SessionID, const String& storagePath, SoupCookiePersistentStorageType);
-#endif
-
-private:
- void cookiesDidChange(PAL::SessionID);
-
- // IPC::MessageReceiver
- void didReceiveMessage(IPC::Connection&, IPC::Decoder&) override;
-
- HashMap<PAL::SessionID, WeakHashSet<Observer>> m_cookieObservers;
-
- WeakPtr<NetworkProcessProxy> m_networkProcess;
-};
-
-} // namespace WebKit
Deleted: trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.messages.in (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.messages.in 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.messages.in 2022-06-07 21:31:50 UTC (rev 295365)
@@ -1,25 +0,0 @@
-# Copyright (C) 2011 Apple Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
-# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
-# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-messages -> WebCookieManagerProxy NotRefCounted {
- CookiesDidChange(PAL::SessionID sessionID)
-}
Modified: trunk/Source/WebKit/UIProcess/WebProcessPool.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/WebProcessPool.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/WebProcessPool.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -62,7 +62,6 @@
#include "WebBackForwardListItem.h"
#include "WebCertificateInfo.h"
#include "WebContextSupplement.h"
-#include "WebCookieManagerProxy.h"
#include "WebCoreArgumentCoders.h"
#include "WebGeolocationManagerProxy.h"
#include "WebInspectorUtilities.h"
Modified: trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -39,7 +39,6 @@
#include "ShouldGrandfatherStatistics.h"
#include "StorageAccessStatus.h"
#include "WebBackForwardCache.h"
-#include "WebCookieManagerProxy.h"
#include "WebKit2Initialize.h"
#include "WebNotificationManagerProxy.h"
#include "WebPageProxy.h"
@@ -1708,11 +1707,6 @@
}
#endif
-void WebsiteDataStore::flushCookies(CompletionHandler<void()>&& completionHandler)
-{
- networkProcess().flushCookies(sessionID(), WTFMove(completionHandler));
-}
-
void WebsiteDataStore::setAllowsAnySSLCertificateForWebSocket(bool allows)
{
networkProcess().sendSync(Messages::NetworkProcess::SetAllowsAnySSLCertificateForWebSocket(allows), Messages::NetworkProcess::SetAllowsAnySSLCertificateForWebSocket::Reply(), 0);
Modified: trunk/Source/WebKit/UIProcess/WebsiteData/soup/WebsiteDataStoreSoup.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/WebsiteData/soup/WebsiteDataStoreSoup.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/WebsiteData/soup/WebsiteDataStoreSoup.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -27,8 +27,8 @@
#include "config.h"
#include "WebsiteDataStore.h"
+#include "APIHTTPCookieStore.h"
#include "NetworkProcessMessages.h"
-#include "WebCookieManagerProxy.h"
#include "WebCoreArgumentCoders.h"
#include "WebProcessPool.h"
#include "WebsiteDataStoreParameters.h"
@@ -80,7 +80,7 @@
m_cookiePersistentStoragePath = storagePath;
m_cookiePersistentStorageType = storageType;
- networkProcess().cookieManager().setCookiePersistentStorage(m_sessionID, m_cookiePersistentStoragePath, m_cookiePersistentStorageType);
+ cookieStore().setCookiePersistentStorage(m_cookiePersistentStoragePath, m_cookiePersistentStorageType);
}
void WebsiteDataStore::setHTTPCookieAcceptPolicy(WebCore::HTTPCookieAcceptPolicy policy)
@@ -89,7 +89,7 @@
return;
m_cookieAcceptPolicy = policy;
- networkProcess().cookieManager().setHTTPCookieAcceptPolicy(m_sessionID, policy, [] { });
+ cookieStore().setHTTPCookieAcceptPolicy(policy, [] { });
}
} // namespace WebKit
Deleted: trunk/Source/WebKit/UIProcess/soup/WebCookieManagerProxySoup.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/soup/WebCookieManagerProxySoup.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/soup/WebCookieManagerProxySoup.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2012 Igalia S.L.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "WebCookieManagerProxy.h"
-
-#include "NetworkProcessProxy.h"
-#include "WebCookieManagerMessages.h"
-
-namespace WebKit {
-
-void WebCookieManagerProxy::setCookiePersistentStorage(PAL::SessionID sessionID, const String& storagePath, SoupCookiePersistentStorageType storageType)
-{
- if (m_networkProcess)
- m_networkProcess->send(Messages::WebCookieManager::SetCookiePersistentStorage(sessionID, storagePath, storageType), 0);
-}
-
-} // namespace WebKit
Modified: trunk/Source/WebKit/UIProcess/soup/WebProcessPoolSoup.cpp (295364 => 295365)
--- trunk/Source/WebKit/UIProcess/soup/WebProcessPoolSoup.cpp 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/UIProcess/soup/WebProcessPoolSoup.cpp 2022-06-07 21:31:50 UTC (rev 295365)
@@ -29,7 +29,6 @@
#include "MemoryPressureMonitor.h"
#include "NetworkProcessCreationParameters.h"
#include "NetworkProcessMessages.h"
-#include "WebCookieManagerProxy.h"
#include "WebCoreArgumentCoders.h"
#include "WebProcessMessages.h"
#include <wtf/Language.h>
Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (295364 => 295365)
--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj 2022-06-07 20:33:57 UTC (rev 295364)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj 2022-06-07 21:31:50 UTC (rev 295365)
@@ -750,10 +750,7 @@
31F060E11654318500F3281C /* NetworkSocketChannelMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 31F060DD1654317500F3281C /* NetworkSocketChannelMessageReceiver.cpp */; };
330934471315B9220097A7BC /* WebCookieManagerMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 330934431315B9220097A7BC /* WebCookieManagerMessageReceiver.cpp */; };
330934481315B9220097A7BC /* WebCookieManagerMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 330934441315B9220097A7BC /* WebCookieManagerMessages.h */; };
- 330934491315B9220097A7BC /* WebCookieManagerProxyMessageReceiver.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 330934451315B9220097A7BC /* WebCookieManagerProxyMessageReceiver.cpp */; };
- 3309344A1315B9220097A7BC /* WebCookieManagerProxyMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 330934461315B9220097A7BC /* WebCookieManagerProxyMessages.h */; };
330934501315B94D0097A7BC /* WebCookieManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3309344D1315B94D0097A7BC /* WebCookieManager.h */; };
- 330934561315B9750097A7BC /* WebCookieManagerProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = 330934531315B9750097A7BC /* WebCookieManagerProxy.h */; };
3309345B1315B9980097A7BC /* WKCookieManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 330934591315B9980097A7BC /* WKCookieManager.h */; settings = {ATTRIBUTES = (Private, ); }; };
3336763B130C99DC006C9DE2 /* WKResourceCacheManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 33367639130C99DC006C9DE2 /* WKResourceCacheManager.h */; settings = {ATTRIBUTES = (Private, ); }; };
370F34A31829BE1E009027C8 /* WKNavigationData.h in Headers */ = {isa = PBXBuildFile; fileRef = 370F34A11829BE1E009027C8 /* WKNavigationData.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -2753,8 +2750,8 @@
dstPath = "";
dstSubfolderSpec = 16;
files = (
+ DDAB377628234B3900890546 /* AuthenticationServicesCore.framework in Product Dependencies */,
DDE992F6278D071F00F60D26 /* libWebKitAdditions.a in Product Dependencies */,
- DDAB377628234B3900890546 /* AuthenticationServicesCore.framework in Product Dependencies */,
);
name = "Product Dependencies";
runOnlyForDeploymentPostprocessing = 0;
@@ -4248,14 +4245,9 @@
32DBCF5E0370ADEE00C91783 /* WebKit2Prefix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebKit2Prefix.h; sourceTree = "<group>"; };
330934431315B9220097A7BC /* WebCookieManagerMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebCookieManagerMessageReceiver.cpp; path = DerivedSources/WebKit/WebCookieManagerMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; };
330934441315B9220097A7BC /* WebCookieManagerMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebCookieManagerMessages.h; path = DerivedSources/WebKit/WebCookieManagerMessages.h; sourceTree = BUILT_PRODUCTS_DIR; };
- 330934451315B9220097A7BC /* WebCookieManagerProxyMessageReceiver.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebCookieManagerProxyMessageReceiver.cpp; path = DerivedSources/WebKit/WebCookieManagerProxyMessageReceiver.cpp; sourceTree = BUILT_PRODUCTS_DIR; };
- 330934461315B9220097A7BC /* WebCookieManagerProxyMessages.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebCookieManagerProxyMessages.h; path = DerivedSources/WebKit/WebCookieManagerProxyMessages.h; sourceTree = BUILT_PRODUCTS_DIR; };
3309344C1315B94D0097A7BC /* WebCookieManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebCookieManager.cpp; sourceTree = "<group>"; };
3309344D1315B94D0097A7BC /* WebCookieManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCookieManager.h; sourceTree = "<group>"; };
3309344E1315B94D0097A7BC /* WebCookieManager.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebCookieManager.messages.in; sourceTree = "<group>"; };
- 330934521315B9750097A7BC /* WebCookieManagerProxy.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebCookieManagerProxy.cpp; sourceTree = "<group>"; };
- 330934531315B9750097A7BC /* WebCookieManagerProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCookieManagerProxy.h; sourceTree = "<group>"; };
- 330934541315B9750097A7BC /* WebCookieManagerProxy.messages.in */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebCookieManagerProxy.messages.in; sourceTree = "<group>"; };
330934581315B9980097A7BC /* WKCookieManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKCookieManager.cpp; sourceTree = "<group>"; };
330934591315B9980097A7BC /* WKCookieManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKCookieManager.h; sourceTree = "<group>"; };
33367638130C99DC006C9DE2 /* WKResourceCacheManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKResourceCacheManager.cpp; sourceTree = "<group>"; };
@@ -11668,9 +11660,6 @@
51A84CE2127F386B00CA6EA4 /* WebContextMenuProxy.cpp */,
51ACBB81127A8BAD00D203B9 /* WebContextMenuProxy.h */,
BCF4DE24168FA44800C94AFC /* WebContextSupplement.h */,
- 330934521315B9750097A7BC /* WebCookieManagerProxy.cpp */,
- 330934531315B9750097A7BC /* WebCookieManagerProxy.h */,
- 330934541315B9750097A7BC /* WebCookieManagerProxy.messages.in */,
E54A14CE20FCFB7B007E13D8 /* WebDataListSuggestionsDropdown.cpp */,
E568B91E20A3AB2F00E3C856 /* WebDataListSuggestionsDropdown.h */,
E55CD1FD24D0880B0042DB9C /* WebDateTimePicker.cpp */,
@@ -12918,8 +12907,6 @@
1A1FEC1B1627B45700700F6D /* WebConnectionMessages.h */,
330934431315B9220097A7BC /* WebCookieManagerMessageReceiver.cpp */,
330934441315B9220097A7BC /* WebCookieManagerMessages.h */,
- 330934451315B9220097A7BC /* WebCookieManagerProxyMessageReceiver.cpp */,
- 330934461315B9220097A7BC /* WebCookieManagerProxyMessages.h */,
E3866B062399979C00F88FE9 /* WebDeviceOrientationUpdateProviderMessageReceiver.cpp */,
E3866B072399979D00F88FE9 /* WebDeviceOrientationUpdateProviderMessages.h */,
E3866B042399979C00F88FE9 /* WebDeviceOrientationUpdateProviderProxyMessageReceiver.cpp */,
@@ -14439,6 +14426,7 @@
442E7BEB27B4586900C69AC1 /* RevealItem.h in Headers */,
410482CE1DDD324F00F006D0 /* RTCNetwork.h in Headers */,
46F38E8C2416E6730059375A /* RunningBoardServicesSPI.h in Headers */,
+ DDDFE827284699EC006F1EE5 /* SafariServicesSPI.h in Headers */,
0E97D74D200E900400BF6643 /* SafeBrowsingSPI.h in Headers */,
5CA9854A210BEB640057EB6B /* SafeBrowsingWarning.h in Headers */,
BC2D021712AC41CB00E732A3 /* SameDocumentNavigationType.h in Headers */,
@@ -14619,8 +14607,6 @@
5C7FB47021E97DC5009E3241 /* WebCookieJar.h in Headers */,
330934501315B94D0097A7BC /* WebCookieManager.h in Headers */,
330934481315B9220097A7BC /* WebCookieManagerMessages.h in Headers */,
- 330934561315B9750097A7BC /* WebCookieManagerProxy.h in Headers */,
- 3309344A1315B9220097A7BC /* WebCookieManagerProxyMessages.h in Headers */,
BC1DD7B2114DC396005ADAF3 /* WebCoreArgumentCoders.h in Headers */,
DDA0A29627E55E4D005E086E /* WebCoreStatistics.h in Headers */,
DDA0A41027E66FB6005E086E /* WebCoreThread.h in Headers */,
@@ -15093,7 +15079,6 @@
07A5EBBC1C7BA43E00B9CA69 /* WKFrameHandleRef.h in Headers */,
1A4D664C18A3030E00D82E21 /* WKFrameInfo.h in Headers */,
2DF9EEE81A78245500B6CFBE /* WKFrameInfoInternal.h in Headers */,
- DDDFE827284699EC006F1EE5 /* SafariServicesSPI.h in Headers */,
1A6FA21E1BD0435B00AAA650 /* WKFrameInfoPrivate.h in Headers */,
2D3A65E71A7C3AA700CAC637 /* WKFrameInfoRef.h in Headers */,
BCB9F6A51123DD0D00A137E0 /* WKFramePolicyListener.h in Headers */,
@@ -17012,7 +16997,6 @@
1C0A19531C8FFDFB00FE0EBB /* WebAutomationSessionProxyMessageReceiver.cpp in Sources */,
1A1FEC1C1627B45700700F6D /* WebConnectionMessageReceiver.cpp in Sources */,
330934471315B9220097A7BC /* WebCookieManagerMessageReceiver.cpp in Sources */,
- 330934491315B9220097A7BC /* WebCookieManagerProxyMessageReceiver.cpp in Sources */,
E39628DE23960CC600658ECD /* WebDeviceOrientationUpdateProvider.cpp in Sources */,
E3866B0B2399A2DD00F88FE9 /* WebDeviceOrientationUpdateProviderMessageReceiver.cpp in Sources */,
E3866AE52397400400F88FE9 /* WebDeviceOrientationUpdateProviderProxy.mm in Sources */,