Skip to content

Commit

Permalink
Bug 1685403 - Use NS_GetFinalChannelURI at some places, r=necko-revie…
Browse files Browse the repository at this point in the history
…wers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D164656
  • Loading branch information
KershawChang committed Feb 13, 2023
1 parent 15e9036 commit f8bc164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dom/fetch/FetchDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/antitracking/AntiTrackingUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f8bc164

Please sign in to comment.