Commit graph

4346 commits

Author SHA1 Message Date
Pavel Feldman 4cf0568ad7
browser(webkit): support safe area insets (#5987) 2021-03-29 11:38:26 -07:00
Darío Kondratiuk bc6dc1d108
chore(dotnet): treat file as a reserved word (#5960)
Avoid collision with System.IO.File and unify handling reserved file names and enum values.
2021-03-29 10:22:06 +02:00
Yury Semikhatsky 0943af2806
fix: kill browser if process doesnt exit for 30s after close (#5968) 2021-03-27 09:59:04 -07:00
Darío Kondratiuk 779037a77e
chore(dotnet): avoid adding two prefixes (#5974) 2021-03-27 09:58:36 -07:00
Pavel Feldman 49bbc2bc76
test(proxy): add a failing test for HTTPS proxy CONNECT User Agent (#5972) 2021-03-26 22:26:39 -07:00
Yury Semikhatsky 2cce8850b7
browser(webkit): roll to safari-612.1.8-branch (#5965) 2021-03-26 11:54:55 -07:00
Max Schmitt dfe07818e6
docs: fixed various typos (#5958) 2021-03-26 10:47:16 -07:00
Darío Kondratiuk 475a6fe391
chore(dotnet): use csharp types in Frame and Page (#5961) 2021-03-26 10:45:50 -07:00
Dmitry Gozman 12e00629e4
docs: update channels doc to mention manual installation (#5964) 2021-03-26 10:20:21 -07:00
Pavel Feldman 6c1d3f65b5
browser(webkit): refresh embedder UI on macOS (#5957) 2021-03-26 09:44:31 -07:00
Joel Einbinder 3ce02a95c8
fix(selectors): properly generate selectors for tricky ids (#5940) 2021-03-25 18:43:33 -07:00
Ross Wollman 0120896771
test: interception breaks remote importScripts (#5953) 2021-03-25 17:16:41 -07:00
Pavel Feldman 0076e46e57
chore: remove stray test logs (#5955) 2021-03-25 17:15:04 -07:00
Yury Semikhatsky 5872d0407a
browser(chromium): build current dev chromium (865012) (#5950) 2021-03-25 09:31:41 -07:00
Darío Kondratiuk f791495624
chore(dotnet): Improve enum values (#5939) 2021-03-25 16:45:41 +01:00
Max Schmitt 601c09f7f1
docs(page): remove note that screenshot takes 1/6+s (#5945) 2021-03-24 20:02:14 -07:00
Andrey Lushnikov 4fea83c6d8
docs: commit new release notes (#5944) 2021-03-24 14:51:28 -07:00
Dmitry Gozman 6b3f4cd12b
chore: calculate video size in a single place (#5942) 2021-03-24 10:56:20 -07:00
Dmitry Gozman 8e97607389
fix(viedo): do not stall video in popups (#5941)
There are two problems, exposed by existing tests:

- We do not send Page.startScreeencast before Runtime.runIfWaitingForDebugger
  because we launch video recorder in between. This stalls when the page is busy
  immediately after resuming, e.g. with alert().
  Fixed by starting video recorder in advance.

- We wait for the first frame that may not come - for example, context-wide interception
  is blocking essential resource and first frame.
  Fixed by only waiting for the first frame before reporting the video, not the page.
2021-03-24 09:36:46 -07:00
Darío Kondratiuk 24ee49b958
chore(dotnet): improve goto name in csharp (#5917) 2021-03-24 15:31:30 +01:00
Dmitry Gozman 2cf4caa4cf
chore: implement mixins in protocol.yml (#5932) 2021-03-24 06:37:10 -07:00
Andrey Lushnikov 7678112242
tests: do not run video tests with Chrome Stable on Linux (#5931) 2021-03-23 22:18:49 -07:00
Pavel Feldman cc265fe1eb
docs(websocket): add web socket examples (#5927) 2021-03-23 17:17:59 -07:00
Pavel Feldman 1b802332d2
infra: remove shards from mac builds to remove 6 bots (#5928) 2021-03-23 14:23:23 -07:00
Yury Semikhatsky 7d7e5ede84
browser(webkit): roll back to safari-612.1.7-branch first commit (#5920) 2021-03-23 13:45:42 -07:00
Andrey Lushnikov 2016fdbc52
chore: cut v1.10.0 (#5925) 2021-03-23 13:35:03 -07:00
Pavel Feldman 543582b4ca
chore: expose channel name literals for types (#5922) 2021-03-23 13:21:03 -07:00
Pavel Feldman f70eaf4ff3
docs(android): android doc nits (#5924) 2021-03-23 13:20:41 -07:00
Yury Semikhatsky 8f1d03f846
docs(options): clarify recordHarPath and recordVideoDir behavior (#5923) 2021-03-23 13:13:15 -07:00
Pavel Feldman ca35da0a33
test(android): run selected page tests on android (3) (#5910) 2021-03-23 10:07:15 -07:00
Anže Vodovnik 3a27bdd3e6
chore(dotnet): improve name generation for objects (#5860) 2021-03-23 10:44:50 +01:00
Pavel Feldman 9f1b2f68bf
test(resize): add a screenshot resize test (#5907) 2021-03-22 20:44:26 -07:00
Andrey Lushnikov ec6453d1b2
fix: installer compilation (#5908)
For some reason typescript can't find electron types when using
nested tsconfig - workaround the bug.

Drive-by: surface installer compilation problems.
2021-03-22 17:39:03 -07:00
Andrey Lushnikov 172de4082a
browser(chromium): build current dev chromium (#5911) 2021-03-22 17:38:28 -07:00
Yury Semikhatsky b74af2269f
browser(webkit): fix mac compilation after latest roll (#5909) 2021-03-22 14:34:58 -07:00
Pavel Feldman 14ccc80cb3
fix(android): bundle android driver in all settings (#5883) 2021-03-22 14:25:40 -07:00
Pavel Feldman cac5aeb6da docs(browser): wording nits 2021-03-22 13:00:19 -07:00
rob salmond 1bcbb15299
set system default python3 to python3.8 (#5892) 2021-03-22 12:29:54 -07:00
Andrey Lushnikov 2064d27dc6
fix(installer): retain browsers installed via Playwrigth CLI (#5904)
Browser registry is responsible for 3 things:
1. Remove downloaded browsers if there are no packages that refer to them
2. Install default browsers needed for the current package
3. Install browsers on-demand when used through Playwright CLI

Currently, registry relies on a single "download" field in `browsers.json`
to carry both (1) and (2). However, browsers in (3) are marked as
`download: false` so that they aren't installed automatically in (2), so
auto-remove procedure in (1) removes them on subsequent installation.

One possible approach to fix this would be modifying package's `browsers.json` to
change `download: false` to `true` when browsers are installed with
Playwright CLI. This approach was explored here:
bc04a51800

We decided against this since we have a history of issues related to
package modifications after NPM installation. This breaks all
sorts of yarn/npm caching mechanisms.

Instead, this patch is a two-step refactor:
- remove the "download" field in `browsers.json`. Now, all registries
(including old ones from previously-released versions) will retain any
browsers that are mentioned in the `browsers.json`.
- add a new flag "installByDefault", that is **only used** for default
installation.

With this change, the registry tasks are done like this:
- (1) auto-removal: if browser has a back reference, it is retained,
otherwise it is removed from registry
- (2) default installation: use only `installByDefault` to carry default installations
- (3) CLI installation: simply installs browsers. Since we retain
everythings that's referenced in (1), browsers aren't removed.

Fixes #5902
2021-03-22 11:43:29 -07:00
Yury Semikhatsky 6dd4d756dc
browser(webkit): roll to 03-22-21 (#5903) 2021-03-22 11:22:56 -07:00
Yury Semikhatsky 67c29e8155
chore: add missing await to floating promises (#5813) 2021-03-22 09:59:39 -07:00
Pavel Feldman be9fa743ca docs(intro): remove stray wait from sync snippet 2021-03-21 09:52:26 -07:00
Yury Semikhatsky 237251924d
docs: add event listener guide (#5881) 2021-03-19 12:44:03 -07:00
Anže Vodovnik fbb4626442
chore(dotnet): support for optional properties in generated objects (#5889) 2021-03-19 17:19:42 +01:00
Pavel Feldman 1f1c8b74cd
test(android): run selected page tests on android (2) (#5882) 2021-03-18 21:11:58 -07:00
Pavel Feldman ad5c028f37
test(android): run selected page tests on android (#5879) 2021-03-18 19:31:54 -07:00
Michael cbebf64f07
docs: fix circleci invalid yaml (#5880) 2021-03-18 18:35:48 -07:00
Pavel Feldman 16bf462e4c
test: organize tests to not depend on context (#5878) 2021-03-18 16:20:35 -07:00
Pavel Feldman 5c753b763f
docs: add the browsers section (#5876) 2021-03-18 15:35:55 -07:00
Pavel Feldman c68bd31053
test: make init script test strict again (#5877) 2021-03-18 15:18:25 -07:00