Closed
Bug 995283
Opened 11 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)
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.
Comment 1•11 years ago
|
||
(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 ;)
Reporter | ||
Comment 2•11 years ago
|
||
(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!
Reporter | ||
Comment 3•11 years ago
|
||
One more approach that we probably can try: https://developer.mozilla.org/en-US/docs/HTML/Canvas/Drawing_DOM_objects_into_a_canvas
Comment 4•8 years ago
|
||
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Comment 5•8 years ago
|
||
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.
Description
•