Index: third_party/WebKit/Source/core/loader/FormSubmission.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FormSubmission.cpp b/third_party/WebKit/Source/core/loader/FormSubmission.cpp |
index bcc5e248052f32434c278909e91d815d4ab08728..bf168264d123d3f83742d9eff59c2633e8256c3a 100644 |
--- a/third_party/WebKit/Source/core/loader/FormSubmission.cpp |
+++ b/third_party/WebKit/Source/core/loader/FormSubmission.cpp |
@@ -207,7 +207,7 @@ PassRefPtrWillBeRawPtr<FormSubmission> FormSubmission::create(HTMLFormElement* f |
isMultiPartForm = false; |
} |
} |
- WTF::TextEncoding dataEncoding = isMailtoForm ? UTF8Encoding() : FormDataEncoder::encodingFromAcceptCharset(copiedAttributes.acceptCharset(), document.characterSet(), document.defaultCharset()); |
+ WTF::TextEncoding dataEncoding = isMailtoForm ? UTF8Encoding() : FormDataEncoder::encodingFromAcceptCharset(copiedAttributes.acceptCharset(), document.encoding()); |
FormData* domFormData = FormData::create(dataEncoding.encodingForFormSubmission()); |
bool containsPasswordData = false; |