Closed Bug 1009780 Opened 11 years ago Closed 11 years ago

Improve download opening mechanism

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)

RESOLVED FIXED
2.0 S3 (6june)
blocking-b2g 1.4+
Tracking Status
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: fabrice, Assigned: aus)

References

Details

(Whiteboard: [systemsfe][p=1])

Attachments

(1 file)

The download manager currently uses the mimeMapper helper to decides if a downloaded file can be opened. That prevents us to use 3rd party apps that would provide support for new mime types to work. Instead, we should just trigger an activity with the mime type and the blob. Among the core apps, pdf.js needs to be updated to also deal with blobs and not only uris. Once this is done we'll remove the gecko side registration of activities as content handlers.
Blocks: 1009781
Whiteboard: [systemsfe]
Blocks: 1017306
Status: NEW → ASSIGNED
Target Milestone: --- → 2.0 S3 (6june)
:crdlc, could you look at the DownloadHelper changes? :bdahl, could you look at the PDFJS viewer.js changes? I'm running into a crash on my Flame using this PDF (http://fzs.sve-mo.ba/sites/default/files/dokumenti-vijesti/sample.pdf) although, viewing *any* PDF on the Flame seems to crash.
Attachment #8436050 - Flags: review?(crdlc)
Attachment #8436050 - Flags: review?(bdahl)
Attachment #8436050 - Flags: review?(bdahl) → review?(ydelendik)
Comment on attachment 8436050 [details] [review] Pull Request - Improve 'open' mechnism for downloads apps/pdfjs/content/web/viewer.js looks good
Attachment #8436050 - Flags: review?(ydelendik) → review+
Comment on attachment 8436050 [details] [review] Pull Request - Improve 'open' mechnism for downloads Some minor nits, but LGTM r+, 10x
Attachment #8436050 - Flags: review?(crdlc) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe] → [systemsfe][p=1]
Aus - Do we need to make the pdfjs changes seen in this commit also in https://github.com/mozilla/pdf.js/?
Flags: needinfo?(aus)
(In reply to Jason Smith [:jsmith] from comment #5) > Aus - Do we need to make the pdfjs changes seen in this commit also in > https://github.com/mozilla/pdf.js/? Yes, the change will also be uplifted to the main pdf.js repository.
Flags: needinfo?(aus)
Comment on attachment 8436050 [details] [review] Pull Request - Improve 'open' mechnism for downloads NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] [Bug caused by] (feature/regressing bug #):Bug 1046531 - [Dolphin][v1.4] Cannot open PDF file [User impact] if declined: Extra works for supporting downloaded items with various file extensions. [Testing completed]:https://tbpl.mozilla.org/?rev=ace8d73b222fdf924a19e78f9a39b60ab03b6010&tree=Gaia-Try [Risk to taking this patch] (and alternatives if risky): None [String changes made]:
Attachment #8436050 - Flags: approval-gaia-v1.4?(wchang)
See Also: → 1046531
Attachment #8436050 - Flags: approval-gaia-v1.4?(wchang) → approval-gaia-v1.4?(praghunath)
(In reply to Yi-Fan Liao [:yifan][:yliao] from comment #7) > Comment on attachment 8436050 [details] [review] > Pull Request - Improve 'open' mechnism for downloads > > NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to > better understand the B2G approval process and landings. > > [Approval Request Comment] > [Bug caused by] (feature/regressing bug #):Bug 1046531 - [Dolphin][v1.4] > Cannot open PDF file > [User impact] if declined: Extra works for supporting downloaded items with > various file extensions. > [Testing > completed]:https://tbpl.mozilla.org/ > ?rev=ace8d73b222fdf924a19e78f9a39b60ab03b6010&tree=Gaia-Try > [Risk to taking this patch] (and alternatives if risky): None > [String changes made]: What about making any string changes?
[String changes made]: N/A No string change is made. Sorry about missing it. :)
[Blocking Requested - why for this release]: Given bug 1046531 is 1.4+, could we make it a blocker so we won't lose tracking?
blocking-b2g: --- → 1.4?
Thank you Evelyn. per comment 11 and bug 1046531 - a feature is broken on 1.4.
blocking-b2g: 1.4? → 1.4+
Attachment #8436050 - Flags: approval-gaia-v1.4?(praghunath)
Depends on: 1054643
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: