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 # The *name* of variables can be constructed dynamically.
3 VARNAME = FOOBAR
5 $(VARNAME) = foovalue
6 $(VARNAME)2 = foo2value
8 $(VARNAME:%BAR=%BAM) = foobam
10 all:
11 test "$(FOOBAR)" = "foovalue"
12 test "$(flavor FOOBAZ)" = "undefined"
13 test "$(FOOBAR2)" = "bazvalue"
14 test "$(FOOBAM)" = "foobam"
15 @echo TEST-PASS
17 VARNAME = FOOBAZ
18 FOOBAR2 = bazvalue