mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 998007: Use SafeBrowsing app id for application reputation checks. r=ckerschb
This commit is contained in:
parent
67c66ddeb2
commit
cbf89f1a38
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user