Repository navigation
Commit 9c6d90a
committed
[WPEPlatform] WPEClipboard.changed vfunc gets passed a stray null format
https://bugs.webkit.org/show_bug.cgi?id=327420
Reviewed by Patrick Griffis.
Use a null-terminated GPtrArray to hold the list of formats passed to the
WPEClipboard.changed() virtual function. This way the GPtrArray::len member
correctly indicates the number of elements in the array while still being
possible to use it as the return value for wpe_clipboard_get_formats().
Using g_ptr_array_new_null_terminated() requires GLib 2.74, the requirement
is updated accordingly for the WPE port.
* Source/WTF/wtf/Platform.h:
* Source/WebKit/WPEPlatform/wpe/WPEClipboard.cpp:
(wpe_clipboard_set_content):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEClipboardWayland.cpp:
(wpeClipboardWaylandChanged):
* Source/cmake/OptionsWPE.cmake:
Canonical link: https://commits.webkit.org/324164@main1 parent a6908ef commit 9c6d90a
4 files changed
Lines changed: 5 additions & 6 deletions
File tree
- Source
- WTF/wtf
- WebKit/WPEPlatform/wpe
- wayland
- cmake
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments