зеркало из https://github.com/mozilla/pjs.git
Bug 503713 - safe browsing requests shouldn't be placed in disk cache, r=tony
This commit is contained in:
Родитель
9301785e23
Коммит
1364829dab
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче