зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1290944 - Part 2.2: Load the main script with the load flags of the ServiceWorkerRegistration. r=bkelly
--HG-- extra : rebase_source : 313acc76937d6fe6905f7392101c55e6dddb1beb extra : histedit_source : 8e0c5ba6490c7820e1066757594e219ad421981a
This commit is contained in:
Родитель
823817b955
Коммит
7b90ecb108
|
@ -626,6 +626,7 @@ CompareNetwork::Initialize(nsIPrincipal* aPrincipal, const nsAString& aURL, nsIL
|
|||
nsLoadFlags flags = nsIChannel::LOAD_BYPASS_SERVICE_WORKER;
|
||||
RefPtr<ServiceWorkerRegistrationInfo> registration =
|
||||
mManager->GetRegistration();
|
||||
flags |= registration->GetLoadFlags();
|
||||
if (registration->IsLastUpdateCheckTimeOverOneDay()) {
|
||||
flags |= nsIRequest::LOAD_BYPASS_CACHE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче