зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1214305 - Part 4: Use the secure upgraded channel URI in ServiceWorkerManager::PrepareFetchEvent; r=jdm
This is needed to ensure that the ServiceWorkerManager uses the correct URI for non-subresource requests. Note that we're relying on the property that non-secure non-subresource requests can never be intercepted, so we don't need to check the request type explicitly.
This commit is contained in:
Родитель
03d8835f92
Коммит
2d89eea92a
|
@ -3165,7 +3165,7 @@ ServiceWorkerManager::PrepareFetchEvent(const OriginAttributes& aOriginAttribute
|
|||
internalChannel->GetLoadGroup(getter_AddRefs(loadGroup));
|
||||
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
aRv = internalChannel->GetURI(getter_AddRefs(uri));
|
||||
aRv = aChannel->GetSecureUpgradedChannelURI(getter_AddRefs(uri));
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче