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 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | /*======================================================== |
michael@0 | 6 | This is a Generated file. Please don't edit it. |
michael@0 | 7 | |
michael@0 | 8 | The tool which used to generate this file is called fromu. |
michael@0 | 9 | If you have any problem of this file. Please contact |
michael@0 | 10 | Netscape Client International Team or |
michael@0 | 11 | ftang@netscape <Frank Tang> |
michael@0 | 12 | |
michael@0 | 13 | Table in Debug form |
michael@0 | 14 | Begin of Item 0000 |
michael@0 | 15 | Format 0 |
michael@0 | 16 | srcBegin = 0000 |
michael@0 | 17 | srcEnd = 007F |
michael@0 | 18 | destBegin = 0000 |
michael@0 | 19 | End of Item 0000 |
michael@0 | 20 | |
michael@0 | 21 | Begin of Item 0001 |
michael@0 | 22 | Format 0 |
michael@0 | 23 | srcBegin = 00A0 |
michael@0 | 24 | srcEnd = 00CF |
michael@0 | 25 | destBegin = 00A0 |
michael@0 | 26 | End of Item 0001 |
michael@0 | 27 | |
michael@0 | 28 | Begin of Item 0002 |
michael@0 | 29 | Format 0 |
michael@0 | 30 | srcBegin = 00D1 |
michael@0 | 31 | srcEnd = 00DC |
michael@0 | 32 | destBegin = 00D1 |
michael@0 | 33 | End of Item 0002 |
michael@0 | 34 | |
michael@0 | 35 | Begin of Item 0003 |
michael@0 | 36 | Format 0 |
michael@0 | 37 | srcBegin = 00DF |
michael@0 | 38 | srcEnd = 00EF |
michael@0 | 39 | destBegin = 00DF |
michael@0 | 40 | End of Item 0003 |
michael@0 | 41 | |
michael@0 | 42 | Begin of Item 0004 |
michael@0 | 43 | Format 0 |
michael@0 | 44 | srcBegin = 00F1 |
michael@0 | 45 | srcEnd = 00FC |
michael@0 | 46 | destBegin = 00F1 |
michael@0 | 47 | End of Item 0004 |
michael@0 | 48 | |
michael@0 | 49 | Begin of Item 0005 |
michael@0 | 50 | Format 1 |
michael@0 | 51 | srcBegin = 0080 |
michael@0 | 52 | srcEnd = 009F |
michael@0 | 53 | mappingOffset = 0000 |
michael@0 | 54 | Mapping = |
michael@0 | 55 | 20AC FFFD 201A 0192 201E 2026 2020 2021 |
michael@0 | 56 | 02C6 2030 0160 2039 0152 FFFD FFFD FFFD |
michael@0 | 57 | FFFD 2018 2019 201C 201D 2022 2013 2014 |
michael@0 | 58 | 02DC 2122 0161 203A 0153 FFFD FFFD 0178 |
michael@0 | 59 | End of Item 0005 |
michael@0 | 60 | |
michael@0 | 61 | Begin of Item 0006 |
michael@0 | 62 | Format 2 |
michael@0 | 63 | srcBegin = 00D0 |
michael@0 | 64 | destBegin = 011E |
michael@0 | 65 | End of Item 0006 |
michael@0 | 66 | |
michael@0 | 67 | Begin of Item 0007 |
michael@0 | 68 | Format 1 |
michael@0 | 69 | srcBegin = 00DD |
michael@0 | 70 | srcEnd = 00DE |
michael@0 | 71 | mappingOffset = 0020 |
michael@0 | 72 | Mapping = |
michael@0 | 73 | 0130 015E |
michael@0 | 74 | End of Item 0007 |
michael@0 | 75 | |
michael@0 | 76 | Begin of Item 0008 |
michael@0 | 77 | Format 2 |
michael@0 | 78 | srcBegin = 00F0 |
michael@0 | 79 | destBegin = 011F |
michael@0 | 80 | End of Item 0008 |
michael@0 | 81 | |
michael@0 | 82 | Begin of Item 0009 |
michael@0 | 83 | Format 1 |
michael@0 | 84 | srcBegin = 00FD |
michael@0 | 85 | srcEnd = 00FF |
michael@0 | 86 | mappingOffset = 0022 |
michael@0 | 87 | Mapping = |
michael@0 | 88 | 0131 015F 00FF |
michael@0 | 89 | End of Item 0009 |
michael@0 | 90 | |
michael@0 | 91 | ========================================================*/ |
michael@0 | 92 | /* Offset=0x0000 ItemOfList */ |
michael@0 | 93 | 0x000A, |
michael@0 | 94 | /*-------------------------------------------------------*/ |
michael@0 | 95 | /* Offset=0x0001 offsetToFormatArray */ |
michael@0 | 96 | 0x0004, |
michael@0 | 97 | /*-------------------------------------------------------*/ |
michael@0 | 98 | /* Offset=0x0002 offsetToMapCellArray */ |
michael@0 | 99 | 0x0007, |
michael@0 | 100 | /*-------------------------------------------------------*/ |
michael@0 | 101 | /* Offset=0x0003 offsetToMappingTable */ |
michael@0 | 102 | 0x0025, |
michael@0 | 103 | /*-------------------------------------------------------*/ |
michael@0 | 104 | /* Offset=0x0004 Start of Format Array */ |
michael@0 | 105 | /* Total of Format 0 : 0x0005 */ |
michael@0 | 106 | /* Total of Format 1 : 0x0003 */ |
michael@0 | 107 | /* Total of Format 2 : 0x0002 */ |
michael@0 | 108 | /* Total of Format 3 : 0x0000 */ |
michael@0 | 109 | |
michael@0 | 110 | 0x0000, 0x1210, 0x0012, |
michael@0 | 111 | /*-------------------------------------------------------*/ |
michael@0 | 112 | /* Offset=0x0007 Start of MapCell Array */ |
michael@0 | 113 | /* 0000 */ 0x0000, 0x007F, 0x0000, |
michael@0 | 114 | /* 0001 */ 0x00A0, 0x00CF, 0x00A0, |
michael@0 | 115 | /* 0002 */ 0x00D1, 0x00DC, 0x00D1, |
michael@0 | 116 | /* 0003 */ 0x00DF, 0x00EF, 0x00DF, |
michael@0 | 117 | /* 0004 */ 0x00F1, 0x00FC, 0x00F1, |
michael@0 | 118 | /* 0005 */ 0x0080, 0x009F, 0x0000, |
michael@0 | 119 | /* 0006 */ 0x00D0, 0x0000, 0x011E, |
michael@0 | 120 | /* 0007 */ 0x00DD, 0x00DE, 0x0020, |
michael@0 | 121 | /* 0008 */ 0x00F0, 0x0000, 0x011F, |
michael@0 | 122 | /* 0009 */ 0x00FD, 0x00FF, 0x0022, |
michael@0 | 123 | /*-------------------------------------------------------*/ |
michael@0 | 124 | /* Offset=0x0025 Start of MappingTable */ |
michael@0 | 125 | |
michael@0 | 126 | /* 0000 */ 0x20AC, 0xFFFD, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, |
michael@0 | 127 | /* 0008 */ 0x02C6, 0x2030, 0x0160, 0x2039, 0x0152, 0xFFFD, 0xFFFD, 0xFFFD, |
michael@0 | 128 | /* 0010 */ 0xFFFD, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, |
michael@0 | 129 | /* 0018 */ 0x02DC, 0x2122, 0x0161, 0x203A, 0x0153, 0xFFFD, 0xFFFD, 0x0178, |
michael@0 | 130 | /* 0020 */ 0x0130, 0x015E, 0x0131, 0x015F, 0x00FF, |
michael@0 | 131 | /* End of table Total Length = 0x004A * 2 */ |