Need to add DOMFormData.idl to expose FormData interface.
Created attachment 50521 [details]
Comment on attachment 50521 [details]
> +JSValue JSDOMFormData::append(ExecState* exec, const ArgList& args)
> + if (args.size() < 2)
> + return throwError(exec, SyntaxError, "Not enough arguments");
We don't generally throw on too few arguments, but rather let the undefined value get toStringed.
Otherwise, this looks good. r=me if you make that change.
Landed in http://trac.webkit.org/changeset/55921, but reverted by http://trac.webkit.org/changeset/55926.
If you apply this patch, Qt build will work.
diff --git a/WebCore/WebCore.pro b/WebCore/WebCore.pro
index 7d1a56a..80f2e39 100644
@@ -289,6 +289,7 @@ SOURCES += \
+ bindings/js/JSDOMFormDataCustom.cpp \
And please update Qt specific expected file to make buildbot happy:
-window.FormData [object DOMFormDataConstructor]
-window.FormData.prototype [object DOMFormDataPrototype]
+window.FormData [object FormDataConstructor]
+window.FormData.prototype [object FormDataPrototype]
Any reason you did not make the change I asked you to make?
(In reply to comment #4)
> Any reason you did not make the change I asked you to make?
Sorry, forgot this one. I will make sure this will be applied in next landing.
Changed and committed as http://trac.webkit.org/changeset/56003.