Closed
Bug 941024
Opened 12 years ago
Closed 12 years ago
Add a timeout to ensureFullRepaint since screenshoots can take forever
Categories
(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)
Firefox OS Graveyard
Gaia::System::Window Mgmt
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(1 file)
|
1.92 KB,
patch
|
alive
:
review+
|
Details | Diff | Splinter Review |
Alive,
you were right that we need a timeout for screenshoots in bug 926535 since i can see that they sometimes takes forever to arrive and it makes the UI feels unresponsive and unreliable.
Attachment #8335320 -
Flags: review?(alive)
Comment 1•12 years ago
|
||
Comment on attachment 8335320 [details] [diff] [review]
full.repaint.timeout.patch
Review of attachment 8335320 [details] [diff] [review]:
-----------------------------------------------------------------
I like you do what I said.
::: apps/system/js/window.js
@@ +341,2 @@
> var request = iframe.getScreenshot(1, 1);
> request.onsuccess = request.onerror = function onRepainted() {
You should have a flag here to know if the callback is already called in your timer. Otherwise callback would be called twice. See
https://github.com/alivedise/gaia/blob/bugzilla/907013_master_rebasing/app_window_manager_v3/apps/system/js/window.js#L1000
Attachment #8335320 -
Flags: review?(alive) → review+
Updated•12 years ago
|
Component: Gaia::System → Gaia::System::Window Mgmt
| Assignee | ||
Comment 2•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Assignee: nobody → 21
You need to log in
before you can comment on or make changes to this bug.
Description
•