| Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| index 21ebb27a45c63282e458d10566a91706d621b098..9dfe1ca8fe5ade5a5e2771bd929bc7eb76e36a8c 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| @@ -168,8 +168,9 @@ ResourceRequest FrameLoader::resourceRequestForReload(
|
| // was initiated by something in the current document and should therefore
|
| // show the current document's url as the referrer.
|
| if (clientRedirectPolicy == ClientRedirectPolicy::ClientRedirect) {
|
| - request.setHTTPReferrer(Referrer(m_frame->document()->outgoingReferrer(),
|
| - m_frame->document()->getReferrerPolicy()));
|
| + request.setHTTPReferrer(SecurityPolicy::generateReferrer(
|
| + m_frame->document()->getReferrerPolicy(), m_frame->document()->url(),
|
| + m_frame->document()->outgoingReferrer()));
|
| }
|
|
|
| if (!overrideURL.isEmpty()) {
|
|
|