Bug 1410209, part 2 - Disambiguate some service worker runnable names. r=bkelly

With part 3, these names are used to identify the runnables to the
XPCOM leak checking system. There are some other classes that already
use a few of these names, so change them to something unique.

MozReview-Commit-ID: 5AN7tG5yKBk

--HG--
extra : rebase_source : a875c9c5f788e9c47e3b150d8fc31186caa591e4
This commit is contained in:
Andrew McCreight 2017-10-27 10:45:52 -07:00
Родитель 81ee922c58
Коммит 770567bc01
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -227,7 +227,7 @@ ServiceWorkerJob::Finish(ErrorResult& aRv)
// Async release this object to ensure that our caller methods complete
// as well.
NS_ReleaseOnMainThreadSystemGroup("ServiceWorkerJob",
NS_ReleaseOnMainThreadSystemGroup("ServiceWorkerJobProxyRunnable",
kungFuDeathGrip.forget(), true /* always proxy */);
}

Просмотреть файл

@ -1017,7 +1017,7 @@ ServiceWorkerPrivate::SendPushEvent(const nsAString& aMessageId,
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> regInfo(
new nsMainThreadPtrHolder<ServiceWorkerRegistrationInfo>(
"ServiceWorkerRegistrationInfo", aRegistration, false));
"ServiceWorkerRegistrationInfoProxy", aRegistration, false));
RefPtr<WorkerRunnable> r = new SendPushEventRunnable(mWorkerPrivate,
token,
@ -1760,7 +1760,7 @@ ServiceWorkerPrivate::SendFetchEvent(nsIInterceptedChannel* aChannel,
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> regInfo(
new nsMainThreadPtrHolder<ServiceWorkerRegistrationInfo>(
"ServiceWorkerRegistrationInfo", registration, false));
"ServiceWorkerRegistrationInfoProxy", registration, false));
RefPtr<KeepAliveToken> token = CreateEventKeepAliveToken();

Просмотреть файл

@ -285,7 +285,7 @@ ServiceWorkerRegistrationInfo::Activate()
nsMainThreadPtrHandle<ServiceWorkerRegistrationInfo> handle(
new nsMainThreadPtrHolder<ServiceWorkerRegistrationInfo>(
"ServiceWorkerRegistrationInfo", this));
"ServiceWorkerRegistrationInfoProxy", this));
RefPtr<LifeCycleEventCallback> callback = new ContinueActivateRunnable(handle);
ServiceWorkerPrivate* workerPrivate = mActiveWorker->WorkerPrivate();