Closed
Bug 1072781
Opened 7 years ago
Closed 7 years ago
[Window Management] Get screenshot for homescreen app by new getScreenshot API
Categories
(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: alive, Assigned: steveck)
References
Details
Attachments
(1 file)
Now we are always ignoring any getscreenshot request to homescreen because in the past we cannot fetch the transparent background for the mozbrowser iframe. We should try to implement this because :timdream had completed https://bugzilla.mozilla.org/show_bug.cgi?id=878003
Reporter | ||
Comment 1•7 years ago
|
||
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/browser_mixin.js#L101
Reporter | ||
Comment 2•7 years ago
|
||
Lemme know if either of you are interested to take.
Flags: needinfo?(schung)
Flags: needinfo?(evanxd)
Assignee | ||
Comment 3•7 years ago
|
||
I'll take a look first in sprint 6
Flags: needinfo?(schung)
Flags: needinfo?(evanxd)
Assignee | ||
Comment 4•7 years ago
|
||
Hi alive, I simply remove the homescreen checking in app window close handler, since it's the only place that blocks the screenshot for homescreen. Please correct me if any ignorance, thanks.
Attachment #8514122 -
Flags: review?(alive)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → schung
Status: NEW → ASSIGNED
Reporter | ||
Comment 5•7 years ago
|
||
Comment on attachment 8514122 [details] [review] Link to github I am sorry if this not clear enough, but the core part of this issue is we should enable PNG format in getScreen browserAPI here: https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/browser_mixin.js#L94 See https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement.getScreenshot
Attachment #8514122 -
Flags: review?(alive)
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8514122 [details] [review] Link to github Applied mime-type for screenshot creation. I move the checking inside the browser-mixing to handle this in more general way, and hop this could handle screenshot properly.
Attachment #8514122 -
Flags: review?(alive)
Reporter | ||
Comment 7•7 years ago
|
||
Comment on attachment 8514122 [details] [review] Link to github r+ with nits, lemme know you have problems.
Attachment #8514122 -
Flags: review?(alive) → review+
Assignee | ||
Comment 8•7 years ago
|
||
Thanks! In master: 995b6794eb984ca5cd13884acab250dd7f4f11db
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•