summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/renderer/render_view_impl.cc4
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc3
2 files changed, 4 insertions, 3 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index bdfed70..12d5891 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2578,7 +2578,7 @@ void RenderViewImpl::didCompleteClientRedirect(
// navigation.
completed_client_redirect_src_ = Referrer(
from, ds ? GetReferrerPolicyFromRequest(ds->request()) :
- frame->referrerPolicy());
+ frame->document().referrerPolicy());
}
FOR_EACH_OBSERVER(
RenderViewObserver, observers_, DidCompleteClientRedirect(frame, from));
@@ -3118,7 +3118,7 @@ void RenderViewImpl::willSendRequest(WebFrame* frame,
}
request.setExtraData(
- new RequestExtraData(frame->referrerPolicy(),
+ new RequestExtraData(frame->document().referrerPolicy(),
(frame == top_frame),
frame->identifier(),
frame->parent() == top_frame,
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 70fae86..3cf56cc 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -867,7 +867,8 @@ void TestWebViewDelegate::willSendRequest(
std::string request_url = url.possibly_invalid_spec();
request.setExtraData(
- new webkit_glue::WebURLRequestExtraDataImpl(frame->referrerPolicy()));
+ new webkit_glue::WebURLRequestExtraDataImpl(
+ frame->document().referrerPolicy()));
if (!redirect_response.isNull() && block_redirects_) {
printf("Returning null for this redirect\n");