mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1310127 - Part 7: Use MOZ_MUST_USE in netwerk/protocol/http r=jst
MozReview-Commit-ID: NpX8rph1Ke --HG-- extra : rebase_source : d54c2ea6a67d0ef85b5a0fbe2bad70dddf02d879
This commit is contained in:
parent
0ec220a22a
commit
37771b2752
@ -1386,8 +1386,10 @@ nsresult nsWebBrowserPersist::SaveURIInternal(
|
||||
{
|
||||
nsCOMPtr<nsIHttpChannelInternal> httpChannelInternal =
|
||||
do_QueryInterface(inputChannel);
|
||||
if (httpChannelInternal)
|
||||
httpChannelInternal->SetThirdPartyFlags(nsIHttpChannelInternal::THIRD_PARTY_FORCE_ALLOW);
|
||||
if (httpChannelInternal) {
|
||||
rv = httpChannelInternal->SetThirdPartyFlags(nsIHttpChannelInternal::THIRD_PARTY_FORCE_ALLOW);
|
||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||
}
|
||||
}
|
||||
|
||||
// Set the referrer, post data and headers if any
|
||||
@ -1397,7 +1399,8 @@ nsresult nsWebBrowserPersist::SaveURIInternal(
|
||||
// Referrer
|
||||
if (aReferrer)
|
||||
{
|
||||
httpChannel->SetReferrerWithPolicy(aReferrer, aReferrerPolicy);
|
||||
rv = httpChannel->SetReferrerWithPolicy(aReferrer, aReferrerPolicy);
|
||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||
}
|
||||
|
||||
// Post data
|
||||
|
Loading…
x
Reference in New Issue
Block a user