Big Changes
- Chromium 67.0.3391.0 (r549031)
- Anchor-navigation is fixed. See #257
- Page's CSP can be by-passed with
page.setBypassCSP
. See #1229.
API changes
Added
event: 'page.close'
(d46e157)page.setBypassCSP
(35e34db)elementHandle.boxModel()
(41d5838)PUPPETEER_CHROMIUM_REVISION
(5061035)puppeteer.launch
accepts a new argument:pipe
(94c32e4)
Changed
page.tracing.stop
(98bb261) now returns a buffer
Bug Fixes
- #257 - Hash-only navigation doesn't work
- #563 -
page.screenshot()
rejects when slowMo >= 1000 and https cert is self-signed even withignoreHTTPSErrors
- #1229 - Page with CSP breaks puppeteer
- #1357 - Feature: improve boundingBox method at ElementHandle
- #1429 - slowMo + userDataDir = Error: Protocol error (Browser.close): Target closed.
- #1537 - Test 'userDataDir option should restore cookies' is flaky
- #1834 - Add --disable-dev-shm-usage to default launch flags
- #1936 - When a frame fails to load due to a mixed content issue, the main Page is never considered loaded.
- #2037 - Improve error message for timeouts
- #2082 - Tests: break into smaller files
- #2148 - Tracing: stop() should return Promise
- #2200 - page.waitForFunction does not support disable timeout
- #2236 - [win10] run coverage -> rm is not defined
- #2279 - TypeScript 2.8.0 fails to lint types
- #2283 - Chromium binary permissions is only -rwx------
- #2295 - page.evaluate() throws and hangs if returned value is an array with Symbol
Raw notes
98bb261 - feat(Tracing): return a buffer from tracing.stop (#2360)
04991ad - test: consolidate network tests in one file (#2355)
f8cba45 - fix(Network): explicitly throw on content request for redirect response (#2352)
18f2ecd - fix(Launcher): launch chrome with --disable-dev-shm-usage by default (#2351)
0b64242 - test: add missing rm
function to test.js
(#2349)
a7d59b5 - fix(Page): Page.waitForNavigation should correctly handle mixed content (#2339)
5089d2e - fix(BrowserFetcher): ensure executable has proper permissions (#2342)
beea6f9 - chore(testrunner): fix typo in readme
fafd156 - fix(Page): support anchor navigation (#2338)
2b95774 - docs(api.md): mention header/footer template limitations in page.pdf
. (#2341)
c5902de - fix(Page): fix Page.evaluate with Symbols in arrays (#2340)
5d106f7 - test: flatten tests (#2337)
06d6191 - test: refactor utils.waitForEvents into utils.waitEvent (#2336)
c86c12e - fix(Launcher): consume protocol errors when initiating browser.close() (#2332)
a052b9e - docs(troubleshooting): Adding Travis CI mention (#2334)
717d4a7 - docs(api): warn about slow screenshots on OS X (#2326)
57fa690 - fix(Connection): do not assert that methods always have callbacks. (#2330)
294f33b - chore(types): type check the rest of the protocol (#2328)
45d97e5 - feat(Chromium): roll Chromium to r549031 (#2327)
8c54f41 - chore(types): generate a d.ts file for protocol types (#2325)
35e34db - feat(Page): introduce Page.setBypassCSP (#2324)
dfcee2e - feat(Chromium): roll Chromium to r548690 (#2323)
846c080 - feat(Page): Page.addScriptTag should throw when blocked by CSP (#2320)
4663b43 - test: add test on Page.evaluateOnNewDocument with CSP (#2319)
1fdd338 - docs(api.md): fix minor spelling errors (#2314)
2370618 - chore(types): upgrade to TypeScript 2.8.1 (#2304)
3b88d0d - docs(readme): add googlechromelabs repo. (#2306)
98093f0 - feat(Chromium): roll Chromium to r548153 (#2312)
f925158 - test: add test for page.waitForFunction with script CSP (#2305)
94c32e4 - feat(Launcher): introduce pipe
option (#2288)
f51a315 - docs(README): Removed --save flag for npm install (#2302)
dde45fa - feat(FrameManage): improve errors from frame.waitFor* methods (#2292)
8b0fd0a - feat(install): support npm config for chromium revision (#2290)
c4da19b - test(ElementHandle.boxModel): remake test to make it more readable (#2287)
c6c60aa - feat(Chromium): roll Chromium to r546920 (#2286)
41d5838 - feat(ElementHandle): add ElementHandle.boxModel method (#2256)
d4f24f1 - docs(README): add checkly to list of services (#2209)
5061035 - feat(install): introduce PUPPETEER_CHROMIUM_REVISION (#2246)
ebe1737 - chore: break page.spec.js to smaller files (#2257)
abb05e0 - feat(page): add an option to disable timeout for waitForFunction (#2252)
71a07bb - chore: fixate TypeScript to ~2.7.0 (#2280)
9af02a0 - docs(api.md): fix some links (#2253)
d46e157 - feat(Page): page 'close' event (#2232)
4748196 - test: Break 'page.spec.js' to smaller files (#2218)
38c6873 - test: break test.js into smaller files (#2193)
311f307 - chore: bump version to v1.2.0-post (#2205)