Sounds like ResolvePromiseWhenNotified ath the end creates https://searchfox.org/mozilla-central/source/dom/cookiestore/CookieStoreNotificationWatcherWrapper.cpp#90
Bug 1928123 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Sounds like ResolvePromiseWhenNotified at the end creates ThreadSafeWorkerRef, but for some reason, threads are different https://searchfox.org/mozilla-central/source/dom/cookiestore/CookieStoreNotificationWatcherWrapper.cpp#90
https://searchfox.org/mozilla-central/source/dom/cookiestore/CookieStoreNotificationWatcherWrapper.cpp#90 Sounds like ResolvePromiseWhenNotified at the end creates ThreadSafeWorkerRef, but for some reason, threads are different: https://searchfox.org/mozilla-central/source/dom/workers/WorkerPrivate.cpp#6169