playwright/browser_patches/firefox/juggler
Andrey Lushnikov 24bc0e39b8
browser(firefox): remove the hack around setting viewport size (#4010)
Juggler code had a bug where we subscribed to window and tab
events, but did not iterate collections of current windows and tabs.

As a result, we were sometimes failing to set viewport size for the
initial window, and implemented an artificial promise to workaround
the problem.

This patch:
- starts calling `onOpenWindow` and `onOpenTabListener` callbacks
  for *all* windows and tabs - current and future, eliminating the
  race condition.

This worked too well and we started overriding window sizes that
were set by users with `window.open(url, 'width=300;height=400')` (we
have a test for this). To fix this, we now plumb `CHROME_WITH_SIZE`
flag from appWindow and override viewport iff this flag is not set.

After this patch, we will use the `onTabOpened` event to move user
agent emulation to the browser-side.

References #3995
2020-09-30 00:36:46 -07:00
..
components browser(firefox): roll Firefox to roughly July, 15 (#3411) 2020-08-12 10:09:20 -07:00
content browser(firefox): use browsingContextID for frame IDs (#3999) 2020-09-29 11:22:00 -07:00
pipe browser(firefox): reliably close the pipe (#3280) 2020-08-03 20:15:25 -07:00
protocol browser(firefox): use browsingContextID for frame IDs (#3999) 2020-09-29 11:22:00 -07:00
screencast browser(firefox): autoscale screencast to fit frame (#3720) 2020-09-01 17:10:06 -07:00
Helper.js browser(firefox): remove the hack around setting viewport size (#4010) 2020-09-30 00:36:46 -07:00
NetworkObserver.js browser(firefox): use browsingContextID for frame IDs (#3999) 2020-09-29 11:22:00 -07:00
SimpleChannel.js chore: export juggler as a standalone folder for browser build (#2432) 2020-06-02 16:51:13 -07:00
TargetRegistry.js browser(firefox): remove the hack around setting viewport size (#4010) 2020-09-30 00:36:46 -07:00
jar.mn browser(firefox): use browsingContextID for frame IDs (#3999) 2020-09-29 11:22:00 -07:00
moz.build browser(firefox): implement RemoteDebuggingPipe (#3273) 2020-08-03 13:27:09 -07:00