Closed
Bug 1009780
Opened 11 years ago
Closed 11 years ago
Improve download opening mechanism
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:1.4+, 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.
Updated•11 years ago
|
Whiteboard: [systemsfe]
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → 2.0 S3 (6june)
Assignee | ||
Comment 1•11 years ago
|
||
: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)
Assignee | ||
Updated•11 years ago
|
Attachment #8436050 -
Flags: review?(bdahl) → review?(ydelendik)
Comment 2•11 years ago
|
||
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 3•11 years ago
|
||
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+
Assignee | ||
Comment 4•11 years ago
|
||
Commit (master): https://github.com/mozilla-b2g/gaia/commit/3553e4fed932419b957e083fdda441358e4eb834
Fixed!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe] → [systemsfe][p=1]
Comment 5•11 years ago
|
||
Aus - Do we need to make the pdfjs changes seen in this commit also in https://github.com/mozilla/pdf.js/?
Flags: needinfo?(aus)
Assignee | ||
Comment 6•11 years ago
|
||
(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 7•11 years ago
|
||
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)
Updated•11 years ago
|
Attachment #8436050 -
Flags: approval-gaia-v1.4?(wchang) → approval-gaia-v1.4?(praghunath)
Comment 8•11 years ago
|
||
(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?
Comment 9•11 years ago
|
||
[String changes made]: N/A
No string change is made. Sorry about missing it. :)
Comment 11•11 years ago
|
||
[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?
Comment 12•11 years ago
|
||
Thank you Evelyn.
per comment 11 and bug 1046531 - a feature is broken on 1.4.
blocking-b2g: 1.4? → 1.4+
Updated•11 years ago
|
Attachment #8436050 -
Flags: approval-gaia-v1.4?(praghunath)
Comment 13•11 years ago
|
||
status-b2g-v1.4:
--- → fixed
status-b2g-v2.0:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•