Closed Bug 1009553 Opened 12 years ago Closed 12 years ago

Canvas webglcontextrestored event is raised when application is in background mode.

Categories

(Core :: Graphics: CanvasWebGL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 998916

People

(Reporter: jujjyl, Unassigned)

Details

(Whiteboard: [games])

Attachments

(1 file)

Attached file contextlosstestapp.zip —
While developing webgl context loss/resume handling on a packaged app to FFOS, I am seeing odd behavior with the related events: 1. Run a WebGL-based packaged application that listens to webgl context loss and restore events. 2. Push the home button to put the application to background and resume to home screen. 3. Wait for a moment. Observed: After receiving the webglcontextlost event, the application will also receive the webglcontextrestored event, even though it is in the background and not the active/visible application. Expected: The webglcontextrestored event should be received only when the user application is put to foreground again, since it is not rendering anything and does not need a WebGL context while in the background. See an attached test application for experimenting with the behavior.
Whiteboard: [games]
Tested on the T2 Mobile FFOS reference phone with B2G 1.4.0.0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Blocks: 1014011
No longer blocks: 1014011
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: