Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10323)

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1411813003: Teach URLRequest about initiator checks for First-Party-Only cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 52b1cd7b24b4d6d8bc37591a2c52a762b247f5af..4ceb7caa5f9932ce995adb4c55fd0869ed2d8cf7 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3237,6 +3237,10 @@ void RenderFrameImpl::willSendRequest(
frame->top()->document().firstPartyForCookies());
}
}
+
+ // If the first-party isn't set, we need to set the first-party state as
estark 2015/10/20 23:41:58 This comment isn't parsing for me. Is it possible
Mike West 2015/10/22 13:17:02 Yup. I can't type, obviously. Fixing the comment.
+ // well; it will not be updated during redirects.
+ request.setRequestorOrigin(frame->document().securityOrigin());
}
WebDataSource* provisional_data_source = frame->provisionalDataSource();

Powered by Google App Engine
This is Rietveld 408576698