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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

References

Details

Attachments

(1 file)

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 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+
Component: Gaia::System → Gaia::System::Window Mgmt
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: