Diff
Modified: trunk/Source/WebCore/ChangeLog (250078 => 250079)
--- trunk/Source/WebCore/ChangeLog 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebCore/ChangeLog 2019-09-19 03:45:06 UTC (rev 250079)
@@ -1,5 +1,18 @@
2019-09-18 Chris Dumez <[email protected]>
+ WebSocketStream does not need a SessionID
+ https://bugs.webkit.org/show_bug.cgi?id=201960
+
+ Reviewed by Geoffrey Garen.
+
+ WebSocketStream does not need a SessionID, now that we have a single session per WebProcess.
+
+ * platform/network/cf/SocketStreamHandleImpl.h:
+ * platform/network/cf/SocketStreamHandleImplCFNet.cpp:
+ (WebCore::SocketStreamHandleImpl::SocketStreamHandleImpl):
+
+2019-09-18 Chris Dumez <[email protected]>
+
LibWebRTCProvider does not need sessionIDs anymore
https://bugs.webkit.org/show_bug.cgi?id=201959
Modified: trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImpl.h (250078 => 250079)
--- trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImpl.h 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImpl.h 2019-09-19 03:45:06 UTC (rev 250079)
@@ -103,7 +103,6 @@
RetainPtr<CFWriteStreamRef> m_writeStream;
RetainPtr<CFURLRef> m_httpsURL; // ws(s): replaced with https:
- PAL::SessionID m_sessionID;
String m_credentialPartition;
SourceApplicationAuditToken m_auditData;
RefPtr<const StorageSessionProvider> m_storageSessionProvider;
Modified: trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp (250078 => 250079)
--- trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp 2019-09-19 03:45:06 UTC (rev 250079)
@@ -101,7 +101,6 @@
, m_connectingSubstate(New)
, m_connectionType(Unknown)
, m_sentStoredCredentials(false)
- , m_sessionID(sessionID)
, m_credentialPartition(credentialPartition)
, m_auditData(WTFMove(auditData))
, m_storageSessionProvider(provider)
Modified: trunk/Source/WebKit/ChangeLog (250078 => 250079)
--- trunk/Source/WebKit/ChangeLog 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebKit/ChangeLog 2019-09-19 03:45:06 UTC (rev 250079)
@@ -1,5 +1,21 @@
2019-09-18 Chris Dumez <[email protected]>
+ WebSocketStream does not need a SessionID
+ https://bugs.webkit.org/show_bug.cgi?id=201960
+
+ Reviewed by Geoffrey Garen.
+
+ WebSocketStream does not need a SessionID, now that we have a single session per WebProcess.
+
+ * WebProcess/Network/WebSocketProvider.cpp:
+ (WebKit::WebSocketProvider::createSocketStreamHandle):
+ * WebProcess/Network/WebSocketStream.cpp:
+ (WebKit::WebSocketStream::create):
+ (WebKit::WebSocketStream::WebSocketStream):
+ * WebProcess/Network/WebSocketStream.h:
+
+2019-09-18 Chris Dumez <[email protected]>
+
LibWebRTCProvider does not need sessionIDs anymore
https://bugs.webkit.org/show_bug.cgi?id=201959
Modified: trunk/Source/WebKit/WebProcess/Network/WebSocketProvider.cpp (250078 => 250079)
--- trunk/Source/WebKit/WebProcess/Network/WebSocketProvider.cpp 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebKit/WebProcess/Network/WebSocketProvider.cpp 2019-09-19 03:45:06 UTC (rev 250079)
@@ -40,7 +40,8 @@
Ref<SocketStreamHandle> WebSocketProvider::createSocketStreamHandle(const URL& url, SocketStreamHandleClient& client, PAL::SessionID sessionID, const String& credentialPartition, const StorageSessionProvider*)
{
- return WebSocketStream::create(url, client, sessionID, credentialPartition);
+ ASSERT_UNUSED(sessionID, sessionID == WebProcess::singleton().sessionID());
+ return WebSocketStream::create(url, client, credentialPartition);
}
RefPtr<ThreadableWebSocketChannel> WebSocketProvider::createWebSocketChannel(Document& document, WebSocketChannelClient& client)
Modified: trunk/Source/WebKit/WebProcess/Network/WebSocketStream.cpp (250078 => 250079)
--- trunk/Source/WebKit/WebProcess/Network/WebSocketStream.cpp 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebKit/WebProcess/Network/WebSocketStream.cpp 2019-09-19 03:45:06 UTC (rev 250079)
@@ -35,7 +35,6 @@
#include <WebCore/CookieRequestHeaderFieldProxy.h>
#include <WebCore/SocketStreamError.h>
#include <WebCore/SocketStreamHandleClient.h>
-#include <pal/SessionID.h>
#include <wtf/NeverDestroyed.h>
namespace WebKit {
@@ -77,12 +76,12 @@
globalWebSocketStreamMap().clear();
}
-Ref<WebSocketStream> WebSocketStream::create(const URL& url, SocketStreamHandleClient& client, PAL::SessionID sessionID, const String& credentialPartition)
+Ref<WebSocketStream> WebSocketStream::create(const URL& url, SocketStreamHandleClient& client, const String& credentialPartition)
{
- return adoptRef(*new WebSocketStream(url, client, sessionID, credentialPartition));
+ return adoptRef(*new WebSocketStream(url, client, credentialPartition));
}
-WebSocketStream::WebSocketStream(const URL& url, WebCore::SocketStreamHandleClient& client, PAL::SessionID, const String& cachePartition)
+WebSocketStream::WebSocketStream(const URL& url, WebCore::SocketStreamHandleClient& client, const String& cachePartition)
: SocketStreamHandle(url, client)
, m_client(client)
{
Modified: trunk/Source/WebKit/WebProcess/Network/WebSocketStream.h (250078 => 250079)
--- trunk/Source/WebKit/WebProcess/Network/WebSocketStream.h 2019-09-19 03:27:00 UTC (rev 250078)
+++ trunk/Source/WebKit/WebProcess/Network/WebSocketStream.h 2019-09-19 03:45:06 UTC (rev 250079)
@@ -28,7 +28,6 @@
#include "MessageReceiver.h"
#include "MessageSender.h"
#include <WebCore/SocketStreamHandle.h>
-#include <pal/SessionID.h>
#include <wtf/Identified.h>
namespace IPC {
@@ -45,7 +44,7 @@
class WebSocketStream : public IPC::MessageSender, public IPC::MessageReceiver, public WebCore::SocketStreamHandle, public Identified<WebSocketStream> {
public:
- static Ref<WebSocketStream> create(const URL&, WebCore::SocketStreamHandleClient&, PAL::SessionID, const String& credentialPartition);
+ static Ref<WebSocketStream> create(const URL&, WebCore::SocketStreamHandleClient&, const String& credentialPartition);
static void networkProcessCrashed();
static WebSocketStream* streamWithIdentifier(uint64_t);
@@ -73,7 +72,7 @@
IPC::Connection* messageSenderConnection() const final;
uint64_t messageSenderDestinationID() const final;
- WebSocketStream(const URL&, WebCore::SocketStreamHandleClient&, PAL::SessionID, const String& credentialPartition);
+ WebSocketStream(const URL&, WebCore::SocketStreamHandleClient&, const String& credentialPartition);
~WebSocketStream();
size_t m_bufferedAmount { 0 };