Andrey Lushnikov
8f8e77492d
test: split out request interception tests ( #4278 )
2019-04-11 21:33:01 -04:00
Andrey Lushnikov
5ee21d97e7
fix(page): intersect content quads with viewport ( #4277 )
...
In certain cases inline element children might be positioned
outside of viewport.
In this case, we should intersect all content quads with viewport
before we pick one to click into.
Fixes #4274 .
2019-04-11 21:11:20 -04:00
Andrey Lushnikov
20988775bf
fix: gracefully handle multiple contexts for secondary DOM World ( #4276 )
...
In case of multiple sessions to the same target, there's a race between
sessions to create a secondary isolated world. As a result, we might
end up having 2 execution contexts created for the needs of the
secondary isolated world.
This patch starts handling this race gracefully: instead of crashing,
we can use either of the execution contexts and ignore the rest.
Notably, the same race condition might happen if page reloads itself
in-between the calls to `page.addEvaluateOnNewDocument` and
`page.createIsolatedWorld`.
Fixes #4197 .
2019-04-11 16:26:18 -04:00
Andrey Lushnikov
2265974ce5
refactor: migrate onto Fetch domain ( #4265 )
...
Request interception in Network domain is deprecated.
Move on onto Fetch domain - the new bright future.
2019-04-11 15:02:06 -04:00
Travis Weidenbenner
a79b775430
fix: Allow PUPPETEER_EXECUTABLE_PATH to be set in npmrc and package.json ( #4270 )
...
This PR sets fixes the PUPPETEER_EXECUTABLE_PATH environment variable so that it can be set in the .npmrc or package.json like the documentation says.
The npm environment is initialized if puppeteer script is run from-inside `npm run` command.
2019-04-11 14:45:00 -04:00
Sergey Bekrin
08e9a4ddaa
fix(launcher): support https for browserURL endpoint ( #4268 )
...
Certain setups expose remote browser through an HTTPS proxy. This patch
adds support for `https://` urls for `browserURL` option.
2019-04-11 13:46:55 -04:00
Andrey Lushnikov
19606a3b79
fix: cache disabling should stick when toggling request interception ( #4260 )
...
This patch:
- refactors `NetworkManager`/`FrameManager` so that they enable all the
relevant domains themselves. This is a preparation for OOPIF support and
migration onto fetch domain.
- moves `networkManager` ownership into `FrameManager`. This way it's clear who owns what.
- stops enabling Security domain: it saves quite some traffic over
websocket since it no longer sends annoying "SecurityStateChanged" events.
Instead, use `Security.setIgnoreCertificateErrors` method.
- consolidates network cache state in network manager. This even fixes a
bug with caching and request interception interop.
2019-04-10 00:42:42 -04:00
Andrey Lushnikov
2a7c3fe3e6
feat(chromium): roll Chromium to r649004 ( #4259 )
...
This roll includes:
- https://crrev.com/648988 - perfetto: Emit trace config in TraceEventMetadataSource
2019-04-08 22:37:11 -07:00
Andrey Lushnikov
54cce43aea
fix(ci): another attempt to fix puppeteer@next ( #4258 )
...
1. re-logged-in into npm
2. regenerated with:
```sh
travis encrypt <KEY> --add deploy.api_key --com --repo GoogleChrome/puppeteer
```
2019-04-08 16:06:14 -07:00
Andrey Lushnikov
0eb256b16b
fix(ci): fix builds of puppeteer@next ( #4257 )
...
Regenerated key with
```sh
travis encrypt <KEY> --add deploy.api_key --com --repo GoogleChrome/puppeteer
```
2019-04-08 14:58:29 -07:00
Joseph Arhar
fd0f58e9c2
fix: Use new requestId for interception request matching ( #4248 )
...
Fix #3471
2019-04-08 14:17:57 -07:00
Andrey Lushnikov
9d31068225
feat(chromium): roll Chromium to r648643 ( #4256 )
...
This roll includes:
- https://crrev.com/648335 -
[DevTools] Send DevTools request ID through URLLoader
- https://crrev.com/648360 -
[DevTools] Add renderer request ID to requestIntercepted
References #3471
2019-04-08 12:11:35 -07:00
Andrey Lushnikov
080b80975f
docs(contributing): add instructions to build Chromium revisions ( #4246 )
2019-04-04 15:34:41 -07:00
Andrey Lushnikov
67fbf46e8e
feat(chromium): roll Chromium to r647475 ( #4240 )
...
This roll includes:
- https://crrev.com/1549884 - DevTools: disable interception for
data: URLs
2019-04-03 18:28:17 -07:00
Andrey Lushnikov
1b8769d09e
docs(troubleshooting): launching Chromium on Windows ( #4235 )
...
Fixes #3186 .
2019-04-02 19:59:17 -07:00
Neil Halelamien
695b30a425
docs(troubleshooting): fix docker example ( #3743 )
...
* removing libgconf-2-4 install since no longer needed according to https://bugs.chromium.org/p/chromium/issues/detail?id=795759#c7
* wget is already included in `node:8-slim` image, so removed lines related to install/cleanup
* node 8 has EOL this year, so incremented to node:10-slim
* use "docker run --init" if available (available in docker-engine >= 1.13.0)
* make dumb-init optional
* combine permission changes and 'npm install' of puppeteer into same line to reduce image size by few hundred MB
* overall image size reduction: 1.21GB -> 865MB
2019-04-02 19:30:23 -07:00
John Youngblood
66ff4928eb
docs(api.md): Working link to Linux differences ( #4232 )
...
A link on line 525 is pointing to a undefined branch (`lkcr`) in `chromium.googlesource.com/chromium/src/`. Change it to point to `lkgr` instead, since it's the closest defined branch in name.
2019-04-02 19:15:20 -07:00
Andrey Lushnikov
0adffcc2cb
docs: add table-of-contents to troubleshooting ( #4234 )
...
Drive-by: teach our table-of-contents generator to ignore comments
inside fenced blocks and to de-linkify titles.
2019-04-02 19:08:22 -07:00
Andrey Lushnikov
2c6df6ddd1
chore: bump version to v1.14.0-post ( #4224 )
2019-03-28 22:50:12 -07:00
Andrey Lushnikov
3fa91cace3
chore: mark version v1.14.0 ( #4222 )
2019-03-28 22:33:38 -07:00
Alex Sergeyev
26d6e91fd5
docs(troubleshooting.md): Update Alpine example ( #4203 )
...
* Refresh documentation for building on Alpine.
* Add ttf-freefont@edge dependency
Without ttf-freefont chrome can't render subscript (CO₂)
2019-03-25 16:33:36 -07:00
Darío Kondratiuk
72866e9467
test: Change cookies unsecure test title ( #4187 )
...
I think we wanted to say "HTTP Website" there.
2019-03-20 11:36:27 -07:00
Andrey Lushnikov
0d0e620405
docs(api.md): update ElementHandle example ( #4169 )
...
Fix #4150
2019-03-19 12:53:47 -07:00
Andrey Lushnikov
c6c32491ec
feat(chromium): roll Chromium to r641577 ( #4178 )
...
Just a healthy roll.
2019-03-19 11:28:06 -07:00
Stephan Rodemeier
11afadc680
fix: Respect the loglevel for logging ( #4014 )
...
This adds support for disabling console.log on CI and when
the loglevel asks for it.
2019-03-19 11:27:42 -07:00
Fabio Picheli
28bab53bf6
docs(troubleshooting.md): Add missing depencies ( #4182 )
...
https://github.com/GoogleChrome/puppeteer/issues/3019#issuecomment-417227105
2019-03-19 10:42:44 -07:00
Andrey Lushnikov
60567575d2
test: make sure frames are reported from-inside shadow DOM ( #4167 )
...
References #4163 .
2019-03-15 21:01:36 -07:00
Vse Mozhet Byt
854b1c0912
feat(executioncontext): support bigints transferring ( #4016 )
...
Refs: https://chromedevtools.github.io/devtools-protocol/tot/Runtime#type-UnserializableValue
2019-03-15 10:20:48 -07:00
Andrey Lushnikov
27cf8594c2
docs(api.md): add note regarding puppeteer.executablePath() ( #4092 )
...
References #4091
2019-03-14 11:32:44 -07:00
Andrey Lushnikov
3511a35fa4
test: fix fixtures test when run with env DUMPIO=1 ( #4123 )
...
The DUMPIO env variable is propagated to a spawned process
and results in unfortunate stdout.
2019-03-13 16:26:28 -07:00
Andrey Lushnikov
808d1bb597
docs(api.md): add links to CDP guide and pptr.dev ( #4159 )
2019-03-13 13:17:10 -07:00
Joel Einbinder
0c8ace2fab
fix(types): add jsdoc for the DOMWorld on frames ( #4158 )
2019-03-12 15:14:41 -07:00
Alix Axel
26abcda668
docs(troubleshooting): updated Lambda resources ( #4140 )
...
- removed deprecated Kikobeats/aws-lambda-chrome
- added outdated info to adieuadieu/serverless-chrome (last updated 6 months ago)
2019-03-12 14:41:33 -07:00
Andrey Lushnikov
6474b3ffe0
test: ensure Page.setBypassCSP works with iFrames ( #4155 )
2019-03-11 17:56:32 -07:00
Andrey Lushnikov
e3a4f3411c
feat(firefox): roll Firefox to 765beffc ( #4156 )
...
This roll fixes flaky request interception in Firefox and moves
`Page.console` event to the Runtime domain.
2019-03-11 17:56:16 -07:00
Andrey Lushnikov
42351c7fe5
feat(firefox): Implement header overrides in request interception ( #4142 )
...
This patch makes sure header overrides in request interception are
functioning as expected.
Drive-by: teach test server to use utf-8 charset header for text files.
2019-03-08 14:26:13 -08:00
Darío Kondratiuk
5d6535ca0c
test: Fix should fire for fetches test ( #4139 )
...
The code in "should fire for fetches" was copy of "should fire for iframes"
I bet the test was supposed to use a fetch there.
2019-03-08 08:59:07 -08:00
Andrey Lushnikov
87a8d744e6
test: add a failing test that tries to click a fixed button in an iframe ( #4130 )
...
References #4110
2019-03-06 18:46:40 -08:00
Andrey Lushnikov
1623bef264
test: improve test coverage for Request.continue ( #4096 )
...
Drive-by: add clarification to docs/api.md regarding
chaning "URL".
References #4030
2019-03-05 14:57:15 -08:00
Joel Einbinder
f32d77e074
test: check if the executable path is an exact match ( #4117 )
...
References #4102
2019-03-04 23:46:14 -08:00
Andrey Lushnikov
7462bdafa1
chore: bump version to v1.13.0-post ( #4115 )
2019-03-04 23:45:18 -08:00
Andrey Lushnikov
77a969419e
chore: mark version v1.13.0 ( #4114 )
2019-03-04 18:39:45 -08:00
Joel Einbinder
ba5f94d2b0
test: disable flaky cookies test ( #4112 )
...
References #4111
2019-03-04 18:18:54 -08:00
Joel Einbinder
02b2451db5
fix: check if async error has a stack ( #4017 )
2019-03-04 17:32:54 -08:00
Andrey Lushnikov
9db09fe7e9
test: add test to validate redirecting in request.respond ( #4106 )
2019-03-04 17:16:04 -08:00
Andrey Lushnikov
c68df320f8
test: add failing test for bad request interception ( #4108 )
...
References #3973
2019-03-04 17:09:23 -08:00
Andrey Lushnikov
02859c3c6d
feat(chromium): roll Chromium to r637110 ( #4099 )
...
This roll includes:
- https://crrev.com/636867 - devtools: bump max number of devtools isolated worlds
Fix #4011
2019-03-04 17:07:56 -08:00
Andrey Lushnikov
bc28f3b3dc
fix(firefox): fix executablePath() on OSX ( #4105 )
...
OSX might have case-sensitive partitions, so make sure we're precise.
Fix #4102
2019-03-04 14:19:28 -08:00
Andrey Lushnikov
c9f6a3d064
chore(firefox): bump version to v0.5.0 ( #4089 )
2019-02-28 16:43:52 -08:00
Joel Einbinder
a6d8ecce6f
fix(firefox): keyboard tests ( #4082 )
2019-02-27 15:13:17 -08:00