Commit 9597b25
committed
cookie: sync CefCookie struct and thread assertion with CEF 146
Fix REQUIRE_IO_THREAD() → REQUIRE_UI_THREAD() in cookie_visitor.cpp:
CEF 146's ExecuteVisitor runs Visit callbacks on the UI thread, not
the IO thread.
Update cef_cookie.pxd to match the actual cef_cookie_t struct in
CEF 146: add the leading size_t size field, correct the three int
fields that were wrongly declared as cpp_bool (secure, httponly,
has_expires), and add the cef_cookie_same_site_t and
cef_cookie_priority_t fields along with their enum declarations.
Expose the new fields in cookie.pyx via GetSameSite/SetSameSite and
GetPriority/SetPriority, and include them in Cookie.Get()/Set().
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ae0d5cf commit 9597b25
3 files changed
Lines changed: 44 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 128 | | |
139 | 129 | | |
140 | 130 | | |
| |||
155 | 145 | | |
156 | 146 | | |
157 | 147 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 148 | + | |
162 | 149 | | |
163 | 150 | | |
164 | | - | |
| 151 | + | |
165 | 152 | | |
166 | 153 | | |
167 | | - | |
| 154 | + | |
168 | 155 | | |
169 | 156 | | |
170 | | - | |
| 157 | + | |
171 | 158 | | |
172 | 159 | | |
173 | 160 | | |
| |||
182 | 169 | | |
183 | 170 | | |
184 | 171 | | |
185 | | - | |
| 172 | + | |
186 | 173 | | |
187 | 174 | | |
188 | | - | |
| 175 | + | |
189 | 176 | | |
190 | 177 | | |
191 | 178 | | |
192 | 179 | | |
193 | 180 | | |
194 | 181 | | |
195 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
16 | 29 | | |
| 30 | + | |
17 | 31 | | |
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
21 | | - | |
22 | | - | |
| 35 | + | |
| 36 | + | |
23 | 37 | | |
24 | 38 | | |
25 | | - | |
| 39 | + | |
26 | 40 | | |
| 41 | + | |
| 42 | + | |
27 | 43 | | |
28 | 44 | | |
29 | 45 | | |
| |||
0 commit comments