зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 23974693ffc5 (bug 1187157
) for failing test_formSubmission.html on Mulet Linux x64 opt. r=backout
This commit is contained in:
Родитель
e7a54a390c
Коммит
766d7ee106
|
@ -256,30 +256,6 @@ nsFormData::GetValueAtIndex(uint32_t aIndex) const
|
|||
return mFormData[aIndex].value;
|
||||
}
|
||||
|
||||
void
|
||||
nsFormData::SetNameValuePair(FormDataTuple* aData,
|
||||
const nsAString& aName,
|
||||
const nsAString& aValue)
|
||||
{
|
||||
MOZ_ASSERT(aData);
|
||||
aData->name = aName;
|
||||
aData->value.SetAsUSVString() = aValue;
|
||||
}
|
||||
|
||||
void
|
||||
nsFormData::SetNameFilePair(FormDataTuple* aData,
|
||||
const nsAString& aName,
|
||||
File* aFile)
|
||||
{
|
||||
MOZ_ASSERT(aData);
|
||||
aData->name = aName;
|
||||
if (aFile) {
|
||||
aData->value.SetAsFile() = aFile;
|
||||
} else {
|
||||
aData->value.SetAsUSVString() = EmptyString();
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// nsIDOMFormData
|
||||
|
||||
|
|
|
@ -52,11 +52,23 @@ private:
|
|||
|
||||
void SetNameValuePair(FormDataTuple* aData,
|
||||
const nsAString& aName,
|
||||
const nsAString& aValue);
|
||||
const nsAString& aValue)
|
||||
{
|
||||
MOZ_ASSERT(aData);
|
||||
aData->name = aName;
|
||||
aData->value.SetAsUSVString() = aValue;
|
||||
}
|
||||
|
||||
void SetNameFilePair(FormDataTuple* aData,
|
||||
const nsAString& aName,
|
||||
File* aFile);
|
||||
File* aFile)
|
||||
{
|
||||
MOZ_ASSERT(aData);
|
||||
aData->name = aName;
|
||||
if (aFile) {
|
||||
aData->value.SetAsFile() = aFile;
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
explicit nsFormData(nsISupports* aOwner = nullptr);
|
||||
|
|
|
@ -862,4 +862,3 @@ skip-if = buildapp == 'b2g' #no ssl support
|
|||
[test_document.all_iteration.html]
|
||||
[test_performance_translate.html]
|
||||
[test_bug1198095.html]
|
||||
[test_bug1187157.html]
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=789315
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 789315</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=789315">Mozilla Bug 789315</a>
|
||||
<form id="a"><input name="b" type="file"/></form>
|
||||
|
||||
<script type="text/javascript">
|
||||
is(new FormData(document.getElementById('a')).get('b'), "", "This should return an empty string.");
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче