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 # where do comments take effect?
3 VAR = val1 # comment
4 VAR2 = lit2\#hash
5 VAR2_1 = lit2.1\\\#hash
6 VAR3 = val3
7 VAR4 = lit4\\#backslash
8 VAR4_1 = lit4\\\\#backslash
9 VAR5 = lit5\char
10 VAR6 = lit6\\char
11 VAR7 = lit7\\
12 VAR8 = lit8\\\\
13 VAR9 = lit9\\\\extra
14 # This comment extends to the next line \
15 VAR3 = ignored
17 all:
18 test "$(VAR)" = "val1 "
19 test "$(VAR2)" = "lit2#hash"
20 test '$(VAR2_1)' = 'lit2.1\#hash'
21 test "$(VAR3)" = "val3"
22 test '$(VAR4)' = 'lit4\'
23 test '$(VAR4_1)' = 'lit4\\'
24 test '$(VAR5)' = 'lit5\char'
25 test '$(VAR6)' = 'lit6\\char'
26 test '$(VAR7)' = 'lit7\\'
27 test '$(VAR8)' = 'lit8\\\\'
28 test '$(VAR9)' = 'lit9\\\\extra'
29 @echo "TEST-PASS"