Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index 6bfdf9d8506f19acb3f343a2ef6baa8175439cc1..918378e380fb89acabe6bb73d2f328495387b290 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -704,9 +704,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; |