Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(page): Adding support for referrerPolicy in page.goto #9561

Merged
merged 1 commit into from Jan 23, 2023
Merged

feat(page): Adding support for referrerPolicy in page.goto #9561

merged 1 commit into from Jan 23, 2023

Conversation

Kle0s
Copy link
Contributor

@Kle0s Kle0s commented Jan 23, 2023

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.

@google-cla
Copy link

google-cla bot commented Jan 23, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@OrKoN OrKoN self-requested a review January 23, 2023 08:41
@OrKoN
Copy link
Collaborator

OrKoN commented Jan 23, 2023

Could you please run npm run docs and pus the generated docs?

@OrKoN OrKoN enabled auto-merge (squash) January 23, 2023 10:48
@OrKoN OrKoN merged commit e3d69ec into puppeteer:main Jan 23, 2023
@release-please release-please bot mentioned this pull request Jan 23, 2023
OrKoN pushed a commit that referenced this pull request Jan 23, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>puppeteer: 19.6.0</summary>

##
[19.6.0](puppeteer-v19.5.2...puppeteer-v19.6.0)
(2023-01-23)


### Miscellaneous Chores

* **puppeteer:** Synchronize puppeteer versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * puppeteer-core bumped from 19.5.2 to 19.6.0
</details>

<details><summary>puppeteer-core: 19.6.0</summary>

##
[19.6.0](puppeteer-core-v19.5.2...puppeteer-core-v19.6.0)
(2023-01-23)


### Features

* **chromium:** roll to Chromium 110.0.5479.0 (r1083080)
([#9500](#9500))
([06e816b](06e816b)),
closes [#9470](#9470)
* **page:** Adding support for referrerPolicy in `page.goto`
([#9561](#9561))
([e3d69ec](e3d69ec))


### Bug Fixes

* firefox revision resolution should not update chrome revision
([#9507](#9507))
([f59bbf4](f59bbf4)),
closes [#9461](#9461)
* improve screenshot method types
([#9529](#9529))
([6847f88](6847f88))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants