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/sh
3 LC_ALL=C
4 export LC_ALL
6 test -z "$srcdir" && srcdir=.
7 stat=0
9 test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
10 test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
13 for x in $HBHEADERS $HBSOURCES; do
14 test -f "$srcdir/$x" && x="$srcdir/$x"
15 echo "$x" | grep '[^h]$' -q && continue;
16 xx=`echo "$x" | sed 's@.*/@@'`
17 tag=`echo "$xx" | tr 'a-z.-' 'A-Z_'`
18 lines=`grep "\<$tag\>" "$x" | wc -l | sed 's/[ ]*//g'`
19 if test "x$lines" != x3; then
20 echo "Ouch, header file $x does not have correct preprocessor guards"
21 stat=1
22 fi
23 done
25 exit $stat