gecko-dev/dom/workers/remoteworkers
Perry Jiang cb268d10f4 Bug 1588152 - restrict RemoteWorkerChild::mTerminationPromise to Worker Launcher thread r=asuth
It looks like there could be a race condition where GetTerminationPromise()
is called at the same time on two threads on an empty MozPromiseHolder, and one
of the MozPromises created by MozPromiseHolder::Ensure if leaked (and its
chained callbacks never called).

Additionally, I don't think the ParentStatusProtected() > Running check is
necessary because for ServiceWorkers, the global can't call close(), so the
parent status is at least "Canceling", making the CloseWorkerOnMainThread call
unnecessary (which just calls WorkerPrivate::Cancel). The parent process also
will always send a termination operation as the last operation, so we can just
rely on that to make sure the worker is fully terminated.

Differential Revision: https://phabricator.services.mozilla.com/D56277

--HG--
extra : moz-landing-system : lando
2019-12-08 00:33:03 +00:00
..
PRemoteWorker.ipdl
PRemoteWorkerController.ipdl
PRemoteWorkerService.ipdl
RemoteWorkerChild.cpp Bug 1588152 - restrict RemoteWorkerChild::mTerminationPromise to Worker Launcher thread r=asuth 2019-12-08 00:33:03 +00:00
RemoteWorkerChild.h Bug 1588152 - restrict RemoteWorkerChild::mTerminationPromise to Worker Launcher thread r=asuth 2019-12-08 00:33:03 +00:00
RemoteWorkerController.cpp
RemoteWorkerController.h
RemoteWorkerControllerChild.cpp
RemoteWorkerControllerChild.h
RemoteWorkerControllerParent.cpp
RemoteWorkerControllerParent.h
RemoteWorkerManager.cpp Bug 1575092 - don't spawn Shared/Service Workers in "web COOP+COEP" processes r=asuth 2019-11-20 20:02:23 +00:00
RemoteWorkerManager.h Bug 1575092 - don't spawn Shared/Service Workers in "web COOP+COEP" processes r=asuth 2019-11-20 20:02:23 +00:00
RemoteWorkerParent.cpp
RemoteWorkerParent.h
RemoteWorkerService.cpp
RemoteWorkerService.h
RemoteWorkerServiceChild.cpp
RemoteWorkerServiceChild.h
RemoteWorkerServiceParent.cpp
RemoteWorkerServiceParent.h
RemoteWorkerTypes.ipdlh Bug 1575185 - Subscribe content processes spawning Service Workers to permission updates r=asuth 2019-10-09 02:23:41 +00:00
moz.build Bug 1596843 - Part 4: Remove some native only methods from nsIPermissionManager; r=baku 2019-11-17 22:22:34 +00:00