Closed Bug 511290 Opened 15 years ago Closed 15 years ago

Can't use standard file picker to upload files from user's Maemo File area

Categories

(Core :: Widget, defect)

ARM
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta2-fixed

People

(Reporter: cmtalbert, Assigned: mfinkle)

References

(Depends on 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

1. Find an <input type="file"> tag somewhere on the net, or just use the one in the attachment.
2. Try to point the upload at a file in your Maemo Documents folder (/home/user/MyDocs/.documents).

= Expected =
You'd expect the firefox uploader to look a lot more like the maemo file manager which does a decent job of hiding the complexity of the underlying linux system and presents the user with a "user area" of files.

= Actual =
The firefox file picker just opens right up to show you /  and you have no way to get to those items in your "maemo user area" because they are all hidden directories beneath /home/user/MyDocs and the file picker doesn't show hidden directories.
I think this should both be in the litmus testcases (if it isn't already) and it should block fennec 1.0.
tracking-fennec: --- → ?
Flags: in-litmus?
romaxa - does microb have some code we could add to mozilla?
does this involve using the hildon file picker rather than the gtk one?
i am afraid microb's ui still implements its own file picker (not opensource), and iirc not even shared w/ other system apps...
ran across this in the smoketests for the n810 tonight while testing 20090928 1.9.2 beta4 candidate.
The Chinook SDK does not have a Hildon File Chooser dialog. The Diablo SDK does have a File Chooser.
Hmm, I guess it is in Chinook, just not in my SDK. Looks like I need to install libhildonfm2 to get the header for the File Chooser.
Installed the package like so:

fakeroot apt-get install libhildonfm2-dev

Working on a patch now
Attached patch patch (obsolete) — Splinter Review
This patch adds support for the native Hildon file picker dialog. The Hildon dialog is based on the Gtk dialog, so nearly all of the existing API calls work for Hildon too.

The patch adds the right includes, Hildon specific creation call and response handling.

The Hildon dialog has a fixed set of buttons, but the accept caption can be changed. Since the button is really the GTK_RESPONSE_OK, I needed to add that response to the switch statement.

This patch will require anyone building for Maemo to update their scratchbox:
fakeroot apt-get install libhildonfm2-dev
Assignee: nobody → mark.finkle
Attachment #403791 - Flags: review?(roc)
Comment on attachment 403791 [details] [diff] [review]
patch

Adding Ted for the build parts
Attachment #403791 - Flags: review?(ted.mielczarek)
(In reply to comment #9)
> This patch will require anyone building for Maemo to update their scratchbox:
> fakeroot apt-get install libhildonfm2-dev

Is this already done on the Linux build slaves? If not, file a RelEng bug about it and make it block this one.
Attachment #403791 - Flags: review?(ted.mielczarek) → review+
Depends on: 520562
Assignee: mark.finkle → nobody
Component: Linux/Maemo → Widget: Gtk
Product: Fennec → Core
QA Contact: maemo-linux → gtk
Component: Widget: Gtk → Build Config
QA Contact: gtk → build-config
Assignee: nobody → mark.finkle
Component: Build Config → Widget
QA Contact: build-config → general
pushed to m-c:
http://hg.mozilla.org/mozilla-central/rev/7c0b5c2b3501
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
burned the tree
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This is the same exact patch as before except for a simple 2 line change in configure.in:

was:

+PKG_CHECK_MODULES(LIBHILDONFM,hildon-fm-2)
+AC_SUBST(LIBHILDONFM_CFLAGS)
+AC_SUBST(LIBHILDONFM_LIBS)

now:

+PKG_CHECK_MODULES(LIBHILDONFM,hildon-fm-2,
+                  NS_HILDONFM=1,
+                  NS_HILDONFM)
+AC_SUBST(LIBHILDONFM_CFLAGS)
+AC_SUBST(LIBHILDONFM_LIBS)

This passes on the try servers
Attachment #403791 - Attachment is obsolete: true
Attachment #406161 - Flags: review?(ted.mielczarek)
Attachment #406161 - Flags: review?(ted.mielczarek) → review+
pushed m-c:
http://hg.mozilla.org/mozilla-central/rev/b24cd9a1161b
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Comment on attachment 406161 [details] [diff] [review]
patch 2 (configure.in fix)

Needed for Fennec 1.0
Attachment #406161 - Flags: approval1.9.2?
Comment on attachment 406161 [details] [diff] [review]
patch 2 (configure.in fix)

a192=beltzner
Attachment #406161 - Flags: approval1.9.2? → approval1.9.2+
Depends on: 528004
Depends on: 540544
Target Milestone: --- → mozilla1.9.3a1
tracking-fennec: ? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: