Commit 2280876
Reland "Context menu: fix event handling on close"
This is a reland of commit dcc0329
The original CL caused e2e test failures on Mac bots. This reland
aims to fix this by awaiting the context menus to be fully closed
before moving on.
Original change's description:
> Context menu: fix event handling on close
>
> On Windows, closing a context menu by clicking on the button which
> opened it, would immediately re-open the menu. A fix was added in
> https://crrev.com/c/5592569, which relies on `requestAnimationFrame`.
> rAF does not trigger when when the window is not visible, which can
> happen for the device toolbar (rendered in the main browser window)
> when DevTools is detached and hidden behind another window.
>
> This CL replaces `requestAnimationFrame` with `setTimeout`.
>
> Bug: 377161958, 339560549
> Change-Id: Id6af436c41d14a6e16160faff4e160e40bbe4122
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6004964
> Auto-Submit: Wolfgang Beyer <[email protected]>
> Reviewed-by: Benedikt Meurer <[email protected]>
> Commit-Queue: Benedikt Meurer <[email protected]>
Bug: 377161958, 339560549
Change-Id: I3bef672cbfa201f7b53aa3003a709789394a8b0a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6017683
Auto-Submit: Wolfgang Beyer <[email protected]>
Reviewed-by: Benedikt Meurer <[email protected]>
Commit-Queue: Benedikt Meurer <[email protected]>1 parent 6557eac commit 2280876
File tree
5 files changed
+37
-6
lines changed- front_end/ui/legacy
- test/e2e
- emulation
- helpers
- recorder
5 files changed
+37
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
124 | 143 | | |
125 | 144 | | |
126 | 145 | | |
127 | 146 | | |
128 | 147 | | |
| 148 | + | |
129 | 149 | | |
130 | 150 | | |
131 | 151 | | |
| |||
155 | 175 | | |
156 | 176 | | |
157 | 177 | | |
| 178 | + | |
158 | 179 | | |
159 | 180 | | |
160 | 181 | | |
| |||
163 | 184 | | |
164 | 185 | | |
165 | 186 | | |
| 187 | + | |
166 | 188 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| |||
0 commit comments