From 00c0e624e50e540445141d692a88e25381845c24 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 8 Dec 2015 11:58:45 -0500 Subject: [PATCH] Bug 1227015 P3 Require a script spec on install jobs. r=ehsan --- dom/workers/ServiceWorkerManager.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 7c4863a1f50c..3c6c4b28ffac 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -1053,10 +1053,11 @@ public: ServiceWorkerInstallJob(ServiceWorkerJobQueue* aQueue, ServiceWorkerUpdateFinishCallback* aCallback, ServiceWorkerRegistrationInfo* aRegistration, - ServiceWorkerInfo* aServiceWorkerInfo) + ServiceWorkerInfo* aServiceWorkerInfo, + const nsACString& aScriptSpec) : ServiceWorkerScriptJobBase(aQueue, Type::InstallJob, aCallback, aRegistration, aServiceWorkerInfo, - EmptyCString()) + aScriptSpec) { MOZ_ASSERT(aRegistration); } @@ -1393,8 +1394,8 @@ private: } RefPtr job = - new ServiceWorkerInstallJob(mQueue, mCallback, - mRegistration, mUpdateAndInstallInfo); + new ServiceWorkerInstallJob(mQueue, mCallback, mRegistration, + mUpdateAndInstallInfo, mScriptSpec); mQueue->Append(job); Done(NS_OK); }