Bug 1685403 - Use NS_GetFinalChannelURI at some places, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D164656
This commit is contained in:
@@ -72,7 +72,7 @@ void GetBlobURISpecFromChannel(nsIRequest* aRequest, nsCString& aBlobURISpec) {
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
nsresult rv = channel->GetURI(getter_AddRefs(uri));
|
||||
nsresult rv = NS_GetFinalChannelURI(channel, getter_AddRefs(uri));
|
||||
if (NS_FAILED(rv)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ already_AddRefed<nsIURI> AntiTrackingUtils::MaybeGetDocumentURIBeingLoaded(
|
||||
// coming from an OnStopRequest notification, which might mean that our
|
||||
// document may still be in the loading process, so we may need to pass in
|
||||
// the uriBeingLoaded argument explicitly.
|
||||
rv = aChannel->GetURI(getter_AddRefs(uriBeingLoaded));
|
||||
rv = NS_GetFinalChannelURI(aChannel, getter_AddRefs(uriBeingLoaded));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user