Commit Graph

2940 Commits

Author SHA1 Message Date
jrandolf
7efcb9ca3d
chore: remove unused code (#8977) 2022-09-19 12:48:14 +02:00
robrobrobrob
64843b8885
fix: use win64 version of chromium when on arm64 windows (#8927)
* fix: use win64 version of chromium when on arm64 windows

no Win_arm available on storage.googleapis.com yet, and it currently defaults to win32

* fix: lint trailing space

* fix: use x64 chromium on Windows 11 for ARM

* fix: detect windows 11 without semver
2022-09-19 07:24:34 +00:00
Alex Rudenko
6f37eed91b
chore: add id-token permissions to scorecard-action (#8971)
See ossf/scorecard-action#900

Example failure with scorecard-action@2 https://github.com/puppeteer/puppeteer/actions/runs/3066712334/jobs/4952194627
2022-09-19 06:24:16 +00:00
Alex Rudenko
58c6eab429
chore: remove increase swap action (#8970)
Now that we generate only a single version and use swc
we should not need increased swap space.
2022-09-16 09:55:20 +00:00
dependabot[bot]
5a10de422a
chore(deps): bump ossf/scorecard-action from 1.1.2 to 2.0.3 (#8949)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 1.1.2 to 2.0.3.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](ce330fde6b...865b409285)

---
updated-dependencies:
- dependency-name: ossf/scorecard-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-09-16 09:10:39 +00:00
dependabot[bot]
66d9c9521d
chore(deps): bump github/codeql-action from 2.1.21 to 2.1.23 (#8967)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.21 to 2.1.23.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](c7f292ea4f...6a38b7d4a1)

---
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-09-16 10:48:17 +02:00
Alex Rudenko
cd09c3cee7
chore: refactor frame tree management (#8952)
This PR removes the strong references between
parent and child frames and stores the frame in a
lazy FrameTree with weak references.

Drive-by: fix --no-coverage flag in test runner
2022-09-16 05:35:51 +00:00
jrandolf
2a2af7134f
chore: incrementally erase cache on text change (#8961) 2022-09-15 18:48:55 +02:00
Alex Rudenko
fa084bcdcd
chore: extract CDPSession base class for easy mocking (#8950) 2022-09-15 13:50:12 +00:00
jrandolf
633e7cfdf9
feat: add text query handler (#8956) 2022-09-15 11:12:13 +00:00
Alex Rudenko
42cd6d04d6
chore: rerun tasks after the util handle has been evaluated (#8962) 2022-09-15 10:53:01 +02:00
jrandolf
ac9929d80f
fix!: fix bounding box visibility conditions (#8954) 2022-09-15 09:25:20 +02:00
jrandolf
64763e973b
chore: rename internal query handler (#8955) 2022-09-15 08:48:59 +02:00
jrandolf
7c4f41fadc
chore: use injections for wait tasks (#8943)
This PR refactors wait tasks to use injected scripts.
2022-09-15 08:22:20 +02:00
Alex Rudenko
8d5097d7f6
chore: split CI jobs to run in parallel (#8934) 2022-09-15 05:59:11 +00:00
Alex Rudenko
db28203e64 chore: support WebDriver BiDi browser instances (#8932)
This PR adds a basic support for WebDriver BiDi that currently includes only the ability to establish a connection and shutdown the browser. Therefore, the implementation is marked as internal and won't show up in the changelog as it's barely useful at the moment.

The API classes are kept as classes instead of interfaces so that clients relying on instanceof checks still work.
2022-09-15 02:15:15 +02:00
Alex Rudenko
cfaaa5e2c0 fix: suppress init errors if the target is closed (#8947)
With #8520 Puppeteer is now aware of all targets it connects
to. In order to have a not flaky init, Puppeteer waits for
all existing targets to be configured during the connection process.
This does not work well in case of concurrent connections because
while one connection might initializing a target the other one
might be closed it. In general, that is expected because we
can only be eventually consistent about the target state but we
also should not crash the init if some targets have been closed.
This PR implements checks to see if the errors are caused by the
target or session closures and suppresses them if it's the case.
2022-09-15 02:15:00 +02:00
Alex Rudenko
c23c00a4c2
docs: update documentation about the test runner (#8945) 2022-09-13 15:04:24 +00:00
jrandolf
6fd05d963e
chore: use handle instead of globals for injection (#8946) 2022-09-13 14:06:40 +02:00
Alex Rudenko
a4e444d217
docs: use swc for building the website (#8941) 2022-09-12 11:59:05 +00:00
Alex Rudenko
27ccd0ae5e
docs: sort and group sidebar items (#8940)
Issues #8897, #8936
2022-09-12 13:00:37 +02:00
Alex Rudenko
1ecb6e3f19
chore: add custom reporter (#8931)
This PR adds a custom mocha reporter that is a combination
of the Spec + JSON reporters. This way our test runner can
remove custom printing logic for test runs and only output
expectations.
2022-09-09 12:22:48 +02:00
Alex Rudenko
504c7a1ae6
chore: implement custom mocha interface for the runner (#8929)
Instead of checking skipped tests in mocha-utils this PR
implements a custom mocha interface for better flexibility
when skipping tests. That should allow skipping tests without
running before and after hooks.
2022-09-09 11:12:18 +02:00
release-please[bot]
9b120f6c7b
chore(main): release 17.1.3 (#8921)
* chore(main): release 17.1.3

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-09-08 13:16:39 +00:00
Alex Rudenko
f2e8de777f
fix: FirefoxLauncher should not use BrowserFetcher in puppeteer-core (#8920)
* fix: FirefoxLauncher should not use BrowserFetcher in puppeteer-core

Closes #8919

Co-authored-by: Thiago Perrotta <tbperrotta@gmail.com>
2022-09-08 12:45:16 +00:00
Alex Rudenko
d8830cbc55
chore: implement a test runner on top of mocha (#8866)
* chore: implement a test runner on top of mocha

This PR implements a test runner on top of mocha
that performs multiple mocha runs as defined in
TestSuites.json and compares the outcome of the runs
against TestExpectations.json. This allows us to
remove most of helpers from mocha-utils and be more
flexible when defining the test configurations.
2022-09-08 10:32:39 +00:00
robrobrobrob
f02b926245
fix: linux arm64 check on windows arm (#8917)
Closes #8915
2022-09-08 08:20:59 +00:00
Connor Clark
7a2d9df146
docs: correct comment about anonymous script coverage urls (#8914) 2022-09-08 07:56:26 +02:00
release-please[bot]
0d2d99efec
chore(main): release 17.1.2 (#8904)
* chore(main): release 17.1.2

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-09-07 13:18:06 +00:00
Alex Rudenko
8b3caae8d1
chore: enable cookie restoration test (#8909)
Closes #4111
2022-09-07 09:42:06 +00:00
smithc
0c577b9bf8
fix: add missing code coverage ranges that span only a single character (#8911) 2022-09-07 07:10:07 +00:00
Alex Rudenko
260e428227
fix: support scale for screenshot clips (#8908)
Closes #5329
2022-09-07 05:27:40 +00:00
Alex Rudenko
053d960fb5
fix: work around a race in waitForFileChooser (#8905)
Closes #6040
2022-09-06 17:03:56 +02:00
Alex Rudenko
b4f5ea1167
fix: don't detect project root for puppeteer-core (#8907)
Closes #8896
2022-09-06 14:26:05 +02:00
Alex Rudenko
6e7c6368d3
docs: fix example formatting in evaluateOnNewDocument (#8906) 2022-09-06 10:39:55 +00:00
Guillaume Gomez
32400954c5
fix: add Page.getDefaultTimeout getter (#8903)
Closes #8901
2022-09-05 17:43:39 +00:00
release-please[bot]
8e1c8b9be6
chore(main): release 17.1.1 (#8900)
* chore(main): release 17.1.1

* chore: generate versioned docs

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-09-05 12:49:30 +00:00
Alex Rudenko
2134d975df
chore: re-build docs after versioning in pre-release (#8899) 2022-09-05 10:03:10 +00:00
Alex Rudenko
7b42250c7b
fix: restore deferred promise debugging (#8895)
* fix: restore deferred promise debugging

* chore: strict types
2022-09-05 10:30:47 +02:00
release-please[bot]
f9e758e31d
chore(main): release 17.1.0 (#8894)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2022-09-02 11:28:00 +00:00
Alex Rudenko
e2d6be1c29
chore: remove unused injections (#8889) 2022-09-02 10:59:51 +00:00
Alex Rudenko
a870c258bf
chore: update expectations for Firefox when evaluate fails (#8890) 2022-09-02 09:41:34 +00:00
jrandolf
2d50ec5b38
chore: add DeferredPromise to injection (#8883) 2022-09-01 18:44:59 +02:00
jrandolf
6b4a99fcfa
chore: migrate addStyleTag (#8879)
* chore: remove unnecessary type signature

* chore: fix tests

* chore: migrate `addStyleTag`

* chore: fix tests

* chore: fix tests
2022-09-01 17:52:08 +02:00
jrandolf
8f11237a67
chore: migrate addScriptTag (#8878) 2022-09-01 17:09:57 +02:00
Alex Rudenko
f57dde1c5b
chore: fix builds in CI (#8877) 2022-09-01 12:43:26 +00:00
Alex Rudenko
4d2ec85cad
chore: fix ToT CI (#8876) 2022-09-01 12:02:53 +00:00
dependabot[bot]
3eb4c2d2e0
chore(deps): bump github/codeql-action from 2.1.18 to 2.1.21 (#8849)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.18 to 2.1.21.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](2ca79b6fa8...c7f292ea4f)

---
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-09-01 12:42:56 +02:00
jrandolf
ae4c5ea031
chore: refactor build commands (#8874) 2022-09-01 01:05:20 +02:00
Alex Rudenko
3732757450
fix: allow getting a frame from an elementhandle (#8875)
Libraries like pptr-testing-library and expect-puppeteer seem to
rely on it.
2022-08-31 19:57:02 +00:00