mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 629621 - Make the content sink no longer write http-equivs back to Necko. r=bzbarsky.
This commit is contained in:
parent
2ada9e17bf
commit
91f8167664
@ -535,24 +535,6 @@ nsContentSink::ProcessHeaderData(nsIAtom* aHeader, const nsAString& aValue,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Don't report "refresh" headers back to necko, since our document handles
|
|
||||||
// them
|
|
||||||
else if (aHeader != nsGkAtoms::refresh && mParser) {
|
|
||||||
// we also need to report back HTTP-EQUIV headers to the channel
|
|
||||||
// so that it can process things like pragma: no-cache or other
|
|
||||||
// cache-control headers. Ideally this should also be the way for
|
|
||||||
// cookies to be set! But we'll worry about that in the next
|
|
||||||
// iteration
|
|
||||||
nsCOMPtr<nsIChannel> channel;
|
|
||||||
if (NS_SUCCEEDED(mParser->GetChannel(getter_AddRefs(channel)))) {
|
|
||||||
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel));
|
|
||||||
if (httpChannel) {
|
|
||||||
httpChannel->SetResponseHeader(nsAtomCString(aHeader),
|
|
||||||
NS_ConvertUTF16toUTF8(aValue),
|
|
||||||
PR_TRUE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user