Bug 37412

Summary: [Qt] Sandbox resource handling in WebGL
Product: WebKit Reporter: Jarkko Sakkinen <jarkko.j.sakkinen>
Component: WebKit QtAssignee: Jarkko Sakkinen <jarkko.j.sakkinen>
Status: RESOLVED WONTFIX    
Severity: Enhancement CC: jesus
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Jarkko Sakkinen
Reported 2010-04-11 08:14:13 PDT
WebGL context contains following resources: - buffers - framebuffers - programs - shaders - renderbuffers - textures In create methods GraphicsContext3D should return virtual resource handle instead of real resource handle for these because of the following reasons: * Unshared WebGL context: framebuffer is visible from Javascript unless resources are sandboxed. * Shared WebGL context: framebuffer and webview GL context resources are visible from JavaScript unless resources are sandboxed. * Some Web pages might fail since they might assume resource IDs starting from zero. Allocate and proxy virtual handles and map them to real resource handles instead in order to resolve this situation.
Attachments
Jarkko Sakkinen
Comment 1 2010-04-11 08:15:06 PDT
I'm working on a patch for this. It is trivial to solve but requires some work.
Jarkko Sakkinen
Comment 2 2010-05-05 00:18:01 PDT
I think this is something that should be handled higher level than GraphicsContext3D implementation. Have to check if this already addressed in higher level WebGL code.
Jarkko Sakkinen
Comment 3 2011-03-21 02:03:29 PDT
WebGL resource management is handled in canvas code.
Note You need to log in before you can comment on or make changes to this bug.