Commit 7ee25c5
committed
fix(v3): address Copilot review on #5192
- mainthread_android.go: apply the same RLock -> Lock change made to
the linux/macOS/iOS callback paths. Android uses the same shared
mainThreadFunctionStore, so it had the identical map-write under
RLock pattern.
- transport_event_ipc_test: the previous lock-release test used an
empty windows map and so would also have passed against the broken
(lock-held-across-dispatch) implementation. Replace it with a probe
Window whose DispatchWailsEvent attempts windowsLock.TryLock(); the
fixed snapshot-and-release path lets the TryLock succeed, a
regression to holding RLock across per-window dispatch fails it.
Verified by mutation-test against the regressed implementation.
- test/4424-event-block: the manual repro had no webview window and
so EventIPCTransport.DispatchWailsEvent's per-window loop was a
no-op, making the harness unable to reach the ExecJS path involved
in #4424. Add a small webview window that subscribes to the emitted
event, bump the emit cadence to 100ms so menu clicks have a high
probability of landing during a dispatch, and document the manual
pass/fail criteria in the file header.1 parent d28a99a commit 7ee25c5
4 files changed
Lines changed: 114 additions & 22 deletions
File tree
- v3
- pkg/application
- test/4424-event-block
- assets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
10 | 36 | | |
11 | 37 | | |
12 | 38 | | |
13 | 39 | | |
| 40 | + | |
| 41 | + | |
14 | 42 | | |
15 | 43 | | |
16 | | - | |
| 44 | + | |
17 | 45 | | |
18 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
19 | 50 | | |
| 51 | + | |
20 | 52 | | |
21 | 53 | | |
22 | 54 | | |
23 | 55 | | |
24 | 56 | | |
25 | 57 | | |
26 | | - | |
27 | 58 | | |
28 | 59 | | |
29 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
13 | 39 | | |
14 | 40 | | |
15 | 41 | | |
16 | | - | |
| 42 | + | |
17 | 43 | | |
18 | 44 | | |
19 | 45 | | |
20 | 46 | | |
21 | 47 | | |
22 | 48 | | |
23 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
24 | 59 | | |
25 | 60 | | |
26 | 61 | | |
27 | 62 | | |
28 | 63 | | |
29 | 64 | | |
30 | | - | |
| 65 | + | |
31 | 66 | | |
32 | | - | |
| 67 | + | |
33 | 68 | | |
34 | 69 | | |
35 | 70 | | |
| |||
40 | 75 | | |
41 | 76 | | |
42 | 77 | | |
43 | | - | |
44 | 78 | | |
45 | 79 | | |
46 | | - | |
47 | 80 | | |
48 | 81 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
53 | 86 | | |
54 | 87 | | |
55 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
56 | 91 | | |
57 | | - | |
58 | 92 | | |
59 | 93 | | |
60 | | - | |
| 94 | + | |
61 | 95 | | |
62 | | - | |
63 | 96 | | |
64 | 97 | | |
65 | 98 | | |
66 | 99 | | |
67 | | - | |
68 | 100 | | |
69 | 101 | | |
70 | 102 | | |
| |||
0 commit comments