Commit Graph

2571 Commits

Author SHA1 Message Date
Alex Rudenko
0a9eb3c9a5
chore(release): mark v13.1.2 (#7925) 2022-01-25 07:55:07 +00:00
Romain
e4c48d3b8c
fix(package.json): update node-fetch package (#7924)
Update node-fetch to version 2.6.7 to avoid a high vulnerability

https://github.com/advisories/GHSA-r683-j2x4-v87g
2022-01-24 14:19:38 +01:00
Alex Rudenko
d80d6027ea fix: types in Connection.ts to be compatible with strict mode Typescript (#7919)
Issues: #6769
2022-01-21 12:41:21 +01:00
Alex Rudenko
a8ec0aadc9
fix: types in Browser.ts to be compatible with strict mode Typescript (#7918)
Issues: #6769
2022-01-20 14:15:23 +01:00
Alex Rudenko
08c0e8b75d
chore: bump version to v13.1.1-post (#7913) 2022-01-18 09:18:24 +00:00
Alex Rudenko
f108560be8
chore(release): mark v13.1.1 (#7912) 2022-01-18 08:55:34 +00:00
Alex Rudenko
344feb53c2
fix: use content box for OOPIF offset calculations (#7911)
If an iframe has a border, it has to be added to the offsets
too. We can work around it by using the content box coordinates
for the offsets. That should also prevent discrepancies if the
iframe has a padding set.
2022-01-18 09:22:15 +01:00
Alex Rudenko
c09522a5f2
chore: bump version to v13.1.0-post (#7909) 2022-01-17 15:31:33 +00:00
Alex Rudenko
80d6b84ded
chore(release): mark v13.1.0 (#7908) 2022-01-17 15:40:56 +01:00
Alex Rudenko
a55c86fac5
feat(chromium): roll to Chromium 98.0.4758.0 (r950341) (#7907) 2022-01-17 13:40:38 +00:00
Alex Rudenko
a566263ba2
fix: apply OOPIF offsets to bounding box and box model calls (#7906)
The doc for boundingBox says that it should return the boundingBox
relative to the main frame, therefore, this fix would make the
actual implementation correspond to the documentation. boxModel
documentation does not have this note but I think it'd make sense
to have it match the behaviour of the boundingBox API.
2022-01-17 14:19:43 +01:00
Alex Rudenko
d7937b806d
fix: error for pre-existing OOPIFs (#7899)
Issues: #7844, #7896
2022-01-17 07:00:00 +00:00
Alex Rudenko
486bbe010d
fix: correctly compute clickable points for elements inside OOPIFs (#7900)
Issues: #7849
2022-01-17 07:32:52 +01:00
Alex Rudenko
59578d9cd5
chore: bump version to v13.0.1-post (#7866) 2021-12-22 09:06:22 +00:00
Alex Rudenko
71cef32f6d
chore(release): mark v13.0.1 (#7865) 2021-12-22 09:06:12 +01:00
Alex Rudenko
8d8e874b07
fix: make sure ElementHandle.waitForSelector is evaluated in the right context (#7843)
So it appears that all bindings are added to the secondary world and all
evaluations are also running there. ElementHandle.evaluate is returning
handles from the main world though. Therefore, we need to be careful
and adopt handles to the right context before doing waitForSelector
So it appears that all bindings are added to the secondary world and all
evaluations are also running there. ElementHandle.evaluate is returning
handles from the main world though. Therefore, we need to be careful
and adopt handles to the right context before doing waitForSelector.
2021-12-21 09:53:20 +01:00
Alex Rudenko
1c44551f1b
fix: predicate arguments for waitForFunction (#7845)
The same predicate function is used by the waitForFunction
API that does not need the context element.

Issues: #7836
2021-12-15 08:40:56 +00:00
Alex Rudenko
36207c5efe
fix: disable a test failing on Firefox (#7846) 2021-12-15 09:17:56 +01:00
Kiko Beats
3e3a90be53
docs: fix typo (#7839) 2021-12-13 07:56:26 +01:00
Alex Rudenko
acdc67bd02
chore: bump version to v13.0.0-post (#7833) 2021-12-10 09:41:27 +00:00
Alex Rudenko
d0cb9e2573
chore(release): mark v13.0.0 (#7832) 2021-12-10 09:02:39 +00:00
Johan Bay
02c9af62d6
fix(types): revert "feat(typescript): allow using puppeteer without dom lib"
Reverts #6998

We unfortunately have to revert this commit for two reasons:

The approach for generating types.d.ts implemented in the commit invalidates triple-slash compiler directives since it prepends a declaration before the types.d.ts generated by api-extractor.
In particular, the directive /// <reference types="node" /> in the final types.d.ts is ignored by the typescript compiler making module resolution fail.
The commit makes Puppeteer types ship without DOM types per default. This is not ideal since Puppeteer (and usage of Puppeteer) relies heavily on interacting with DOM elements.
2021-12-10 09:02:28 +01:00
Ben Allfree
824242246d
fix!: typo in 'already-handled' constant of the request interception API (#7813)
Issues:  #7745, #7747, #7780
Co-authored-by: Rodrigo Fernández <fdez.romero@gmail.com>
2021-12-09 14:57:40 +00:00
Ben Allfree
71cc1b9591
refactor: remove unused promise (#7830) 2021-12-09 15:35:23 +01:00
Alex Rudenko
c03429444d
feat: implement Element.waitForSelector (#7825)
Co-authored-by: Johan Bay <jobay@google.com>
Co-authored-by: Mathias Bynens <mathias@qiwi.be>
2021-12-09 11:51:14 +00:00
Alex Rudenko
a604646f44
refactor: disallow direct access to attributes in NetworkEventManager (#7826) 2021-12-09 10:02:24 +00:00
Ben Allfree
bbfad6802c
refactor: extract NetworkEventManager from NetworkManager 2021-12-07 15:08:45 +00:00
Ben Allfree
dc23b7535c
feat: expose HTTPRequest intercept resolution state and clarify docs (#7796)
Co-authored-by: Rodrigo Fernández <fdez.romero@gmail.com>
2021-12-07 08:48:42 +01:00
Ben Allfree
636b0863a1
fix: handle multiple/duplicate Fetch.requestPaused events (#7802)
Issues: #7475, #6696, #7225
2021-12-03 20:13:44 +01:00
Alex Rudenko
09426e5931
chore: bump version to v12.0.1-post (#7812) 2021-11-29 20:28:30 +00:00
Alex Rudenko
913ff123ec
chore(release): mark v12.0.1 (#7810) 2021-11-29 20:06:56 +00:00
Alex Rudenko
6ee2feb1ea
fix: handle extraInfo events even if event.hasExtraInfo === false (#7808)
Issues: #7805
2021-11-29 20:46:02 +01:00
Alex Rudenko
921c3bcfcf
chore: bump version to v12.0.0-post (#7804) 2021-11-29 14:24:04 +01:00
Alex Rudenko
641588a783
chore(release): mark v12.0.0 (#7800) 2021-11-26 08:58:29 +00:00
Alex Rudenko
a26b12b7c7
fix: parse statusText from the extraInfo event (#7798)
Issues: #7458
2021-11-26 09:17:34 +01:00
Alex Rudenko
ac162c561e
feat(chromium)!: roll to Chromium 97.0.4692.0 (r938248)
Issues: #7458
2021-11-23 08:19:14 +01:00
Henrik Skupin
4c3caaa3f9
chore: re-enable tests for Firefox related to fixed Input.dispatchMouseEvent issues (#7776)
Issues: #7115
2021-11-19 08:50:31 +01:00
Connor Clark
9f9b4ed72a
fix: clearer jsdoc for behavior of headless when devtools is true (#7748)
The existing comment suggests that only the default changes–however, even if you set `devtools: false` and `headless: true`, Puppeteer will still open with headful.
2021-11-16 21:31:24 +01:00
Alex Rudenko
23ee295f34
fix: null check for frame in FrameManager (#7773)
Issues: #7749
2021-11-15 13:33:45 +00:00
Henrik Skupin
fc94a28778
fix: try to remove the temporary user data directory after the process has been killed (#7761) 2021-11-15 11:52:09 +00:00
Jack Franklin
7c0a7b92cf
chore: remove documentation deploy github action (#7766)
It is causing failed builds and we are not currently using it, plus we
want to move this setup into a new repository, such that it can run
independently of Puppeteer's main codebase.

For now, until that work is done, let's remove it to not cause build
issues and to not waste cycles on CI.
2021-11-11 15:11:18 +00:00
Henrik Skupin
51e61696c1
fix: only kill the process when there is no browser instance available (#7762)
When the browser has been started and we have a valid reference lets make use of it instead of force-killing the process. A force kill should probably be the last resort in cleaning up the process.

This will help with Firefox as described on #7668 (comment).
2021-11-11 09:19:23 +01:00
Henrik Skupin
790c7a0eb9
feat: support for custom user data (profile) directory for Firefox (#7684)
When using a custom Firefox profile for Puppeteer the modified
preferences as present in prefs.js need to be reset once the
profile is no longer needed by Puppeteer. If not done this could
cause side-effects when the profile is used next time outside
of Puppeteer.

As ride-along fix the "--foreground" argument for Firefox will
only be used on MacOS because that's the only supported platform.
2021-11-10 13:31:15 +01:00
Andy Earnshaw
b0319ecc89
fix(ariaqueryhandler): allow single quotes in aria attribute selector (#7750)
This updates the regular expression used to parse aria attribute
selectors so that single quotes may be used as an alternative to double
quotes, e.g. `aria/Single button[role='button']`.

Issues: #7721

Co-authored-by: Andy Earnshaw <andy.earnshaw@gmail.com>
2021-11-09 13:05:10 +01:00
Jan Scheffler
ad7f1de44f
chore: bump version to v11.0.0-post (#7741) 2021-11-03 09:49:17 +00:00
Jan Scheffler
e2e98376b9
chore(release): mark v11.0.0 (#7737) 2021-11-02 14:36:33 +00:00
Jan Scheffler
03c9ecca40
feat: improve error message for response.buffer() (#7669) 2021-10-29 13:44:40 +00:00
Jan Scheffler
4d9dc8c0e6
feat(oop iframes)!: integrate OOP iframes with the frame manager (#7556)
This pull request to adds better support for OOP iframes (see #2548)

The current problem with OOP iframes is that they are moved to a different target. Because of this, the previous versions of Puppeteer pretty much ignored them.
This change extends the FrameManager to already take OOP iframes into account and hides the fact that those frames are actually in different targets.
Further work needs to be done to also make the NetworkManager aware of these and to make sure that settings like emulations etc. are also properly passed down to the new targets.
2021-10-28 11:25:49 +02:00
dependabot[bot]
0d6e688bf3
chore(deps-dev): bump @microsoft/api-documenter from 7.13.63 to 7.13.65 (#7730)
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-documenter) from 7.13.63 to 7.13.65.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Changelog](https://github.com/microsoft/rushstack/blob/master/apps/api-documenter/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-documenter_v7.13.65/apps/api-documenter)

---
updated-dependencies:
- dependency-name: "@microsoft/api-documenter"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 10:22:11 +02:00
dependabot[bot]
c6eb936364
chore(deps-dev): bump ts-node from 10.3.0 to 10.4.0 (#7729)
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.3.0 to 10.4.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.3.0...v10.4.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 10:02:52 +02:00