Mounir Lamouri (:volkmar) (:mounir) <
mou...@lamouri.fr> has asked Jonas Sicking
(:sicking) <
jo...@sicking.cc> for superreview:
Bug 757664: Make the files attribute of HTMLInputElement writable
https://bugzilla.mozilla.org/show_bug.cgi?id=757664
Attachment 628895: patch
https://bugzilla.mozilla.org/attachment.cgi?id=628895&action=edit
------- Additional Comments from Mounir Lamouri (:volkmar) (:mounir)
<
mou...@lamouri.fr>
Review of attachment 628895:
-----------------------------------------------------------------
r=me with the requested changes.
Though, this needs a super-review from Jonas.
::: content/html/content/test/forms/test_input_files_writable.html
@@ +34,5 @@
> +netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
> +input1.mozSetFileNameArray(myFile, myFile.length);
> +
> +input2.files = input1.files;
> +is(input2.files.length, 1, "files attribute should be writable");
I would really prefer something like that:
caught = false;
try {
input2.files = input1.files;
} catch(e) {
caught = true;
}
is(caught, false, "files attribute should be writable");
is(input2.files.length, 1, "setting the files attribute should have updated
it");