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

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 317493002: Change FrameTree to return Frames instead of LocalFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed conflicts Created 6 years, 6 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: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index 00cea97c9dddc9b55deb7344e15646cd998da983..f1e80cf8b2b517f210095721e38d442765011ae1 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -83,7 +83,7 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
if (isMainResource && m_frame->isMainFrame())
request.setFirstPartyForCookies(request.url());
else if (m_frame->tree().top()->isLocalFrame())
- request.setFirstPartyForCookies(m_frame->tree().top()->document()->firstPartyForCookies());
+ request.setFirstPartyForCookies(toLocalFrame(m_frame->tree().top())->document()->firstPartyForCookies());
// The remaining modifications are only necessary for HTTP and HTTPS.
if (!request.url().isEmpty() && !request.url().protocolIsInHTTPFamily())

Powered by Google App Engine
This is Rietveld 408576698