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

Commits on Oct 17, 2022

  1. 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
    charliewolfe authored and pascoej committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    09d247d View commit details
    Browse the repository at this point in the history