Title: [253838] trunk/Source/WebCore
Revision
253838
Author
[email protected]
Date
2019-12-20 12:43:31 -0800 (Fri, 20 Dec 2019)

Log Message

SWServer can be created without any path to store registrations in non ephemeral sessions
https://bugs.webkit.org/show_bug.cgi?id=205500

Reviewed by Simon Fraser.

No change of behavior in release.
Remove debug assert and log the case of a non ephemeral session without a path.

* workers/service/server/SWServer.cpp:
(WebCore::SWServer::SWServer):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (253837 => 253838)


--- trunk/Source/WebCore/ChangeLog	2019-12-20 20:42:43 UTC (rev 253837)
+++ trunk/Source/WebCore/ChangeLog	2019-12-20 20:43:31 UTC (rev 253838)
@@ -1,3 +1,16 @@
+2019-12-20  youenn fablet  <[email protected]>
+
+        SWServer can be created without any path to store registrations in non ephemeral sessions
+        https://bugs.webkit.org/show_bug.cgi?id=205500
+
+        Reviewed by Simon Fraser.
+
+        No change of behavior in release.
+        Remove debug assert and log the case of a non ephemeral session without a path.
+
+        * workers/service/server/SWServer.cpp:
+        (WebCore::SWServer::SWServer):
+
 2019-12-20  Brian Burg  <[email protected]>
 
         Web Inspector: convert some InspectorFrontendHost methods to getters

Modified: trunk/Source/WebCore/workers/service/server/SWServer.cpp (253837 => 253838)


--- trunk/Source/WebCore/workers/service/server/SWServer.cpp	2019-12-20 20:42:43 UTC (rev 253837)
+++ trunk/Source/WebCore/workers/service/server/SWServer.cpp	2019-12-20 20:43:31 UTC (rev 253838)
@@ -319,7 +319,7 @@
     , m_createContextConnectionCallback(WTFMove(callback))
     , m_softUpdateCallback(WTFMove(softUpdateCallback))
 {
-    ASSERT(!registrationDatabaseDirectory.isEmpty() || m_sessionID.isEphemeral());
+    RELEASE_LOG_IF(registrationDatabaseDirectory.isEmpty() && !m_sessionID.isEphemeral(), ServiceWorker, "No path to store the service worker registrations");
     if (!m_sessionID.isEphemeral())
         m_registrationStore = makeUnique<RegistrationStore>(*this, WTFMove(registrationDatabaseDirectory));
     else
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to