Skip to content
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

Test snapshotting of allowfullscreen attribute #4354

Merged
merged 5 commits into from May 6, 2021

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Dec 16, 2016

Test for whatwg/html#2187

Edit: this ought to follow whatwg/html#3287 but I don't know right now (2020-01-27) whether it does.

@zcorpan zcorpan requested a review from foolip December 16, 2016 14:16
@wpt-pr-bot
Copy link
Collaborator

Notifying @aliams, @foolip, @jernoble, and @upsuper. (Learn how reviewing works.)

@wpt-stability-bot

This comment has been minimized.

@wpt-stability-bot

This comment has been minimized.

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be testing what it intends to. Can you see who passes and fails?


let i = 0;

iframe.src = "http://{{domains[www1]}}:{{ports[http][0]}}/fullscreen/api/echo-fullscreenEnabled.html";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recognize this syntax, is this using a wptserve feature, to make it a cross-origin iframe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@zcorpan
Copy link
Member Author

zcorpan commented Dec 16, 2016

Gecko and Edge 13 fail because of live behavior.

Chromium and WebKit have prefixed names. Testing with webkitFullscreenEnabled instead they still fail because of live behavior.

@zcorpan
Copy link
Member Author

zcorpan commented Dec 16, 2016

Should also test the timing of when it's snapshotted; at document creation time vs completed response headers.

@foolip
Copy link
Member

foolip commented Oct 28, 2019

@zcorpan can you rebase to trigger new CI runs?

@zcorpan
Copy link
Member Author

zcorpan commented Oct 30, 2019

Rebased.

@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the zcorpan/allowed-to-use-snapshot branch January 24, 2020 18:08
@gsnedders gsnedders restored the zcorpan/allowed-to-use-snapshot branch January 24, 2020 18:48
@Hexcles Hexcles reopened this Jan 24, 2020
@zcorpan zcorpan requested a review from clelland January 27, 2020 14:20
@zcorpan zcorpan removed their assignment Jan 27, 2020
@zcorpan zcorpan force-pushed the zcorpan/allowed-to-use-snapshot branch from 55e4b85 to fc6c02d Compare January 27, 2020 14:24
@zcorpan zcorpan removed their assignment Jan 27, 2020
@zcorpan
Copy link
Member Author

zcorpan commented Jan 27, 2020

I rebased again to rerun CI checks.

@gsnedders
Copy link
Member

@zcorpan

ERROR:lint:fullscreen/api/document-fullscreen-enabled-setting-allowfullscreen-timing.sub.html:26: setTimeout used (SET TIMEOUT)

@zcorpan
Copy link
Member Author

zcorpan commented Nov 13, 2020

Lint error was fixed, but CI still failed. The logs were no longer available. Rebasing again.

whatwg/html#3287 replaced whatwg/html#2187 . @clelland , do these tests match what the spec now requires?

@foolip foolip force-pushed the zcorpan/allowed-to-use-snapshot branch from 14a654d to 347c7a9 Compare May 6, 2021 08:28
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<title>Document#fullscreenEnabled setting allowfullscreen after document creation, before response</title>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and evil test, I like it!

@foolip
Copy link
Member

foolip commented May 6, 2021

The spec for this ended up as https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use. The warning there summarizes it well:

Because they only influence the permissions policy of the nested browsing context's active document, the allow and allowfullscreen attributes only take effect when the nested browsing context of the iframe is navigated. Adding or removing them has no effect on an already-loaded document.

@foolip foolip merged commit 7f6dfe9 into master May 6, 2021
@foolip foolip deleted the zcorpan/allowed-to-use-snapshot branch May 6, 2021 08:46
@zcorpan
Copy link
Member Author

zcorpan commented May 6, 2021

Thanks @foolip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants