mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1144660 - Make KeepAliveHandler threadsafe refcounted. r=ehsan
This works because KeepAliveHandler only holds nsMainThreadPtrHolder<> which is itself thread safe. It has assertions that the PromiseNativeHandler overrides are only called on the worker and these assertions are satisfied.
This commit is contained in:
parent
98d7693a3a
commit
002018a6ff
@ -1622,7 +1622,7 @@ class KeepAliveHandler final : public PromiseNativeHandler
|
||||
{}
|
||||
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
explicit KeepAliveHandler(const nsMainThreadPtrHandle<ServiceWorker>& aServiceWorker)
|
||||
: mServiceWorker(aServiceWorker)
|
||||
|
Loading…
Reference in New Issue
Block a user