Closed
Bug 1198503
Opened 10 years ago
Closed 7 years ago
Can't take screenshot unless iframe was ever displayed or fully loaded
Categories
(Firefox OS Graveyard :: Runtime, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: irakli, Unassigned)
References
Details
Now that we have session restore back on I was trying to figure out why we don't get thumbnails when you refresh. It looks like .getScreenshot() call remains forever pending if iframe always had display: none. Note that if iframe was displaying event once this issue no longer occurs.
I came to above conclusion by doing following reloading browser.html that already had some pages open with tabs tiles generated out of screenshots. After reload I connected with wedIDE & used console to try to .getScreenshot() note that calls to setVisible and setActive had no effect on the outcome. Finally after removing hidden attribute and then putting it back .getScreenshot() did succeed.
See: https://github.com/mozilla/browser.html/issues/266
Reporter | ||
Updated•10 years ago
|
Summary: Can't take screenshot unless iframe was ever displayed → Can't take screenshot unless iframe was ever displayed or fully loaded
Reporter | ||
Comment 1•10 years ago
|
||
In browser.html we end up creating bunch of workarounds to resolve this issue like making iframes hidden with pointer events none until we get a screenshot and only then making it `display:none`.
Inability to take screenshot right away is also very limiting as we would like to perform some page sliding animations when navigating back / forward for which we would like to take screenshot whatever is on the screen right now (regardless if it is fully loaded or not) so we could use that screenshot to slide it out.
Reporter | ||
Comment 2•10 years ago
|
||
Comment 3•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•