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.
michael@0 | 1 | ; A typical MakeCommandLine test will contain an input and an output name value |
michael@0 | 2 | ; pair. The value for input_xx is the input command line and the value for |
michael@0 | 3 | ; output_xx is the expected output command line. |
michael@0 | 4 | ; |
michael@0 | 5 | ; A test that is known to fail can be added as follows. If the passes_xx name |
michael@0 | 6 | ; value pair doesn't exist it defaults to true. |
michael@0 | 7 | ; input_99=yabadaba |
michael@0 | 8 | ; output_99=doo |
michael@0 | 9 | ; passes_99=false |
michael@0 | 10 | ; |
michael@0 | 11 | ; If a value starts and ends with single or double quotation marks then it must |
michael@0 | 12 | ; be enclosed in single or double quotation marks due to GetPrivateProfileString |
michael@0 | 13 | ; discarding the outmost quotation marks. See GetPrivateProfileString on MSDN |
michael@0 | 14 | ; for more information. |
michael@0 | 15 | ; http://msdn.microsoft.com/en-us/library/ms724353.aspx |
michael@0 | 16 | |
michael@0 | 17 | [MakeCommandLineTests] |
michael@0 | 18 | input_0=a:\ |
michael@0 | 19 | output_0=a:\ |
michael@0 | 20 | |
michael@0 | 21 | input_1=""a:\"" |
michael@0 | 22 | output_1=a:\" |
michael@0 | 23 | |
michael@0 | 24 | input_2=""a:\b c"" |
michael@0 | 25 | output_2=""a:\b c"" |
michael@0 | 26 | |
michael@0 | 27 | input_3=""a:\b c\"" |
michael@0 | 28 | output_3=""a:\b c\""" |
michael@0 | 29 | |
michael@0 | 30 | input_4=""a:\b c\d e"" |
michael@0 | 31 | output_4=""a:\b c\d e"" |
michael@0 | 32 | |
michael@0 | 33 | input_5=""a:\b c\d e\"" |
michael@0 | 34 | output_5=""a:\b c\d e\""" |
michael@0 | 35 | |
michael@0 | 36 | input_6=""a:\\"" |
michael@0 | 37 | output_6=a:\ |
michael@0 | 38 | |
michael@0 | 39 | input_7="a:\" "b:\c d" |
michael@0 | 40 | output_7=a:\" "b:\c d" |
michael@0 | 41 | |
michael@0 | 42 | input_8="a "b:\" "c:\d e"" |
michael@0 | 43 | output_8="a "b:\" c:\d" e" |
michael@0 | 44 | |
michael@0 | 45 | input_9="abc" d e |
michael@0 | 46 | output_9=abc d e |
michael@0 | 47 | |
michael@0 | 48 | input_10="a b c" d e |
michael@0 | 49 | output_10="a b c" d e |
michael@0 | 50 | |
michael@0 | 51 | input_11=a\\\b d"e f"g h |
michael@0 | 52 | output_11=a\\\b "de fg" h |
michael@0 | 53 | |
michael@0 | 54 | input_12=a b |
michael@0 | 55 | output_12=a b |
michael@0 | 56 | |
michael@0 | 57 | input_13=""a b"" |
michael@0 | 58 | output_13=""a b"" |
michael@0 | 59 | |
michael@0 | 60 | input_14=a\\\"b c d |
michael@0 | 61 | output_14=a\\\"b c d |
michael@0 | 62 | |
michael@0 | 63 | input_15=a\\\"b c" |
michael@0 | 64 | output_15=a\\\"b c |
michael@0 | 65 | |
michael@0 | 66 | input_16=""a\\\b c" |
michael@0 | 67 | output_16=""a\\\b c"" |
michael@0 | 68 | |
michael@0 | 69 | input_17=\"a |
michael@0 | 70 | output_17=\"a |
michael@0 | 71 | |
michael@0 | 72 | input_18=\\"a |
michael@0 | 73 | output_18=\a |
michael@0 | 74 | |
michael@0 | 75 | input_19=\\"\\\\"a |
michael@0 | 76 | output_19=\\\a |
michael@0 | 77 | |
michael@0 | 78 | input_20=\\"\\\\\"a |
michael@0 | 79 | output_20=\\\\\\\"a |
michael@0 | 80 | |
michael@0 | 81 | input_21="a\\\"b c\" d e |
michael@0 | 82 | output_21=""a\\\"b c\" d e"" |
michael@0 | 83 | |
michael@0 | 84 | input_22=a\\\\\"b c" d e" |
michael@0 | 85 | output_22=a\\\\\"b "c d e" |
michael@0 | 86 | |
michael@0 | 87 | input_23=a:\b c\アルファ オメガ\d |
michael@0 | 88 | output_23=a:\b c\アルファ オメガ\d |
michael@0 | 89 | |
michael@0 | 90 | input_24=a:\b "c\アルファ オメガ\d" |
michael@0 | 91 | output_24=a:\b "c\アルファ オメガ\d" |
michael@0 | 92 | |
michael@0 | 93 | input_25=アルファ オメガ |
michael@0 | 94 | output_25=アルファ オメガ |