Closed Bug 995283 Opened 10 years ago Closed 8 years ago

[Messages][Refactoring] Investigate alternative ways to host attachment inside compose area other than 'iframe'.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: azasypkin, Unassigned)

References

Details

Using iframe to host attachment inside contenteditable compose field works well, but involves a bunch of magic, has bigger memory footprint and makes code more complex than it could be. 

We should think of alternative ways to do this. One of ideas is to draw thumbnail+filename+filesize into a single canvas and use toDataURL instead of iframe.

See bug 889899 for more details on reasons behind iframe.
(In reply to Oleg Zasypkin [:azasypkin] from comment #0)
> 
> We should think of alternative ways to do this. One of ideas is to draw
> thumbnail+filename+filesize into a single canvas and use toDataURL instead
> of iframe.

Or just display the canvas itself ;)
(In reply to Julien Wajsberg [:julienw] from comment #1)
> (In reply to Oleg Zasypkin [:azasypkin] from comment #0)
> > 
> > We should think of alternative ways to do this. One of ideas is to draw
> > thumbnail+filename+filesize into a single canvas and use toDataURL instead
> > of iframe.
> 
> Or just display the canvas itself ;)

Yep, should also work!
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Mass closing of Gaia::SMS bugs. End of an era :(
You need to log in before you can comment on or make changes to this bug.