-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add initial implementation of the unprefixed fullscreen API #5045
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
Add initial implementation of the unprefixed fullscreen API #5045
Conversation
|
EWS run on previous version of this PR (hash d6439c9) |
d6439c9 to
516f9e2
Compare
|
EWS run on previous version of this PR (hash 516f9e2)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give this is the standard one, I think you should swap things by putting this at the top of the interface, and annotating the non-standard ones as non-standard with the comments we usually add for such things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really a win to be inline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will move to a new cpp file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in its own file as a partial interface mixin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
516f9e2 to
5ccdaad
Compare
|
EWS run on previous version of this PR (hash 5ccdaad) |
5ccdaad to
ac24051
Compare
|
EWS run on previous version of this PR (hash ac24051) |
ac24051 to
0ca47fc
Compare
|
EWS run on previous version of this PR (hash 0ca47fc) |
0ca47fc to
c23ba45
Compare
|
EWS run on previous version of this PR (hash c23ba45) |
c23ba45 to
e3d2cd7
Compare
|
EWS run on previous version of this PR (hash e3d2cd7)
|
e3d2cd7 to
a60ee94
Compare
|
EWS run on previous version of this PR (hash a60ee94)
|
I really do not want to change the behavior of the shipping API in this large patch. I think this carries risk and such large patches for feature A should not change the behavior of feature B. |
@cdumez That's reasonable. Can we move all the new logic into FullscreenManager still and make I do plan to unify the code for both prefixed/unprefixed APIs anyway, so it would be easier if stuff wasn't scattered around. |
Yes, I'll give this a shot. |
8d97023 to
2ed5b29
Compare
|
EWS run on previous version of this PR (hash 2ed5b29)
|
2ed5b29 to
b3d2a3f
Compare
|
EWS run on previous version of this PR (hash b3d2a3f)
|
nt1m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, aside from my two comments (the unrelated header file change, and the regression in the test file).
b3d2a3f to
7632d71
Compare
|
EWS run on current version of this PR (hash 7632d71)
|
|
EWS run on previous version of this PR (hash 7632d71)
|
7632d71 to
3cc5edc
Compare
|
EWS run on current version of this PR (hash 3cc5edc)
|
|
EWS run on previous version of this PR (hash 3cc5edc)
|
3cc5edc to
e5eb020
Compare
|
EWS run on current version of this PR (hash e5eb020)
|
https://bugs.webkit.org/show_bug.cgi?id=246103 Reviewed by Tim Nguyen. Add initial implementation of the unprefixed fullscreen API: - https://fullscreen.spec.whatwg.org/#api The feature is behind an experimental feature flag, off by default. This is needed to unblock the WPT testing of the screen orientation API since screen orientation locking requires being in fullscreen. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/html/capability-delegation/delegate-fullscreen-request-popup-same-origin.https.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/capability-delegation/delegate-fullscreen-request-subframe-same-origin.https.tentative-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/active-lock-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/event-before-promise-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-basic-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-sandboxed-iframe-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-unlock-check-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-subframe-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt: * Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml: * Source/WebCore/dom/Element+Fullscreen.idl: * Source/WebCore/dom/Element.cpp: (WebCore::Element::requestFullscreen): * Source/WebCore/dom/Element.h: * Source/WebCore/dom/EventNames.h: * Source/WebCore/dom/FullscreenManager.cpp: (WebCore::FullscreenManager::dispatchFullscreenChangeEvents): * Source/WebCore/html/HTMLAttributeNames.in: Canonical link: https://commits.webkit.org/255317@main
e5eb020 to
6331c0f
Compare
|
Committed 255317@main (6331c0f): https://commits.webkit.org/255317@main Reviewed commits have been landed. Closing PR #5045 and removing active labels. |
🧪 style
6331c0f
e5eb020
🛠 🧪 win🧪 mac-wk1🧪 mac-AS-debug-wk2