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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>18647</bug_id>
          
          <creation_ts>2012-08-21 20:19:19 +0000</creation_ts>
          <short_desc>Add sandboxed pointer lock flag to HTML Sandboxing</short_desc>
          <delta_ts>2013-01-04 17:56:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Pointer Lock</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19752</blocked>
    
    <blocked>19773</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>scheib</reporter>
          <assigned_to>scheib</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72509</commentid>
    <comment_count>0</comment_count>
    <who name="">scheib</who>
    <bug_when>2012-08-21 20:19:19 +0000</bug_when>
    <thetext>Pointer Lock API [1] adds capability that should be restricted by a sandbox flag unless an iframe is marked explicitly with sandbox=&quot;allow-pointer-lock&quot;

Rough edit suggestion to HTML:
http://dev.w3.org/html5/spec/origin-0.html#sandboxing

Add a section for The sandboxed pointer lock flag
+ &quot;The sandboxed pointer lock flag
+  This flag prevents content from using the Pointer Lock API&quot;
   with link to http://www.w3.org/TR/pointerlock/

Add a new flag parsing item:
After the text: &quot;When the user agent is to parse a sandboxing directive ...&quot;
Add
+ &quot;The sandboxed pointer lock flag, unless tokens contains the allow-pointer-lock keyword&quot;


[1] http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77114</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-25 18:10:19 +0000</bug_when>
    <thetext>Ok, I have added &quot;allow-pointer-lock&quot; to the HTML spec.

In the Pointer Lock spec, add the following clause somewhere:

   If [the Document object]&apos;s _active sandboxing flag set_ has the _sandboxed 
   pointer lock browsing context flag_, then [the user agent must not lock the
   pointer].

...where

   &quot;the Document object&quot; should be expanded to a reference to the Document object 
   for which pointer lock is being enabled, whatever that is.

   &quot;active sandboxing flag set&quot; and &quot;sandboxed pointer lock browsing context flag&quot; 
   are terms now defined in the HTML spec.

   &quot;the user agent must not lock the pointer&quot; is whatever conformance requirement 
   you need to add to your spec to make it not lock the pointer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77115</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-10-25 18:10:58 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7485.
Check-in comment: Add sandbox=allow-pointer-lock, and some nearby cleanup.
http://html5.org/tools/web-apps-tracker?from=7484&amp;to=7485</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>