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

Unified Diff: third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp

Issue 1476873002: Adding <keygen> Content Setting (Final) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using top-level dURL. Created 5 years 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: 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 a7eaec25442f22b924b0ac68a650a238583c2303..e8e674ae69cb0e0263175418d5d60c58b90fc556 100644
--- a/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp
@@ -103,7 +103,7 @@ 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());
+ String value = Platform::current()->signedPublicKeyAndChallengeString(shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), document().baseURL(), document().topDocument().baseURL());
if (!value.isNull())
formData.append(name(), value);
}

Powered by Google App Engine
This is Rietveld 408576698