Commit graph

3182 commits

Author SHA1 Message Date
Andrey Lushnikov 7145faedd4 chore: mark v1.5.2 2020-10-27 14:17:20 -07:00
Pavel Feldman 0f8eccf1dd fix(ECONRESET): fix it once and for all (#4258) 2020-10-27 13:27:40 -07:00
Pavel Feldman e50d0a27c4 fix(screenshot): prioritize passed type over the extension mime (#4251) 2020-10-27 13:27:22 -07:00
Pavel Feldman 3d4e50d6a6 fix(env): respect =true/false as env values for boolean flags (#4228) 2020-10-26 21:44:58 -07:00
Maja Wichrowska 1df6b92b31 fix: update getFromEnv logic to validate that value is undefined (instead of falsey) before redefining it (#4226)
Additionally, cast the `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD` check to a number to allow for values of 0 or 1
2020-10-26 21:44:46 -07:00
Pavel Feldman 3188d6ecbe fix(listeners): avoid "too many listeners" problem safely (#4223) 2020-10-23 10:43:20 -07:00
Pavel Feldman 3201c238cf Revert "fix(listeners): avoid "too many listeners" problem (#3931)" (#4222)
This holds on to process / handlers forever.
2020-10-23 10:43:09 -07:00
Pavel Feldman 4975cea160 chore(screencast): respect i/o backpressure when writing into ffmpeg (#4164) 2020-10-23 10:41:25 -07:00
Pavel Feldman 0b7976a279 fix(screencast): await for the first video frame on Chromium (#4145) 2020-10-14 15:32:21 -07:00
Pavel Feldman 2cd86045bc fix(screencast): bump chromium video quality (#4146) 2020-10-14 15:32:21 -07:00
Yury Semikhatsky 5dce2482e6 fix(screencast): correctly process videos with 1 frame (#4144) 2020-10-14 15:32:21 -07:00
Andrey Lushnikov 85ae3ccc25 chore: mark v1.5.1 2020-10-14 10:45:20 -07:00
Yury Semikhatsky e5743d247d docs: fix Video.path() type (#4141) 2020-10-14 10:44:53 -07:00
Pavel Feldman 618b50c5df api(video): restore the missing video path accessor (#4132) 2020-10-14 10:43:28 -07:00
Andrey Lushnikov 8f6cef8b11 chore: mark v1.5.0 2020-10-12 18:23:40 -07:00
Andrey Lushnikov 58c53c1039
chore: cut v1.5.0-post version (#4115) 2020-10-12 18:20:54 -07:00
Yury Semikhatsky b2f4fa914a
browser(webkit): pick process pool for service worker from correct context (#4116) 2020-10-12 15:39:49 -07:00
Pavel Feldman 3350db2d1d
chore: nit test fixes (#4114) 2020-10-12 14:27:12 -07:00
Pavel Feldman c2adc98cb0
chore: roll folio to 0.3.8 (#4113) 2020-10-12 13:48:56 -07:00
Dmitry Gozman 46b14bc740
chore: roll folio to 0.3.6 (#4110) 2020-10-12 09:16:02 -07:00
Dmitry Gozman 80ed407033
test: add a failing test for the issue 4038 (#4111)
Chromium corrupts screenshots taller than 8192.
2020-10-10 21:50:37 -07:00
Yury Semikhatsky 5648eac063
browser(webkit): fix mac build after last roll (#4108) 2020-10-09 16:11:50 -07:00
Pavel Feldman 3f68713f1e
chore: locate binaries in case of cli deployment (#4107) 2020-10-09 15:56:03 -07:00
Yury Semikhatsky db744e28ee
browser(webkit): roll to 10/08 (#4106) 2020-10-09 14:43:36 -07:00
Yury Semikhatsky b85ba62291
browser(webkit): actually fix mac compilation (#4105) 2020-10-09 13:06:25 -07:00
Joel Einbinder 9801be6401
feat(chromium): roll to 815036 (#4099) 2020-10-09 11:45:45 -07:00
Andrey Lushnikov 80773fa96b
fix: disable chromium sandbox by default (#4090)
Certain environments, e.g. Azure Pipelines, override default user
inside container with a custom one, whereas fail to pass proper
seccomp profile for the docker image.

As a result, chromium sandboxing fails.

To ease life of devops deploying tests in various CI's, this patch
disables Chromium sandbox by default.

References #4084
2020-10-09 11:28:22 -07:00
Yury Semikhatsky d6a198a9bb
browser(webkit): speculative build fix for Mac (#4104) 2020-10-09 11:13:02 -07:00
Yury Semikhatsky 8252eb7413
browser(webkit): roll to 09-27 (#4103) 2020-10-09 09:32:36 -07:00
Andrey Lushnikov c078e98bf5
chore: update bin/PrintDeps.exe to r1002 (#4096) 2020-10-08 22:27:59 -07:00
Joel Einbinder e2f77455dd
browser(chromium): roll to 815036 (#4098) 2020-10-08 22:03:39 -07:00
Andrey Lushnikov ebb3563767 chore: update package-lock.json 2020-10-08 18:05:44 -07:00
Max Schmitt e6a1a1c129
fix(docker): add again pwuser (#3899)
In version 1.4 we introduced a breaking change for the Docker behaviour since we removed the pwuser completely. In this PR I add this user again and create a symlink so that root uses the browser of the pwuser. This has also the benefit, that the users who wants to use the seccomp profile that they don't have to create this user.

Reference: https://playwright.slack.com/archives/CSUHZPVLM/p1600240776120400

Tested on root and on pwuser. Works.

References #4084
2020-10-08 11:53:07 -07:00
Andrey Lushnikov b4ad6e79a4
devops: playwwright-core installation should not touch browser registry (#4089)
Currently, `playwright-core` installation would check browser registry
and remove any unused browsers. This, however, might be unexpected
since `playwright-core` shouldn't touch browser registry at all.

Fixes #4083
2020-10-08 11:42:56 -07:00
Darío Kondratiuk ff295d10e6
fix(windows): fix dependencies check on windows (#4076) 2020-10-08 09:45:53 -07:00
Andrey Lushnikov 08024c82e8
feat(firefox): roll to r1188 (#4091)
This brings in a new Firefox 82 beta.

Fixes #3995
2020-10-07 17:46:10 -07:00
Andrey Lushnikov 6a7d24469a
devops: fix firefox build (#4088)
New firefox build requires a pre-created python virtual environment.
We should detect it and create if necessary.

References #3995
2020-10-07 14:34:58 -07:00
Andrey Lushnikov 1ccce09a02
browser(firefox): roll Firefox to beta Oct 7, 2020 (#4087)
References #3995
2020-10-07 14:12:19 -07:00
Yury Semikhatsky 09906949c2
docs(page): clarify page.close({runBeforeUnload: true}) behavior (#4086) 2020-10-07 13:27:23 -07:00
Andrey Lushnikov 6bb212ceed
feat(firefox): roll Firefox to r1186 (#4085)
This roll includes two important fixes:
- await search service startup when launching browser
- report `"load"` event differently to support `window.stop()` in future

References #3995
2020-10-07 13:24:58 -07:00
Max Schmitt fd769ec911
chore: remove test dependency on pw itself (#4078) 2020-10-07 11:08:30 -07:00
Andrey Lushnikov 6beef551d9
browser(firefox): wait for search and addon manager initialization (#4081)
It looks like terminating browser when search service or addon manager is
not fully initialized results in a broken shutdown sequence. As of
today, this results in multiple errors in the browser STDERR. In future,
this might also result in browser stalling instead of terminating.

This starts awaiting search and addon manager termination.

References #3995
2020-10-07 10:24:16 -07:00
Andrey Lushnikov 3b4232864d
browser(firefox): a different way to emit 'load' event (#4080)
Using WebProgressListener events works in all cases. Currently
used `pageshow` event will stop being emitted in future when loading
was stopped with `window.stop()` api.

References #3995
2020-10-07 09:22:56 -07:00
Arjun Attam aafe5dac0d
docs: add videos to verification doc (#4071)
* docs: add videos to verification doc

* review changes
2020-10-07 09:04:53 -07:00
Pavel Feldman ad58e49201
Revert "feat(firefox): migrate to the pipe channel (#4068)" (#4073)
Mac sporadically hangs on browser close.
2020-10-06 21:16:50 -07:00
Pavel Feldman 1fe3c783b4
test: roll test runner 0.9.22 (#4072) 2020-10-06 15:51:18 -07:00
Pavel Feldman ce7aa7a608
feat(firefox): migrate to the pipe channel (#4068) 2020-10-06 14:40:09 -07:00
Andrey Lushnikov e6869edf98
browser(firefox): fix typo in dispatcher teardown (#4069) 2020-10-06 12:06:50 -07:00
Andrey Lushnikov 5d1291528f
feat(firefox): roll to r1182 (#4067)
This revision enables `documentchannel` feature by default.

References #3995
2020-10-06 03:03:33 -07:00
Andrey Lushnikov 4ab66a4fe5
browser(firefox): follow-up with assorted simplifications (#4066)
This patch:
- moves `SimpleChannel` to synchronously dispatch buffered commands
  instead of a `await Promise.resolve()` hack
- moves dialog & screencast handling from `PageHandler` to
  `TargetManager`. This leaves `PageHandler` to be concerned solely about
  protocol.
- removes `attach` and `detach` methods for worker channels: since
  channels are buffering messages until the namespace registers, there's
  no chance to loose any events.
- slightly simplifies `PageNetwork` class: it's lifetime is now
  identical to the lifetime of the associated `PageTarget`, so a lot can
  be simplified later on.

References #3995
2020-10-06 01:53:25 -07:00