<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37412</bug_id>
          
          <creation_ts>2010-04-11 08:14:13 -0700</creation_ts>
          <short_desc>[Qt] Sandbox resource handling in WebGL</short_desc>
          <delta_ts>2011-03-21 02:03:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jarkko Sakkinen">jarkko.j.sakkinen</reporter>
          <assigned_to name="Jarkko Sakkinen">jarkko.j.sakkinen</assigned_to>
          <cc>jesus</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>211361</commentid>
    <comment_count>0</comment_count>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-04-11 08:14:13 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>211362</commentid>
    <comment_count>1</comment_count>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-04-11 08:15:06 -0700</bug_when>
    <thetext>I&apos;m working on a patch for this. It is trivial to solve but requires some work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220982</commentid>
    <comment_count>2</comment_count>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-05-05 00:18:01 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370317</commentid>
    <comment_count>3</comment_count>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2011-03-21 02:03:29 -0700</bug_when>
    <thetext>WebGL resource management is handled in canvas code.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>