playwright/src/dispatchers
Dmitry Gozman b29b7df47e
fix(connect): handle disconnect in various situations (#6276)
There are a few ways for `connect()` to finish:
- `Browser.close()` from the client side.
- Browser on the server side did exit (e.g. crashed).
- Connection was dropped by either of the sides.

We reduce all the cases to the last one by dropping the
connection when client wants calls `Browser.close()` or
server-side browser exits.

In all these cases we should properly cleanup on the server side,
and ensure that all promises reject on the client side.
2021-05-06 09:34:06 -07:00
..
androidDispatcher.ts chore: add missing await to floating promises (#5813) 2021-03-22 09:59:39 -07:00
artifactDispatcher.ts fix: do not close stream until all bytes have been read (#6351) 2021-04-28 14:54:51 -07:00
browserContextDispatcher.ts feat(tracing): introduce context.tracing, allow exporting trace (#6313) 2021-04-24 20:39:48 -07:00
browserDispatcher.ts fix: finish all artifacts when browser exits (#6151) 2021-04-08 18:56:09 -07:00
browserTypeDispatcher.ts feat(cdp): replace wsEndpoint with protocol neutral endpointURL (#6141) 2021-04-08 14:55:28 -07:00
cdpSessionDispatcher.ts chore: move last rpc files to their place (#3604) 2020-08-24 14:48:03 -07:00
consoleMessageDispatcher.ts chore: push dispatcher guid into object, reuse it in trace (#6250) 2021-04-20 23:03:56 -07:00
dialogDispatcher.ts chore: move last rpc files to their place (#3604) 2020-08-24 14:48:03 -07:00
dispatcher.ts chore(evaluate): implement non-stalling evaluate (#6354) 2021-04-29 09:28:19 -07:00
electronDispatcher.ts chore(electron): fix node/browser race conditions, expose browser window asynchronously (#6381) 2021-05-02 22:45:06 -07:00
elementHandlerDispatcher.ts chore: push dispatcher guid into object, reuse it in trace (#6250) 2021-04-20 23:03:56 -07:00
frameDispatcher.ts chore: push dispatcher guid into object, reuse it in trace (#6250) 2021-04-20 23:03:56 -07:00
jsHandleDispatcher.ts chore: push dispatcher guid into object, reuse it in trace (#6250) 2021-04-20 23:03:56 -07:00
networkDispatchers.ts chore: push dispatcher guid into object, reuse it in trace (#6250) 2021-04-20 23:03:56 -07:00
pageDispatcher.ts chore(electron): fix node/browser race conditions, expose browser window asynchronously (#6381) 2021-05-02 22:45:06 -07:00
playwrightDispatcher.ts fix(connect): handle disconnect in various situations (#6276) 2021-05-06 09:34:06 -07:00
selectorsDispatcher.ts fix(connect): make selectors.register work in connected browser (#3664) 2020-09-02 16:15:43 -07:00
streamDispatcher.ts fix: do not close stream until all bytes have been read (#6351) 2021-04-28 14:54:51 -07:00