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)

x86_64
Linux
defect
Not set
normal

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.
blocking-b2g: --- → koi?
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: nobody → johu
blocking-b2g: koi? → ---
Whiteboard: MEDIA_TRIAGED
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.
The patch of bug 895726 can be used in this bug. I make this bug depends on bug 895726
Depends on: 895726
Add the code to check the consistency between filename and blob.type.
Attachment #799240 - Flags: review?(dflanagan)
Comment on attachment 799240 [details] add the code to check filename and type consistency. Looks good. Thanks!
Attachment #799240 - Flags: review?(dflanagan) → review+
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.

Attachment

General

Created:
Updated:
Size: