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

Omit document.referrer for third-party requests while in ephemeral mode #3789

Conversation

charliewolfe
Copy link
Member

@charliewolfe charliewolfe commented Aug 29, 2022

09d247d

Omit document.referrer for third-party requests while in ephemeral mode
https://bugs.webkit.org/show_bug.cgi?id=244518
<rdar://99578273>

For third-party requests, omit document.referrer when accessed from JavaScript bindings while in ephemeral mode.

Reviewed by Darin Adler.

* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-nested-third-party-iframe-ephemeral-expected.txt: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-nested-third-party-iframe-ephemeral.html: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-third-party-iframe-ephemeral-expected.txt: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-third-party-iframe-ephemeral.html: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-referrer-for-navigation-ephemeral-expected.txt: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-referrer-for-navigation-ephemeral.html: Added.
* Source/WebCore/dom/Document+HTML.idl:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::referrerForBindings):
* Source/WebCore/dom/Document.h:

Canonical link: https://commits.webkit.org/255649@main

2f6cd02

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe   πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios   πŸ§ͺ api-mac   πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-wk1
βœ… πŸ›  tv-sim   πŸ§ͺ mac-wk2
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch-sim βœ… πŸ§ͺ mac-wk2-stress

@charliewolfe charliewolfe self-assigned this Aug 29, 2022
@charliewolfe charliewolfe added WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit). WebKit Nightly Build labels Aug 29, 2022
Copy link
Member

@darinadler darinadler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good; you will have to add the Radar link to the commit message before merging.

@charliewolfe charliewolfe force-pushed the eng/Omit-document-referrer-for-third-party-requests-while-in-ephemeral-mode branch from da14e1c to 2f6cd02 Compare October 17, 2022 19:01
@pascoej pascoej added the merge-queue Applied to send a pull request to merge-queue label Oct 17, 2022
https://bugs.webkit.org/show_bug.cgi?id=244518
<rdar://99578273>

For third-party requests, omit document.referrer when accessed from JavaScript bindings while in ephemeral mode.

Reviewed by Darin Adler.

* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-nested-third-party-iframe-ephemeral-expected.txt: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-nested-third-party-iframe-ephemeral.html: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-third-party-iframe-ephemeral-expected.txt: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-document-referrer-third-party-iframe-ephemeral.html: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-referrer-for-navigation-ephemeral-expected.txt: Added.
* LayoutTests/http/tests/resourceLoadStatistics/omit-referrer-for-navigation-ephemeral.html: Added.
* Source/WebCore/dom/Document+HTML.idl:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::referrerForBindings):
* Source/WebCore/dom/Document.h:

Canonical link: https://commits.webkit.org/255649@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/Omit-document-referrer-for-third-party-requests-while-in-ephemeral-mode branch from 2f6cd02 to 09d247d Compare October 17, 2022 21:07
@webkit-commit-queue
Copy link
Collaborator

Committed 255649@main (09d247d): https://commits.webkit.org/255649@main

Reviewed commits have been landed. Closing PR #3789 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Oct 17, 2022
@webkit-early-warning-system webkit-early-warning-system merged commit 09d247d into WebKit:main Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit).
Projects
None yet
5 participants