| Index: Source/core/loader/FrameLoader.cpp
|
| diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
|
| index ffb912ae0aadef4c4e3f2f76f2054050709cb0d2..c2f514fc7f1f11f9c3c6f75da1304e5d349d1b0b 100644
|
| --- a/Source/core/loader/FrameLoader.cpp
|
| +++ b/Source/core/loader/FrameLoader.cpp
|
| @@ -705,9 +705,9 @@ void FrameLoader::setReferrerForFrameRequest(ResourceRequest& request, ShouldSen
|
| {
|
| if (!originDocument)
|
| return;
|
| - // FIXME: This should be an assertion, but there's some plugin code in the chromium repo
|
| - // that both determines its own referrer and expects to be associated with an originDocument.
|
| - if (!request.httpReferrer().isEmpty())
|
| + // Anchor elements with the 'referrerpolicy' attribute will have
|
| + // already set the referrer on the request.
|
| + if (request.didSetHTTPReferrer())
|
| return;
|
| if (shouldSendReferrer == NeverSendReferrer)
|
| return;
|
|
|