Closed Bug 951993 Opened 11 years ago Closed 11 years ago

Setting ui.allow_platform_file_picker to false breaks multiple file selection in HTML forms

Categories

(Toolkit :: General, defect)

26 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla29

People

(Reporter: ghouston, Assigned: ghouston)

Details

Attachments

(3 files)

Attached file upload.html
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20131206145143 Steps to reproduce: Using Firefox 26 on xubuntu 13.10. Open the attached file "upload.html". Select a couple of files by holding the shift or control keys and note what the form displays. Now change ui.allow_platform_file_picker in about.config and try again. Actual results: The same dialog is used regardless of the setting of the variable (I think it's an internal Firefox dialog). When the setting is true, multiple files can be selected and the form displays: Browse... 2 files selected When the setting is false, it's still possible to select multiple files, but only one is displayed in the form (and only one will be uploaded, in a real example): Browse... test1.txt Expected results: Setting the variable to true should allow the default system dialog to be used (in xubuntu, I guess that would be the one used by Chrome, or the default text editor, Mousepad.) However even if a system dialog isn't available in xubuntu, changing the setting shouldn't break the selection of multiple files in an HTML form. It's possible that this is a bug recently introduced into Firefox. I discovered recently that uploading multiple files didn't work anymore, and traced it to that variable, which was false. However I don't remember changing the value of that variable recently.
It seems that it is using a different dialog depending on the setting of ui.allow_platform_file_picker, as expected. I'm also getting a warning about mMode being undefined in nsFilePicker.js, and this file was changed a few months ago. I'll add a patch that seems to fix it.
Component: Untriaged → File Handling
Attachment #8350872 - Flags: review?(amarchesini)
Attachment #8350872 - Flags: review?(amarchesini) → review+
Keywords: checkin-needed
Assignee: nobody → ghouston
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: checkin-needed
OS: Linux → All
Hardware: x86_64 → All
Component: File Handling → General
Product: Firefox → Toolkit
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Keywords: verifyme
Reproduced the initial issue on older nightly build and verified that the issue is fixed using latest Aurora on Ubuntu 12.04 32bit. On Windows and Mac the pref does not exist and if I create it, nothing changes.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: