WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
37412
[Qt] Sandbox resource handling in WebGL
https://bugs.webkit.org/show_bug.cgi?id=37412
Summary
[Qt] Sandbox resource handling in WebGL
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug