Title: [229625] trunk/Source/WebCore
Revision
229625
Author
[email protected]
Date
2018-03-15 09:17:24 -0700 (Thu, 15 Mar 2018)

Log Message

Unreviewed, fix tiny mistake in r229615 that caused API tests failures.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (229624 => 229625)


--- trunk/Source/WebCore/ChangeLog	2018-03-15 16:00:08 UTC (rev 229624)
+++ trunk/Source/WebCore/ChangeLog	2018-03-15 16:17:24 UTC (rev 229625)
@@ -1,3 +1,10 @@
+2018-03-15  Chris Dumez  <[email protected]>
+
+        Unreviewed, fix tiny mistake in r229615 that caused API tests failures.
+
+        * workers/service/server/SWServer.cpp:
+        (WebCore::SWServer::addRegistrationFromStore):
+
 2018-03-15  Zan Dobersek  <[email protected]>
 
         [TexMap] Remove TextureMapperLayer::texture()

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


--- trunk/Source/WebCore/workers/service/server/SWServer.cpp	2018-03-15 16:00:08 UTC (rev 229624)
+++ trunk/Source/WebCore/workers/service/server/SWServer.cpp	2018-03-15 16:17:24 UTC (rev 229625)
@@ -139,7 +139,7 @@
     addRegistration(WTFMove(registration));
 
     auto* connection = SWServerToContextConnection::globalServerToContextConnection();
-    auto worker = SWServerWorker::create(*this, *registrationPtr, connection ? connection->identifier() : SWServerToContextConnectionIdentifier(), data.scriptURL, data.script, data.contentSecurityPolicy, data.workerType, data.serviceWorkerIdentifier);
+    auto worker = SWServerWorker::create(*this, *registrationPtr, connection ? std::make_optional(connection->identifier()) : std::nullopt, data.scriptURL, data.script, data.contentSecurityPolicy, data.workerType, data.serviceWorkerIdentifier);
     registrationPtr->updateRegistrationState(ServiceWorkerRegistrationState::Active, worker.ptr());
     worker->setState(ServiceWorkerState::Activated);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to