From 9227b3237beda5fed5329c3b88abb9b4211d5640 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 8 Dec 2015 17:52:16 -0500 Subject: [PATCH] Bug 1227015 P7 Supress unused ErrorResult exception if the worker runnable failed to dispatch. r=catalinb --- dom/workers/ServiceWorkerRegistration.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dom/workers/ServiceWorkerRegistration.cpp b/dom/workers/ServiceWorkerRegistration.cpp index a29f392886d7..21bb739e3096 100644 --- a/dom/workers/ServiceWorkerRegistration.cpp +++ b/dom/workers/ServiceWorkerRegistration.cpp @@ -337,6 +337,15 @@ public: mPromiseProxy->CleanUp(aCx); return true; } + + void + PostDispatch(JSContext* aCx, WorkerPrivate* aWorkerPrivate, + bool aSuccess) override + { + if (!aSuccess) { + mStatus.SuppressException(); + } + } }; class WorkerThreadUpdateCallback final : public ServiceWorkerUpdateFinishCallback