0
0
mirror of https://github.com/puppeteer/puppeteer synced 2024-06-14 14:02:48 +00:00
Commit Graph

1267 Commits

Author SHA1 Message Date
Andrey Lushnikov
89a5c396bf
refactor: move to flatten protocol ()
DevTools protocol is dropping nested targets and switching to
flatten protocol. This patch adopts the new scheme.

Once this change lands, tip-of-tree Puppeteer will be incompatible
with Chromium below 72.0.3606.0. Chromium 72 goes stable on [Jan, 29](https://www.chromestatus.com/features/schedule) - the same time we release the
next version of Puppeteer, so this change won't hurt those clients who try using
tip-of-tree Puppeteer with stable chrome. 

For the record: the previous attempt to land this was https://github.com/GoogleChrome/puppeteer/pull/3524.
2019-01-22 18:10:11 -05:00
Andrey Lushnikov
678b8e85ad
fix(page): use secondary DOMWorld to drive page.select() ()
This patch starts creating secondary DOMWorld for every connected
page and switches `page.select()` to run inside the secondary world.

Fix .
2019-01-22 17:55:33 -05:00
Andrey Lushnikov
c09835fd70
feat(chromium): roll Chromium to r624487 ()
This roll includes:
- https://crrev.com/624247 - DevTools: Allow DOM.resolveNode to resolve
  into isolated worlds
- https://crrev.com/624486 - DevTools: addScriptToEvaluateOnNewDocument
  should work with disabled javascript
2019-01-22 13:56:24 -05:00
Linus Unnebäck
9fb89e1bbc test: Add test for waitForFunction with cross-process navigation () 2019-01-22 13:21:18 -05:00
Andrey Lushnikov
9fd4b67d0c
fix(requestinterception): filter out "intervention" header ()
Fixes 
2019-01-20 00:02:13 -05:00
Flosloot
c48b5749f5 docs(juggler/readme.md): more troubleshooting for ff on mac ()
Add docs/help for working around a bug when building firefox using the 
MacOSX SDK 10.14

Fixes 
2019-01-19 11:14:39 -08:00
Dylan Bathurst
842610256c docs(troubleshooting): fix bundle directions () 2019-01-18 17:33:34 -08:00
Flosloot
a9ad1c386b docs(juggler/README.md): Add possible solution FF-Build ()
Fix FF build on MacOS 10.14 (Mojave) by changed xcode-select 
installation behavior
2019-01-18 10:17:11 -08:00
Andrey Lushnikov
f8615c84b5
feat(chromium): roll Chromium to r623082 ()
This roll includes:
- https://crrev.com/623028 -
DevTools: force-detach worker sessions on any navigation
2019-01-15 23:40:05 -08:00
Andrey Lushnikov
4ac00caf9d
refactor: split out DOMWorld from Frame ()
This patch splits out `IsolatedWorld` class from Frame.
The `IsolatedWorld` abstraction is an execution context
with a designated set of DOM wrappers.

References 
2019-01-15 17:21:23 -08:00
Andrey Lushnikov
bea26a7f58
chore(testrunner): sort workers numerically when terminating () 2019-01-15 16:40:58 -08:00
Andrey Lushnikov
489be90c75
test: move tracing tests to one-per-browser ()
Tracing is working on a per-browser level, not per-page. In order
to paralellize these tests effectively and properly, each should run
a designated browser.
2019-01-15 16:39:30 -08:00
Joel Einbinder
91c4501cc6 test(coverage): add failing test for skipping all debugger statements () 2019-01-15 14:49:57 -08:00
Joel Einbinder
4e1e2fb701 fix(screenshot): round the clip dimensions () 2019-01-15 14:34:31 -08:00
Andrey Lushnikov
e5741902b8
feat(chromium): roll Chromium to r622871 ()
Just a healthy roll.
2019-01-15 12:17:53 -08:00
Andrey Lushnikov
04fbbd7cf0
fix(network): relax request matching heuristic ()
Drop requirement for matching "origin" and "content-type" headers
in requests and request interceptions. This way javascript redirects
that use form submission start working.

Fix .
2019-01-15 11:37:53 -08:00
Andrey Lushnikov
e8bb26eb95
refactor: split out classes into files ()
New files:
- LifecycleWatcher
- JSHandle
2019-01-14 20:34:50 -08:00
Andrey Lushnikov
4e9e3bc614
refactor: consolidate all events in Events.js ()
This will allow us to break all dependency cycles that were forcing
us to put many things in a single file (e.g. ExecutionContext and
ElementHandle).
2019-01-14 19:57:05 -08:00
Andrey Lushnikov
71edfc779b
feat(chromium): roll Chromium to r622472 ()
Just a healthy roll.
2019-01-14 18:42:14 -08:00
Andrey Lushnikov
9083c111ca
fix(frames): make sure evaluation does not hang in detached iframes ()
Fix 
2019-01-14 17:23:53 -08:00
Andrey Lushnikov
02ae552ac4
chore(ci): another sad attempt to fix travis deployment ()
Apparently all the issues happen because we switched from travis.org
to travis.com. So this enctryption key was generated with:

```sh
travis encrypt <KEY> --add deploy.api_key --com --repo
GoogleChrome/puppeteer
```
2019-01-14 15:50:51 -08:00
Andrey Lushnikov
2e36b55a89
docs(readme): migrate travis.org shield to travis.com () 2019-01-14 15:35:25 -08:00
Andrey Lushnikov
7daeafc69b
chore(ci): yet another attempt to fix travis auto-deployment () 2019-01-14 15:31:04 -08:00
Brian Schiller
7fabf32172 feat(executioncontext): warn on nested js handle ()
ExecutionContext.evaluateHandle accepts arguments that are either
serializable, or JSHandles. A potential confusion is that it *does not*
accept arguments that *contain* JSHandles.

This patch adds a log message warning when it encounters that situation.

Fixes 
2019-01-14 14:30:50 -08:00
Andrey Lushnikov
d346cb57b4
chore: cleanup puppeteer.connect({browserURL}) ()
This patch:
- renames `browserUrl` into `browserURL`
- cleans up some code
- adds tests for error handling

References 
2019-01-14 14:30:03 -08:00
Łukasz Fiszer
15af75f9a2 feat(launcher): add browserUrl option to puppeteer.connect ()
The `browserURL` option allows to connect to a browser that exposed it's remote debugging protocol on a known port.

Fixes 
2019-01-14 13:23:34 -08:00
Andrey Lushnikov
81cf579275
chore(ci): another attempt to fix travis autopublish () 2019-01-11 22:28:25 -08:00
Andrey Lushnikov
f933f5971f
chore(ci): attempt to fix travis () 2019-01-11 17:01:01 -08:00
Joel Einbinder
96adedf54f fix(screenshots): throw on 0x0 screenshots ()
Fix 
2019-01-11 15:24:43 -08:00
Joel Einbinder
29a2438534 chore(types): Upgrade TypeScript to 3.2.2 () 2019-01-10 22:56:39 -08:00
Joel Einbinder
c44564aa94 feat(docs): mention puppeteer@chrome tagged releases () 2019-01-10 21:42:24 -08:00
Andrey Lushnikov
0505c81b52
test: add test for multiline waittask ()
References 
2019-01-10 21:41:09 -08:00
Ram Dobson
f73197385a fix(page): page.waitForFunction should work with multiline strings ()
Fixes 
2019-01-10 18:18:28 -08:00
Andrey Lushnikov
89fc2adff5
fix(page): consoleMessage.location() should work with workers ()
This patch:
- refactors consoleMessage.location() implementation to
make it work for workers
- re-writes tests to avoid 5 second delay
2019-01-10 18:05:28 -08:00
Tom P
0c867631b0 feat(page): introduce consoleMessage.location() ()
This patch adds a new consoleMessage.location() method that returns console message origins.

Fixes 
2019-01-10 16:51:13 -08:00
Andrey Lushnikov
16fc28bf06
test: make sure headful browser closes with beforeuload page ()
This was fixed upstream at https://crrev.com/618425

Fixes 
2019-01-10 14:05:43 -08:00
Andrey Lushnikov
4c48b77503
chore(examples): exclude localhost from proxy bypass list ()
Since Chrome 72 localhost is bypassed by default. Oftentimes
this is not a default behavior in testing scenarios.

Fixes .
2019-01-09 17:25:26 -08:00
Sergii Tkachenko
82bef70212 docs(troubleshooting.md): Update running on Alpine example ()
Makes Running on Alpine up to date:

- Chrome is now available in LTS Node 10
- Chrome version is updated to the latest alpine `@edge`, 71
- Corresponding Puppeteer is updated to v1.9.0
- `harfbuzz` is now required by dynamic linking
2019-01-09 17:23:49 -08:00
Andrey Lushnikov
1899e7931c
feat: enable Network Service by default ()
References .
2019-01-09 15:47:08 -08:00
Andrey Lushnikov
c86bc0fa9f
feat(chromium): roll Chromium to r620317 ()
This roll includes:
- https://crrev.com/619087 - DevTools: support interception for file: schema
- https://crrev.com/616936 - Complete the screen capture color space plumbing

This should allow us to switch to network service by default.

Note: We now have to force a specific color space since https://crrev.com/616936
tries to pick the system one.
2019-01-08 12:55:40 -08:00
Andrey Lushnikov
1e66d332b8
docs(api.md): better documentation for PUPPETEER_DOWNLOAD_HOST ()
Fix .
2018-12-17 13:31:32 -08:00
Andrey Lushnikov
3d82465f66
fix(page): fix repetitative setContent calls ()
Fix .
2018-12-13 13:33:42 -08:00
Andrey Lushnikov
8aaca4eb1e
feat(page): introduce "Popup" event ()
This patch adds a new "popup" event for page.
"Popup" event is fired whenever page opens another page with
given opener.
2018-12-12 17:09:42 -08:00
Andrey Lushnikov
c90392bdf5
feat: introduce page.browserContext() () 2018-12-12 15:08:31 -08:00
Andrey Lushnikov
4346fa1978
feat(chromium): roll Chromium to r615489 ()
This roll includes:
- https://crrev.com/611230 - Headless: enable disk cache for default profile
- https://crrev.com/613297 - headless: support --disk-cache-dir flag
2018-12-11 12:24:56 -08:00
Joel Einbinder
0cccc586cc fix: ignore the experimental folder for npm () 2018-12-06 23:35:48 -08:00
Andrey Lushnikov
2c4198fbbe
docs(readme): update experimental readme 2018-12-06 14:06:00 -08:00
Andrey Lushnikov
c81f03c250
docs(readme): fix pptrfx readme () 2018-12-06 12:39:03 -08:00
Andrey Lushnikov
be836bef63
docs(pptrfx): update readme () 2018-12-06 12:05:58 -08:00
Eric Bidelman
b874529467 readme(pptr-firefox): adjustments () 2018-12-06 11:48:06 -08:00