-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The fullscreen enabled flag is not set for the initial about:blank document in an iframe? #1385
Comments
We should probably check when allowfullscreen was added if there was a reason, but it looks like it should have been added to the #implement-the-sandboxing algorithm rather than inline. |
It looks like #implement-the-sandboxing used to be part of initialising a new document 8359fee. |
Looks like an oversight in 52a28a2? Though in general having multiple places to initialize a document and all that comes with it is a very brittle setup... |
Are those the only two places we create and initialize documents? I'm happy to work on this. |
Firefox changes to the spec behavior in bug 1270648, which breaks actual web content like bug 1279613. |
@upsuper does the PR address that issue? It seems like it does, but I'm not a 100% sure. |
I'm not quite familiar with this, but I'll try to understand what is changed there. I suppose sandbox is also affected, so it's not something fullscreen-specific. cc @bzbarsky |
@upsuper The current text of the spec is clearly wrong. We should be setting the fullscreen enabled flag as needed for initial about:blank, just like for every other document. |
@annevk It seems to me your change works. I'm a bit concerned about the naming "implement the sandboxing", though. |
I see, we can probably rename that. Having said that, I suspect that eventually we'll merge both call sites of that algorithm at which point we can just inline it and the name will be gone. Having two different places to set up the global environment in the standard is clearly broken and has led to many subtle bugs. |
@aliams FYI |
https://html.spec.whatwg.org/#initialise-the-document-object
Here the bits about fulscreen come after the "Implement the sandboxing" call.
https://html.spec.whatwg.org/#creating-a-new-browsing-context
Here there's nothing about fullscreen.
Am I missing something, or does this mean that for the initial about:blank document, the flag can never be set? Here's a test that in Gecko allows the iframe to go fullscreen. (It does in Chromium as well, but that's because of https://bugs.chromium.org/p/chromium/issues/detail?id=403730)
@annevk @upsuper @jernoble (can't find GitHub account of Ali Alabbas)
The text was updated successfully, but these errors were encountered: