mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
12615bef93
commit
5d88f104b5
@ -3591,7 +3591,7 @@ ServiceWorkerManager::PrepareFetchEvent(const PrincipalOriginAttributes& aOrigin
|
||||
documentId = aDocumentIdForTopLevelNavigation;
|
||||
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
aRv = internalChannel->GetURI(getter_AddRefs(uri));
|
||||
aRv = aChannel->GetSecureUpgradedChannelURI(getter_AddRefs(uri));
|
||||
if (NS_WARN_IF(aRv.Failed())) {
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user