[webkit-changes] [WebKit/WebKit] e0995e: ServiceWorkerThread does not need to be CanMakeWea...

youennf noreply at github.com
Wed Oct 30 00:50:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e0995e9acfe5c0c2b676ea71465067f1128700e4
      https://github.com/WebKit/WebKit/commit/e0995e9acfe5c0c2b676ea71465067f1128700e4
  Author: Youenn Fablet <youenn at apple.com>
  Date:   2024-10-30 (Wed, 30 Oct 2024)

  Changed paths:
    M Source/WebCore/workers/service/context/ServiceWorkerThread.cpp
    M Source/WebCore/workers/service/context/ServiceWorkerThread.h

  Log Message:
  -----------
  ServiceWorkerThread does not need to be CanMakeWeakPtr
https://bugs.webkit.org/show_bug.cgi?id=282254
rdar://problem/138851633

Reviewed by Sihui Liu.

Instead using thread safe weak pointer.

* Source/WebCore/workers/service/context/ServiceWorkerThread.cpp:
(WebCore::ServiceWorkerThread::queueTaskToPostMessage):
(WebCore::ServiceWorkerThread::queueTaskToFireInstallEvent):
(WebCore::ServiceWorkerThread::queueTaskToFireActivateEvent):
(WebCore::ServiceWorkerThread::queueTaskToFirePushEvent):
(WebCore::ServiceWorkerThread::queueTaskToFirePushNotificationEvent):
(WebCore::ServiceWorkerThread::queueTaskToFirePushSubscriptionChangeEvent):
(WebCore::ServiceWorkerThread::queueTaskToFireNotificationEvent):
(WebCore::ServiceWorkerThread::queueTaskToFireBackgroundFetchEvent):
(WebCore::ServiceWorkerThread::queueTaskToFireBackgroundFetchClickEvent):
(WebCore::ServiceWorkerThread::start):
* Source/WebCore/workers/service/context/ServiceWorkerThread.h:

Canonical link: https://commits.webkit.org/285886@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list