[whatwg] Fullscreen feedback

Adam Barth w3c at adambarth.com
Sun Aug 22 20:46:19 PDT 2010


On Sun, Aug 22, 2010 at 8:00 PM, Robert O'Callahan <robert at ocallahan.org> wrote:
> On Sun, Aug 22, 2010 at 4:12 AM, Adam Barth <w3c at adambarth.com> wrote:
>> On Sat, Aug 21, 2010 at 2:00 AM, Robert O'Callahan <robert at ocallahan.org>
>> wrote:
>> > On Sat, Aug 21, 2010 at 5:21 PM, Adam Barth <w3c at adambarth.com> wrote:
>> >> How is going fullscreen different from opening a popup window?
>> >
>> > That depends on how the UA chooses to handle it. But this proposed
>> > fullscreen API is based on the idea that the fullscreen content "takes
>> > over"
>> > the toplevel browsing context to which it belongs. (The content is
>> > styled to
>> > fill the IFRAME, and the IFRAME element is styled to fill the parent
>> > document's viewport.)
>>
>> That does seem dangerous if the location bar still displays the URL of
>> the top-level browsing context because it violates the constraint
>> principle of display delegation.
>
> That's why I want to default to prohibiting subframe content from going
> fullscreen.

Yeah, I agree that we'd need something like that in this model.  It's
unfortunate though.  Won't folks package <video> widgets using
iframes?  I guess they'll need to include this silly attribute in
their "copy-and-paste this markup" code in order for full screen to
work.

>> This doesn't seem like a good model for full-screen.  I would think
>> the model of re-parenting the content to a popup window that fills the
>> entire screen would be a better model.
>
> I think that model is a lot harder to spec and a lot harder for Web authors
> to understand. I'd certainly be interested in looking at a proposal if
> someone wants to pursue that approach.

There's been some work in WebKit around the concept of a "magic
iframe" that keeps it's environment intact even when it's adopted from
one document to another.  I'm not sure how much of that has been
discussed for standardization, but you could imagine a model like that
working where a frame is adopted into a "popup" window that fills the
screen.

Adam



More information about the whatwg mailing list