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 all:
2 # $(RM) defaults to -f
3 $(RM) nosuchfile
4 touch newfile
5 test -f newfile
6 $(RM) newfile
7 test ! -f newfile
8 mkdir newdir
9 test -d newdir
10 touch newdir/newfile
11 mkdir newdir/subdir
12 $(RM) -r newdir/subdir
13 test ! -d newdir/subdir
14 test -d newdir
15 mkdir newdir/subdir1 newdir/subdir2
16 $(RM) -r newdir/subdir1 newdir/subdir2
17 test ! -d newdir/subdir1 -a ! -d newdir/subdir2
18 test -d newdir
19 $(RM) -r newdir
20 test ! -d newdir
21 @echo TEST-PASS