Unreviewed, rolling out r145097.
[WebKit-https.git] / Source / WebCore / platform / network / FormData.cpp
index f6d4588..381d17b 100644 (file)
@@ -244,11 +244,11 @@ void FormData::appendKeyValuePairItems(const FormDataList& list, const TextEncod
                     }
 
                     // If a filename is passed in FormData.append(), use it instead of the file blob's name.
                     }
 
                     // If a filename is passed in FormData.append(), use it instead of the file blob's name.
-                    if (!value.filename().isNull())
+                    if (!value.filename().isEmpty())
                         name = value.filename();
                 } else {
                     // For non-file blob, use the filename if it is passed in FormData.append().
                         name = value.filename();
                 } else {
                     // For non-file blob, use the filename if it is passed in FormData.append().
-                    if (!value.filename().isNull())
+                    if (!value.filename().isEmpty())
                         name = value.filename();
                     else
                         name = "blob";
                         name = value.filename();
                     else
                         name = "blob";