mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1227015 P4 Make register job always require an explicit script spec. r=ehsan
This commit is contained in:
parent
00c0e624e5
commit
d40ef59cb0
@ -1218,9 +1218,10 @@ public:
|
||||
// [[Update]]
|
||||
ServiceWorkerRegisterJob(ServiceWorkerJobQueue* aQueue,
|
||||
ServiceWorkerRegistrationInfo* aRegistration,
|
||||
ServiceWorkerUpdateFinishCallback* aCallback)
|
||||
ServiceWorkerUpdateFinishCallback* aCallback,
|
||||
const nsACString& aScriptSpec)
|
||||
: ServiceWorkerScriptJobBase(aQueue, Type::UpdateJob, aCallback,
|
||||
aRegistration, nullptr, EmptyCString())
|
||||
aRegistration, nullptr, aScriptSpec)
|
||||
{
|
||||
AssertIsOnMainThread();
|
||||
}
|
||||
@ -3638,7 +3639,8 @@ ServiceWorkerManager::SoftUpdate(const OriginAttributes& aOriginAttributes,
|
||||
MOZ_ASSERT(queue);
|
||||
|
||||
RefPtr<ServiceWorkerRegisterJob> job =
|
||||
new ServiceWorkerRegisterJob(queue, registration, nullptr);
|
||||
new ServiceWorkerRegisterJob(queue, registration, nullptr,
|
||||
newest->ScriptSpec());
|
||||
queue->Append(job);
|
||||
}
|
||||
}
|
||||
@ -3692,7 +3694,8 @@ ServiceWorkerManager::Update(nsIPrincipal* aPrincipal,
|
||||
// "Invoke Update algorithm, or its equivalent, with client, registration as
|
||||
// its argument."
|
||||
RefPtr<ServiceWorkerRegisterJob> job =
|
||||
new ServiceWorkerRegisterJob(queue, registration, aCallback);
|
||||
new ServiceWorkerRegisterJob(queue, registration, aCallback,
|
||||
newest->ScriptSpec());
|
||||
queue->Append(job);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user