Bug 1227015 P3 Require a script spec on install jobs. r=ehsan

This commit is contained in:
Ben Kelly 2015-12-08 11:58:45 -05:00
Родитель 3e15fcaa7d
Коммит 00c0e624e5
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -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<ServiceWorkerInstallJob> job =
new ServiceWorkerInstallJob(mQueue, mCallback,
mRegistration, mUpdateAndInstallInfo);
new ServiceWorkerInstallJob(mQueue, mCallback, mRegistration,
mUpdateAndInstallInfo, mScriptSpec);
mQueue->Append(job);
Done(NS_OK);
}