| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 303f98e0c89b4ed49d6d2998b2541968559aedb1..d5f65bbc78e69588fd5b30f0b499ba6d45253de7 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -4160,7 +4160,9 @@ const KURL& Document::firstPartyForCookies() const
|
| currentDocument = currentDocument->parentDocument();
|
| ASSERT(currentDocument);
|
|
|
| - if (accessEntry.matchesOrigin(*currentDocument->securityOrigin()) == OriginAccessEntry::DoesNotMatchOrigin)
|
| + // We use 'matchesDomain' here, as it turns out that some folks embed HTTPS login forms
|
| + // into HTTP pages; we should allow this kind of upgrade.
|
| + if (accessEntry.matchesDomain(*currentDocument->securityOrigin()) == OriginAccessEntry::DoesNotMatchOrigin)
|
| return SecurityOrigin::urlWithUniqueSecurityOrigin();
|
|
|
| currentDocument = currentDocument->parentDocument();
|
|
|