puppeteer/test/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
..
bidi feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
accessibility.spec.ts fix: improve a11y snapshot handling if the tree is not correct (#9405) 2022-12-13 08:31:26 +00:00
ariaqueryhandler.spec.ts fix(puppeteer-core): target interceptor is not async (#9430) 2022-12-17 17:47:21 +00:00
browser.spec.ts feat(chromium): roll to Chromium 109.0.5412.0 (r1069273) (#9364) 2022-12-07 14:54:00 +01:00
browsercontext.spec.ts feat: expose browser context id (#9134) 2022-10-19 08:30:57 +00:00
CDPSession.spec.ts chore: upgrade mitt (#9340) 2022-11-29 19:50:58 +00:00
chromiumonly.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
click.spec.ts fix!: remove puppeteer.devices in favor of KnownDevices (#9075) 2022-10-10 15:30:12 +02:00
cookies.spec.ts docs: fix typos (#9476) 2023-01-16 20:25:09 +01:00
coverage.spec.ts feat(chromium): roll to Chromium 110.0.5479.0 (r1083080) (#9500) 2023-01-12 11:31:20 +01:00
defaultbrowsercontext.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
dialog.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
diffstyle.css chore: use composite builds for tests (#8522) 2022-06-15 12:05:25 +02:00
drag-and-drop.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
elementhandle.spec.ts feat: add element validation (#9352) 2022-12-19 13:25:56 +01:00
emulation.spec.ts fix!: remove puppeteer.devices in favor of KnownDevices (#9075) 2022-10-10 15:30:12 +02:00
evaluation.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
EventEmitter.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
fixtures.spec.ts feat(chromium): roll to Chromium 109.0.5412.0 (r1069273) (#9364) 2022-12-07 14:54:00 +01:00
frame.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
golden-utils.ts chore: use --parallel (#8612) 2022-07-05 14:42:55 +02:00
headful.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
idle_override.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
ignorehttpserrors.spec.ts chore: extract BrowserContext to its own file (#9133) 2022-10-19 07:06:31 +00:00
injected.spec.ts chore: re-export all exports (#9241) 2022-11-10 17:11:18 +01:00
input.spec.ts fix!: deprecate indirect error imports (#9072) 2022-10-06 23:52:51 +02:00
jshandle.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
keyboard.spec.ts feat(puppeteer-core): keydown supports commands (#9357) 2022-12-03 11:23:47 +01:00
launcher.spec.ts chore: use named import for devtools-protocol module (#9511) 2023-01-17 11:34:57 +00:00
mocha-utils.ts chore: use named import for devtools-protocol module (#9511) 2023-01-17 11:34:57 +00:00
mouse.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
navigation.spec.ts feat(page): Adding support for referrerPolicy in page.goto (#9561) 2023-01-23 11:11:20 +00:00
network.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
NetworkManager.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
oopif.spec.ts docs: fix typos (#9476) 2023-01-16 20:25:09 +01:00
page.spec.ts feat(chromium): roll to Chromium 110.0.5479.0 (r1083080) (#9500) 2023-01-12 11:31:20 +01:00
proxy.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
queryhandler.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
queryselector.spec.ts fix!: refactor custom query handler API (#9078) 2022-10-10 16:01:09 +02:00
requestinterception-experimental.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
requestinterception.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
screenshot.spec.ts chore: implement custom mocha interface for the runner (#8929) 2022-09-09 11:12:18 +02:00
target.spec.ts fix!: deprecate indirect error imports (#9072) 2022-10-06 23:52:51 +02:00
TargetManager.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
touchscreen.spec.ts fix!: remove puppeteer.devices in favor of KnownDevices (#9075) 2022-10-10 15:30:12 +02:00
tracing.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
utils.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00
waittask.spec.ts chore: fix race in test Frame.waitForFunction should work when context is destroyed (#9368) 2022-12-06 16:59:44 +00:00
worker.spec.ts feat: separate puppeteer and puppeteer-core (#9023) 2022-10-05 14:17:03 +02:00