Closed
Bug 909374
Opened 13 years ago
Closed 13 years ago
[Video] Improve view activity saving feature robustness
Categories
(Firefox OS Graveyard :: Gaia::Video, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: johnhu)
References
Details
(Whiteboard: MEDIA_TRIAGED)
Attachments
(1 file)
Bug 895726 showed that we should not trust the incoming filename completely. We will ensure that the extension matches the blob mime type so that saving to a specific device storage will not fail.
| Reporter | ||
Updated•13 years ago
|
blocking-b2g: --- → koi?
Comment 1•13 years ago
|
||
I'd suggest that the best way to fix this is to test the filename for correctness before displaying the Save button. If the filename is invalid, don't allow the user to save. I think this is better than allowing the user to save with a modified filename. This way we don't break, but we don't do something different than what was requested by the invoking app.
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → johu
Updated•13 years ago
|
blocking-b2g: koi? → ---
Whiteboard: MEDIA_TRIAGED
| Assignee | ||
Comment 2•13 years ago
|
||
I think this one should wait for bug 895726 landed before starting. Bug 895726 will add more utils functions which can be reused by this one.
| Assignee | ||
Comment 3•13 years ago
|
||
The patch of bug 895726 can be used in this bug. I make this bug depends on bug 895726
Depends on: 895726
| Assignee | ||
Comment 4•13 years ago
|
||
Add the code to check the consistency between filename and blob.type.
Attachment #799240 -
Flags: review?(dflanagan)
Comment 5•13 years ago
|
||
Comment on attachment 799240 [details]
add the code to check filename and type consistency.
Looks good. Thanks!
Attachment #799240 -
Flags: review?(dflanagan) → review+
| Assignee | ||
Comment 6•13 years ago
|
||
merged to master:
https://github.com/mozilla-b2g/gaia/commit/7f787b8dc9026dba5d9a0a8b33719f5b08ecddca
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•