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:
Nikhil Marathe 2015-08-05 20:58:10 -07:00
parent 98d7693a3a
commit 002018a6ff

View File

@ -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)