From bdd438123baef946fc057c5be81d4c3e0b0530e5 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 12 Jan 2016 16:04:18 -0800 Subject: [PATCH] Bug 1238990 P1 ServiceWorkerManager should trigger automatic updates in current process. r=ehsan --- dom/workers/ServiceWorkerManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 5aaa9b835602..d2197fe0efca 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -5020,8 +5020,7 @@ ServiceWorkerManager::UpdateTimerFired(nsIPrincipal* aPrincipal, PrincipalOriginAttributes attrs = BasePrincipal::Cast(aPrincipal)->OriginAttributesRef(); - // Then trigger an update to fire asynchronously now. - PropagateSoftUpdate(attrs, NS_ConvertUTF8toUTF16(aScope)); + SoftUpdate(attrs, aScope); } NS_IMPL_ISUPPORTS(ServiceWorkerInfo, nsIServiceWorkerInfo)