зеркало из https://github.com/mozilla/gecko-dev.git
Bug 998007: Use SafeBrowsing app id for application reputation checks. r=ckerschb
This commit is contained in:
Родитель
0d090f0f14
Коммит
5fc6d9fe0c
|
@ -29,6 +29,7 @@
|
|||
#include "mozilla/Services.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/LoadContext.h"
|
||||
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
@ -767,6 +768,13 @@ PendingLookup::SendRemoteQueryInternal()
|
|||
NS_LITERAL_CSTRING("POST"), false);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Set the Safebrowsing cookie jar, so that the regular Google cookie is not
|
||||
// sent with this request. See bug 897516.
|
||||
nsCOMPtr<nsIInterfaceRequestor> loadContext =
|
||||
new mozilla::LoadContext(NECKO_SAFEBROWSING_APP_ID);
|
||||
rv = channel->SetNotificationCallbacks(loadContext);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = channel->AsyncOpen(this, nullptr);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
|
|
|
@ -37,7 +37,9 @@ if CONFIG['MOZ_URL_CLASSIFIER']:
|
|||
]
|
||||
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
UNIFIED_SOURCES += [
|
||||
# Can't build unified because we need CreateEvent which some IPC code
|
||||
# included in LoadContext ends up undefining.
|
||||
SOURCES += [
|
||||
'nsDownloadScanner.cpp',
|
||||
]
|
||||
|
||||
|
@ -55,6 +57,7 @@ FINAL_LIBRARY = 'toolkitcomps'
|
|||
|
||||
LOCAL_INCLUDES += [
|
||||
'../protobuf',
|
||||
'/ipc/chromium/src'
|
||||
]
|
||||
|
||||
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
|
||||
|
|
Загрузка…
Ссылка в новой задаче