[whatwg] allowfullscreen vs sandbox="allow-fullscreen", and mimicking for pointer lock
w3c at adambarth.com
Tue Jul 31 15:33:50 PDT 2012
It's not clear to me from the spec how the allowfullscreen attribute
works. It appears to be mentioned only in the security and privacy
considerations section. For example, suppose I have three frames:
Main frame: a.html
-> <iframe src="b.html">
-> <iframe src="c.html" allowfullscreen>
Can c.html go full screen? Where is that specified?
On Tue, Jul 31, 2012 at 3:26 PM, Adam Barth <w3c at adambarth.com> wrote:
> It looks like the ability to go full screen is off-by-default and then
> enabled via the attribute. If we used iframe at sandbox, the ability
> would be on-by-default for non-sandboxed iframes.
> On Tue, Jul 31, 2012 at 3:11 PM, Vincent Scheib <scheib at google.com> wrote:
>> [correcting Anne van Kesteren's email]
>> On Tue, Jul 31, 2012 at 3:03 PM, Vincent Scheib <scheib at google.com> wrote:
>>> I'm currently implementing Pointer Lock  in WebKit, which was adjusted
>>> recently to mimic Fullscreen .
>>> Why does the Fullscreen specification use an iframe attribute
>>> allowfullscreen to permit/restrict iframe capabilities instead of using
>>> iframe sandbox="allow-fullscreen"?
>>>  http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html
>>>  http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
More information about the whatwg