Title: [250793] trunk/Source/WebCore
Revision
250793
Author
ross.kirsl...@sony.com
Date
2019-10-07 14:31:34 -0700 (Mon, 07 Oct 2019)

Log Message

Unreviewed WinCairo build fix for r250758.

* workers/service/ServiceWorkerContainer.cpp:
(WebCore::ServiceWorkerContainer::jobResolvedWithRegistration):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (250792 => 250793)


--- trunk/Source/WebCore/ChangeLog	2019-10-07 21:29:38 UTC (rev 250792)
+++ trunk/Source/WebCore/ChangeLog	2019-10-07 21:31:34 UTC (rev 250793)
@@ -1,3 +1,10 @@
+2019-10-07  Ross Kirsling  <ross.kirsl...@sony.com>
+
+        Unreviewed WinCairo build fix for r250758.
+
+        * workers/service/ServiceWorkerContainer.cpp:
+        (WebCore::ServiceWorkerContainer::jobResolvedWithRegistration):
+
 2019-10-07  Ryosuke Niwa  <rn...@webkit.org>
 
         focus pseudo class should match a shadow host whose shadow tree contains the focused element

Modified: trunk/Source/WebCore/workers/service/ServiceWorkerContainer.cpp (250792 => 250793)


--- trunk/Source/WebCore/workers/service/ServiceWorkerContainer.cpp	2019-10-07 21:29:38 UTC (rev 250792)
+++ trunk/Source/WebCore/workers/service/ServiceWorkerContainer.cpp	2019-10-07 21:31:34 UTC (rev 250793)
@@ -379,7 +379,7 @@
     if (!promise)
         return;
 
-    m_taskQueue->enqueueTask([this, promise = WTFMove(promise), jobIdentifier = job.identifier(), data = "" shouldNotifyWhenResolved, notifyIfExitEarly = WTFMove(notifyIfExitEarly)]() mutable {
+    m_taskQueue->enqueueTask([this, protectedThis = makeRef(*this), promise = WTFMove(promise), jobIdentifier = job.identifier(), data = "" shouldNotifyWhenResolved, notifyIfExitEarly = WTFMove(notifyIfExitEarly)]() mutable {
         notifyIfExitEarly.release();
 
         auto registration = ServiceWorkerRegistration::getOrCreate(*scriptExecutionContext(), *this, WTFMove(data));
@@ -388,7 +388,7 @@
 
         if (shouldNotifyWhenResolved == ShouldNotifyWhenResolved::Yes) {
             m_ongoingSettledRegistrations.add(++m_lastOngoingSettledRegistrationIdentifier, registration->data().key);
-            promise->whenSettled([this, protectedThis = makeRef(*this), identifier = m_lastOngoingSettledRegistrationIdentifier] {
+            promise->whenSettled([this, protectedThis = WTFMove(protectedThis), identifier = m_lastOngoingSettledRegistrationIdentifier] {
                 notifyRegistrationIsSettled(m_ongoingSettledRegistrations.take(identifier));
             });
         }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to