puppeteer/packages/puppeteer-core/src
Ophir Back e3d69ec554
feat(page): Adding support for referrerPolicy in page.goto (#9561)
Issue: #9394

**What kind of change does this PR introduce?**

Feature - Added support of the `referrerPolicy` parameter (from CDP's
`Page.navigate`) to Puppeteer's `page.goto`.

**Did you add tests for your changes?**

No, currently it has no meaning that isn't browser implementation based,
which might get broken in the future. If there are suggestions to tests,
please let me know so I'll add them.

**If relevant, did you update the documentation?**
Yes, the documentation of the `goto` method has been updated.

**Summary**
I wanted to contribute to this project, which I used for testing on our
environment and saw issue #9394, so I decided to resolve it :)

**Does this PR introduce a breaking change?**
No. I added the `referrerPolicy` as an optional parameter, which will
use the HTTP header `Referrer-Policy` if not provided (much like the
`referer` parameter) so it will not interfere.

Co-authored-by: Ophir Back <ophir.back@broadcom.com>
2023-01-23 11:11:20 +00:00
..
api feat(page): Adding support for referrerPolicy in page.goto (#9561) 2023-01-23 11:11:20 +00:00
common feat(page): Adding support for referrerPolicy in page.goto (#9561) 2023-01-23 11:11:20 +00:00
injected fix: remove boundary conditions for visibility (#9249) 2022-11-14 09:34:07 +01:00
node fix: firefox revision resolution should not update chrome revision (#9507) 2023-01-13 10:57:48 +00:00
templates feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
util chore: re-export all exports (#9241) 2022-11-10 17:11:18 +01:00
environment.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
puppeteer-core.ts chore: re-export all exports (#9241) 2022-11-10 17:11:18 +01:00
revisions.ts feat(chromium): roll to Chromium 110.0.5479.0 (r1083080) (#9500) 2023-01-12 11:31:20 +01:00
tsconfig.cjs.json feat!: use ~/.cache/puppeteer for browser downloads (#9095) 2022-10-11 11:20:45 +00:00
tsconfig.esm.json feat!: use ~/.cache/puppeteer for browser downloads (#9095) 2022-10-11 11:20:45 +00:00