playwright/packages/playwright-core/src/protocol
Dmitry Gozman cdb862767f
fix(page): "load" event should fire before "waitForLoadState" resolves (#14897)
Currently, `loadstate` and `load` are two separate events in the protocol,
and are fired in this order. As a result, `waitForLoadState()` sometimes
resolves before the `'load'` event is fired, which is unexpected.

Also fixes a flaky test that assumed `load` event comes after `domcontentloaded`
for the empty page, which is not always a case in Chromium.
2022-06-16 09:35:53 -07:00
..
callMetadata.ts chore: always import type (#13365) 2022-04-06 14:57:14 -07:00
channels.ts fix(page): "load" event should fire before "waitForLoadState" resolves (#14897) 2022-06-16 09:35:53 -07:00
DEPS.list chore: use utils via index export (4) (#13404) 2022-04-07 14:36:13 -07:00
protocol.yml fix(page): "load" event should fire before "waitForLoadState" resolves (#14897) 2022-06-16 09:35:53 -07:00
serializers.ts chore: serialize circular objects (#14045) 2022-05-09 18:51:53 -07:00
transport.ts chore: use utils via index export (3) (#13403) 2022-04-07 13:55:44 -07:00
validator.ts feat: Page.routeFromHar (#14870) 2022-06-15 08:41:46 -07:00
validatorPrimitives.ts chore: use utils via index export (3) (#13403) 2022-04-07 13:55:44 -07:00