Index: third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
index 160e50565160cdf2cb7904365ba33452527dbff3..f4588d289a6d5cb6526a595e46e76d472b0ea97c 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp |
@@ -105,7 +105,10 @@ void HTMLKeygenElement::appendToFormData(FormData& formData) |
const AtomicString& keyType = fastGetAttribute(keytypeAttr); |
if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa")) |
return; |
- String value = Platform::current()->signedPublicKeyAndChallengeString(shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), document().baseURL()); |
+ SecurityOrigin* topOrigin = document().frame()->tree().top()->securityContext()->securityOrigin(); |
+ String value = Platform::current()->signedPublicKeyAndChallengeString( |
+ shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), document().baseURL(), |
+ KURL(KURL(), topOrigin->toString())); |
if (!value.isNull()) |
formData.append(name(), value); |
} |