Commit d30882a
fix: emit 'event' catch-all on CDPSession; add test
The JS CDPSession fires two events per CDP protocol event:
this.emit(event.method, event.params) // method-specific
this.emit('event', event) // catch-all with { method, params }
Java was only firing the method-specific one. Add the missing
listeners.notify("event", parameters) call so on("event", handler)
receives every CDP event as { method, params }.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5396dde commit d30882a
File tree
2 files changed
+21
-0
lines changed- playwright/src
- main/java/com/microsoft/playwright/impl
- test/java/com/microsoft/playwright
2 files changed
+21
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
158 | 178 | | |
159 | 179 | | |
160 | 180 | | |
| |||
0 commit comments