| Index: Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
|
| index b5dd401117f5dea8ba03bdc88444bbeb2e7237dd..10cf220cb632cf3294180df887a7f02bc923d372 100644
|
| --- a/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/Source/core/loader/FrameFetchContext.cpp
|
| @@ -81,7 +81,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())
|
|
|