зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1227015 P3 Require a script spec on install jobs. r=ehsan
This commit is contained in:
Родитель
3e15fcaa7d
Коммит
00c0e624e5
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче