playwright/packages/playwright-core/src/server/dispatchers
Dmitry Gozman fea8772d95
fix: emit load/domcontentloaded events as reported by the browser (#16861)
Instead of requiring all frames in the subtree to receive a particular
event, we rely on the browser's definition of load and DOMContentLoaded.

This changes logic in a few edge cases:
- Some browsers do not emit load event upon window.stop() at all.
- DOMContentLoaded does not wait for subframes, so they might not be
  ready when passing `{ waitUntil: 'domcontentloaded' }`.

`networkidle` preserves the old logic.
2022-08-26 13:48:05 -07:00
..
androidDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
artifactDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
browserContextDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
browserDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
browserTypeDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
cdpSessionDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
consoleMessageDispatcher.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00
DEPS.list chore: make bundles typed (#13620) 2022-04-18 17:50:25 -07:00
dialogDispatcher.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00
dispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
electronDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
elementHandlerDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
frameDispatcher.ts fix: emit load/domcontentloaded events as reported by the browser (#16861) 2022-08-26 13:48:05 -07:00
jsHandleDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
jsonPipeDispatcher.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00
localUtilsDispatcher.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00
networkDispatchers.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
pageDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
playwrightDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
selectorsDispatcher.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00
streamDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
tracingDispatcher.ts chore: dispatcher is a scope (#16843) 2022-08-26 09:30:27 -07:00
writableStreamDispatcher.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00