Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 #!/bin/bash
2 # A script to generate toolkit/components/downloads/csd.pb.{cc,h} for use in
3 # nsIApplicationReputationQuery. This script assumes you have downloaded and
4 # installed the protocol buffer compiler.
6 if [ -n $PROTOC_PATH ]; then
7 PROTOC_PATH=/usr/local/bin/protoc
8 fi
10 echo "Using $PROTOC_PATH as protocol compiler"
12 if [ ! -e $PROTOC_PATH ]; then
13 echo "You must install the protocol compiler from " \
14 "https://code.google.com/p/protobuf/downloads/list"
15 exit 1
16 fi
18 # Get the protocol buffer and compile it
19 CMD='wget http://src.chromium.org/chrome/trunk/src/chrome/common/safe_browsing/csd.proto -O csd.proto'
20 OUTPUT_PATH=toolkit/components/downloads
22 $CMD
23 $PROTOC_PATH csd.proto --cpp_out=$OUTPUT_PATH