Commit Graph

2883 Commits

Author SHA1 Message Date
Alex Rudenko
f477b46f21
fix: use the timeout setting in waitForFileChooser (#8856)
Co-authored-by: Randolf J <jrandolf@google.com>
2022-08-30 13:23:14 +00:00
Alex Maitland
8d95a9bc92
fix: typos in documentation (#8858)
- corder should be corner
2022-08-30 13:45:59 +02:00
release-please[bot]
e2d9858b38
chore(main): release 17.0.0 (#8828)
* chore(main): release 17.0.0

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-08-29 11:11:05 +02:00
jrandolf
1155c8eac8
fix!: remove root from WaitForSelectorOptions (#8848) 2022-08-26 12:55:30 +02:00
jrandolf
498fbf924c
chore: remove obsolete queryAllArray (#8847) 2022-08-25 21:29:56 +02:00
jrandolf
b49e742e30
chore: make execution context frame-independent (#8845) 2022-08-25 17:38:02 +02:00
jrandolf
2f33237d04
fix!: internalize execution context (#8844) 2022-08-25 17:02:44 +02:00
jrandolf
d070a73c46
chore: infer ElementHandle constructor params (#8843) 2022-08-25 17:01:30 +02:00
jrandolf
744a6e028a
chore: infer client from context in JSHandle (#8842) 2022-08-25 17:00:35 +02:00
jrandolf
5fba0dc932
chore: remove unnecessary constructor parameters (#8837) 2022-08-24 17:04:54 +02:00
Alex Rudenko
202ffce0aa
fix: remove deferred promise timeouts (#8835)
Issue #8832 makes a good point that we should not be making
implicit assumptions about the client's performance
when waiting for internal events. At the same time,
we want to be able to get the debug info if some promises
never resolve because of missing backend events.

This PR adds a variable to turn on timeouts for deferred
promises created using `createDebuggableDeferredPromise`.
We can use it in our tests to catch never-resolving
promises or when reproducing bug reports where Puppeteer
hangs indefinitely.

Closes #8832
2022-08-24 12:05:32 +02:00
Alex Rudenko
341b669a5e
fix: allow multiple navigations to happen in LifecycleWatcher (#8826)
There is no repro but it looks like sometimes the backend reports
two navigation requests. This PR changes the logic to allow that
instead of failing as it seems that failing is a bigger issue
than handling multiple navigation requests.

Closes #8811
2022-08-22 14:51:58 +00:00
jrandolf
b9b24cf963
chore: use deferred promises in web worker (#8824) 2022-08-22 14:03:45 +02:00
Henrik Skupin
e05c199a05
chore: revert IPv4 DNS resolution workaround for Firefox from PR 8447 (#8825) 2022-08-22 14:00:56 +02:00
release-please[bot]
21cc961df9
chore(main): release 16.2.0 (#8808)
* chore(main): release 16.2.0

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-08-19 10:15:47 +02:00
Seanghay Yath
34f8737218
feat: add Khmer (Cambodian) language support (#8809) 2022-08-18 08:57:00 +02:00
Alex Rudenko
2a0eefb99f
fix: handle service workers in extensions (#8807)
Closes #8800
2022-08-17 19:34:34 +02:00
jrandolf
51b2f0576d
chore: move Frame to Frame.ts (#8806) 2022-08-17 17:45:45 +02:00
jrandolf
b9c847960e
chore: remove pkg-dir (#8805) 2022-08-17 16:18:33 +02:00
jrandolf
b80beecadf
chore: use js extension (#8804) 2022-08-17 15:40:32 +02:00
jrandolf
02e1eea7eb
chore: use tsx (#8803) 2022-08-17 15:32:57 +02:00
jrandolf
03c1814e5b
chore: use jobs for document generation (#8802) 2022-08-17 15:14:46 +02:00
jrandolf
bdcb748b98
chore: infrastructure for injecting scripts into DOMWorlds (#8801) 2022-08-17 14:39:41 +02:00
release-please[bot]
a5f1078feb
chore(main): release 16.1.1 (#8769)
* chore(main): release 16.1.1

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-08-16 11:58:16 +00:00
Alex Rudenko
3fad05d333
fix: custom sessions should not emit targetcreated events (#8788)
Closes #8787
2022-08-16 10:56:13 +00:00
jrandolf
65a5ce8464
fix: deprecate root in WaitForSelectorOptions (#8795) 2022-08-16 10:09:07 +02:00
jrandolf
8f612d5ff8
fix: deprecate waitForTimeout (#8793) 2022-08-16 08:24:25 +02:00
jrandolf
b5da718e2e
fix: deprecate ExecutionContext (#8792) 2022-08-16 08:22:45 +02:00
jrandolf
90aa628fcc
chore: update NEXT during versioning (#8794) 2022-08-16 08:22:14 +02:00
dependabot[bot]
def2687235
chore(deps): bump docker/build-push-action from 2.5.0 to 3.1.1 (#8785)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2.5.0 to 3.1.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](ad44023a93...c84f382811)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 15:52:52 +02:00
dependabot[bot]
608dc6c408
chore(deps): bump github/codeql-action from 2.1.17 to 2.1.18 (#8779)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.17 to 2.1.18.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](0c670bbf04...2ca79b6fa8)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 13:30:39 +00:00
dependabot[bot]
bafe2ca76b
chore(deps): bump docker/metadata-action from 3.3.0 to 4.0.1 (#8719)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3.3.0 to 4.0.1.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](98669ae865...69f6fc9d46)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 13:06:18 +00:00
dependabot[bot]
833cdc02f3
chore(deps): bump docker/login-action from 1.10.0 to 2 (#8720)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1.10.0 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](f054a8b539...49ed152c8e)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-12 12:38:55 +00:00
jrandolf
ddbe88b887
chore: add custom rule for formatting comments (#8777) 2022-08-12 14:15:26 +02:00
Alex Rudenko
73221042db
chore: follow test:$browser[:$flavor] naming for tests + retries for Firefox (#8775) 2022-08-11 18:45:52 +00:00
Alex Rudenko
23da97105c
chore: remove toStringTag (#8776) 2022-08-11 15:47:30 +02:00
jrandolf
a238f5758d
chore: refactor JSHandle and ExecutionContext (#8773) 2022-08-11 11:45:35 +02:00
Alex Rudenko
ee2540baef
fix: use targetFilter in puppeteer.launch (#8774)
Drive-by: adds Symbol.toStringTag to Target to simplify
debugging.

Closes #8772
2022-08-11 09:15:00 +00:00
jrandolf
b4176029d9
chore: update dependencies (#8771)
* chore: update dependencies
2022-08-11 07:55:02 +02:00
jrandolf
d6a88a9768
chore: refactor FrameManager and fix docs (#8770) 2022-08-10 23:34:29 +02:00
Alex Rudenko
2580347b50
fix: resolve navigation flakiness (#8768)
Two main sources of flakiness addressed: 

1) we should dispose the lifecycle watcher after we waited for the navigation response (bad API? we need to refactor but I think it'd be valuable to stabilize tests first without too many changes).
2) we should wait for the navigation request's response if there is a navigation request in the watcher.

Closes #8644
2022-08-10 15:59:58 +00:00
Alex Rudenko
c23cdb73a7
fix: make sure there is a check for targets when timeout=0 (#8765)
Previously, if timeout is falsy, the targets would only
be checked if a browser-level event fires which lead to
a race: if the events arrived before waiting for a target,
the promise would never resolve.

Fixes #8763
2022-08-10 15:49:59 +02:00
Alex Rudenko
b5064b7b8b
fix: specify Puppeteer version for Chromium 105.0.5173.0 (#8766) 2022-08-10 11:51:54 +02:00
jrandolf
837b10b15e
chore: rename DOMWorld to IsolatedWorld (#8761) 2022-08-09 15:17:42 +02:00
jrandolf
932a053d02
chore: move adoption to DOMWorld (#8760) 2022-08-09 14:55:18 +02:00
Alex Rudenko
6934b94f23
docs: introduce the Guides section + restore req interception docs (#8758)
Closes #8744
2022-08-09 12:01:23 +00:00
jrandolf
8be8f5ff72
chore: refactor deferred promise (#8759) 2022-08-09 13:29:12 +02:00
Alex Rudenko
50bcff2ec2
chore: remove old website versions and point to md docs instead (#8757) 2022-08-09 11:13:05 +00:00
Alex Rudenko
af78cc768f
chore: fix proxy-related tests (#8753) 2022-08-08 14:31:12 +00:00
Alex Rudenko
af92fc8f32
docs: fix typos in the docker documentation (#8751) 2022-08-08 11:04:50 +00:00