playwright/browser_patches/firefox/juggler/protocol
Andrey Lushnikov 2b495c9750
browser(firefox): fix SimpleChannel to await initialization (#4311)
As Joel noticed recently, MessageManager in firefox doesn't guarantee
message delivery if the opposite end hasn't been initialized yet. In
this case, message will be silently dropped on the ground.

To fix this, we establish a handshake in SimpleChannel to make sure that
both ends are initialized, end buffer outgoing messages until this
happens.

Drive-by: serialize dialog events to only deliver *after* the
`Page.ready` protocol event. Otherwise, we deliver dialog events to the
unreported page.
2020-11-02 16:21:34 -08:00
..
BrowserHandler.js browser(firefox): await browser initialization when closing browser (#4121) 2020-10-12 22:34:04 -07:00
Dispatcher.js browser(firefox): fix typo in dispatcher teardown (#4069) 2020-10-06 12:06:50 -07:00
PageHandler.js browser(firefox): fix SimpleChannel to await initialization (#4311) 2020-11-02 16:21:34 -08:00
PrimitiveTypes.js chore: export juggler as a standalone folder for browser build (#2432) 2020-06-02 16:51:13 -07:00
Protocol.js browser(firefox): instrument websockets (#4287) 2020-10-29 16:33:50 -07:00