Bug 503713 - safe browsing requests shouldn't be placed in disk cache, r=tony

This commit is contained in:
Blair McBride 2009-10-13 15:41:34 +02:00
Родитель 9301785e23
Коммит 1364829dab
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -125,7 +125,10 @@ nsUrlClassifierHashCompleterRequest::OpenChannel()
LOG(("nsUrlClassifierHashCompleterRequest::OpenChannel [%p]", this));
nsresult rv;
rv = NS_NewChannel(getter_AddRefs(mChannel), mURI);
PRUint32 loadFlags = nsIChannel::INHIBIT_CACHING |
nsIChannel::LOAD_BYPASS_CACHE;
rv = NS_NewChannel(getter_AddRefs(mChannel), mURI, nsnull, nsnull, nsnull,
loadFlags);
NS_ENSURE_SUCCESS(rv, rv);
nsCAutoString requestBody;

Просмотреть файл

@ -134,7 +134,10 @@ nsUrlClassifierStreamUpdater::FetchUpdate(nsIURI *aUpdateUrl,
const nsACString & aServerMAC)
{
nsresult rv;
rv = NS_NewChannel(getter_AddRefs(mChannel), aUpdateUrl, nsnull, nsnull, this);
PRUint32 loadFlags = nsIChannel::INHIBIT_CACHING |
nsIChannel::LOAD_BYPASS_CACHE;
rv = NS_NewChannel(getter_AddRefs(mChannel), aUpdateUrl, nsnull, nsnull, this,
loadFlags);
NS_ENSURE_SUCCESS(rv, rv);
mBeganStream = PR_FALSE;