gecko/dom/html
Nikhil Marathe 6c963623ba Bug 1127150 - Use File's name instead of explicit file name in form submission related classes. r=baku
Our nsFormSubmission and subclasses accepted a third filename argument to
explicitly specify the filename. Since switching from nsIDOMBlob to File in Bug
1085283, we can read out the filename directly from the File. This simplifies
the code, but introduces a change in the way Firefox submits form data to
servers.

Consider the code:
var fd = new FormData();
fd.append("blob1", new Blob(["hi"]), ""); // explicit empty filename as third arg
fd.append("file1", new File(["hi"], "")); // File's name is empty, no third arg.
xhr.send(fd);

Previously, the request body had filename="" in the first case, and filename="blob" in the second.
This patch will change it to both cases result in filename=""

This behaviour isn't exactly specced anywhere, nor in the HTML spec [1], nor in
RFC 2388. In addition Blink (at least Chromium v40) has the same behaviour
introduced by this patch. So shipping it seems ok to me.

[1]: http://www.w3.org/html/wg/drafts/html/master/semantics.html#multipart/form-data-encoding-algorithm
2015-02-21 11:54:44 -08:00
..
crashtests Bug 1142032 - Add a crashtest. 2015-03-11 09:31:57 -04:00
reftests Bug 1138442 - Disable reftests on Mulet in parity with B2G/B2G Desktop. r=ahal 2015-03-10 02:43:00 +01:00
test Bug 1127150 - Use File's name instead of explicit file name in form submission related classes. r=baku 2015-02-21 11:54:44 -08:00
HTMLAllCollection.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
HTMLAllCollection.h
HTMLAnchorElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLAnchorElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLAreaElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLAreaElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLAudioElement.cpp
HTMLAudioElement.h
HTMLBodyElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLBodyElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLBRElement.cpp
HTMLBRElement.h
HTMLButtonElement.cpp
HTMLButtonElement.h
HTMLCanvasElement.cpp Bug 1139005 - Need to check the return value of AutoJSAPI.init in canvas EncodeCallback (r=ayang) 2015-03-05 22:03:22 -08:00
HTMLCanvasElement.h
HTMLContentElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLContentElement.h
HTMLDataElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLDataElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLDataListElement.cpp
HTMLDataListElement.h
HTMLDivElement.cpp
HTMLDivElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLElement.cpp
HTMLFieldSetElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLFieldSetElement.h
HTMLFontElement.cpp
HTMLFontElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLFormControlsCollection.cpp
HTMLFormControlsCollection.h
HTMLFormElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLFormElement.h
HTMLFrameElement.cpp
HTMLFrameElement.h
HTMLFrameSetElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLFrameSetElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLHeadingElement.cpp
HTMLHeadingElement.h
HTMLHRElement.cpp
HTMLHRElement.h
HTMLIFrameElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLIFrameElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLImageElement.cpp Bug 1141260 - Null-check the responsive selector in images. r=jst 2015-03-10 17:38:30 -04:00
HTMLImageElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLInputElement.cpp Bug 1127150 - Use File's name instead of explicit file name in form submission related classes. r=baku 2015-02-21 11:54:44 -08:00
HTMLInputElement.h
HTMLLabelElement.cpp
HTMLLabelElement.h
HTMLLegendElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLLegendElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLLIElement.cpp
HTMLLIElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLLinkElement.cpp bug 1135160 - implement link rel=preconnect r=smaug 2015-02-20 17:01:36 -05:00
HTMLLinkElement.h bug 1135160 - implement link rel=preconnect r=smaug 2015-02-20 17:01:36 -05:00
HTMLMapElement.cpp
HTMLMapElement.h
HTMLMediaElement.cpp Bug 1127646 - Report MSE Join Latency and MTBR in telemetry - r=cpearce,bsmedberg 2015-03-13 15:02:49 +13:00
HTMLMediaElement.h Bug 1127646 - Report MSE Join Latency and MTBR in telemetry - r=cpearce,bsmedberg 2015-03-13 15:02:49 +13:00
htmlMenuBuilder.js
htmlMenuBuilder.manifest
HTMLMenuElement.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
HTMLMenuElement.h
HTMLMenuItemElement.cpp
HTMLMenuItemElement.h
HTMLMetaElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLMetaElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLMeterElement.cpp
HTMLMeterElement.h
HTMLModElement.cpp
HTMLModElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLObjectElement.cpp Bug 1037687, load iframes in shadow DOM, r=wchen 2015-02-24 16:41:43 +02:00
HTMLObjectElement.h Bug 1110888 - Always do plugin IME in main process, even with e10s. r=masayuki,smaug 2015-02-20 10:37:02 -06:00
HTMLOptGroupElement.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
HTMLOptGroupElement.h
HTMLOptionElement.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
HTMLOptionElement.h
HTMLOptionsCollection.cpp
HTMLOptionsCollection.h
HTMLOutputElement.cpp
HTMLOutputElement.h
HTMLParagraphElement.cpp
HTMLParagraphElement.h
HTMLPictureElement.cpp Bug 1134561 - Use of the namespace when checking the tag name if HTMLPictureElement and HTMLSourceElement. r=jst 2015-03-10 10:23:14 -04:00
HTMLPictureElement.h
HTMLPreElement.cpp
HTMLPreElement.h
HTMLProgressElement.cpp
HTMLProgressElement.h
HTMLPropertiesCollection.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLPropertiesCollection.h
HTMLScriptElement.cpp
HTMLScriptElement.h
HTMLSelectElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLSelectElement.h
HTMLShadowElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLShadowElement.h
HTMLSharedElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLSharedElement.h
HTMLSharedListElement.cpp
HTMLSharedListElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLSharedObjectElement.cpp Bug 1037687, load iframes in shadow DOM, r=wchen 2015-02-24 16:41:43 +02:00
HTMLSharedObjectElement.h Bug 1110888 - Always do plugin IME in main process, even with e10s. r=masayuki,smaug 2015-02-20 10:37:02 -06:00
HTMLSourceElement.cpp Bug 1134561 - Use of the namespace when checking the tag name if HTMLPictureElement and HTMLSourceElement. r=jst 2015-03-10 10:23:14 -04:00
HTMLSourceElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLSpanElement.cpp
HTMLSpanElement.h
HTMLStyleElement.cpp Bug 1087460 - Part 1: Make GetComposedDoc() work in UnbindFromTree. r=smaug 2015-02-09 10:01:23 -08:00
HTMLStyleElement.h
HTMLTableCaptionElement.cpp
HTMLTableCaptionElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTableCellElement.cpp Bug 1142478. Fix integer attribute parsing to not lose track of leading zeroes. r=sicking 2015-03-12 21:46:57 -04:00
HTMLTableCellElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTableColElement.cpp
HTMLTableColElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTableElement.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLTableElement.h Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
HTMLTableRowElement.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
HTMLTableRowElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTableSectionElement.cpp
HTMLTableSectionElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTemplateElement.cpp
HTMLTemplateElement.h
HTMLTextAreaElement.cpp Bug 1125963 - Part 1: Fix serialization of the pre-wrap elements that Thunderbird relies on; r=bzbarsky 2015-03-04 00:50:17 -05:00
HTMLTextAreaElement.h
HTMLTimeElement.cpp Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTimeElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLTitleElement.cpp
HTMLTitleElement.h
HTMLTrackElement.cpp
HTMLTrackElement.h Bug 835800 - Convert more DOM attribute reflectors to DOMString. r=bzbarsky 2015-02-13 08:27:39 +07:00
HTMLUnknownElement.cpp
HTMLUnknownElement.h
HTMLVideoElement.cpp Bug 1129263 - Part 4. Use MediaInfo instead of mHasAudio/Video in media element. r=roc 2015-02-09 14:51:17 +08:00
HTMLVideoElement.h
ImageDocument.cpp Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
ImageDocument.h
MediaDocument.cpp
MediaDocument.h
MediaError.cpp
MediaError.h
moz.build
nsBrowserElement.cpp Bug 1127189 part 2 - Initialize browser API directly to get rid of nsBrowserElement observers. r=kanru 2015-02-09 15:04:18 +08:00
nsBrowserElement.h Bug 1127189 part 2 - Initialize browser API directly to get rid of nsBrowserElement observers. r=kanru 2015-02-09 15:04:18 +08:00
nsDOMStringMap.cpp
nsDOMStringMap.h
nsFormSubmission.cpp Bug 1127150 - Use File's name instead of explicit file name in form submission related classes. r=baku 2015-02-21 11:54:44 -08:00
nsFormSubmission.h Bug 1127150 - Use File's name instead of explicit file name in form submission related classes. r=baku 2015-02-21 11:54:44 -08:00
nsFormSubmissionConstants.h
nsGenericHTMLElement.cpp Bug 1125767. Centralize code into nsStylePosition::IsFixedPosContainingBlock. r=mats 2015-03-12 16:21:01 +13:00
nsGenericHTMLElement.h Bug 1134280 - Get rid of Tag() - patch 5 - nsGenericHTMLElement::IsHTMLElement, r=smaug 2015-03-03 11:09:01 +00:00
nsGenericHTMLFrameElement.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
nsGenericHTMLFrameElement.h Bug 1108887 - Backout part 2 of bug 949435 (SVG iframe). r=bzbarsky 2015-02-11 11:20:50 +00:00
nsHTMLContentSink.cpp
nsHTMLDNSPrefetch.cpp Bug 1098415 - Skip DNS prefetch for local resources. r=sworkman 2015-02-12 15:21:00 +01:00
nsHTMLDNSPrefetch.h
nsHTMLDocument.cpp Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
nsHTMLDocument.h
nsIConstraintValidation.cpp
nsIConstraintValidation.h
nsIForm.h
nsIFormControl.h
nsIFormProcessor.h
nsIFormSubmitObserver.idl
nsIHTMLCollection.h
nsIHTMLDocument.h
nsIHTMLMenu.idl
nsIImageDocument.idl
nsIMenuBuilder.idl
nsIPhonetic.idl
nsIRadioGroupContainer.h
nsIRadioVisitor.h
nsITextControlElement.h
nsRadioVisitor.cpp
nsRadioVisitor.h
nsTextEditorState.cpp Bug 1125963 - Part 1: Fix serialization of the pre-wrap elements that Thunderbird relies on; r=bzbarsky 2015-03-04 00:50:17 -05:00
nsTextEditorState.h
PluginDocument.cpp
RadioNodeList.cpp
RadioNodeList.h
TextTrackManager.cpp
TextTrackManager.h
TimeRanges.cpp Bug 1129732: Part1. Dynamically adjust calculations using timestampoffset. r=mattwoodrow 2015-02-09 23:28:59 +11:00
TimeRanges.h Bug 1129732: Part1. Dynamically adjust calculations using timestampoffset. r=mattwoodrow 2015-02-09 23:28:59 +11:00
UndoManager.cpp
UndoManager.h
ValidityState.cpp
ValidityState.h
VideoDocument.cpp