[webkit-changes] [WebKit/WebKit] 6331c0: Add initial implementation of the unprefixed fulls...

Chris Dumez noreply at github.com
Sat Oct 8 15:37:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6331c0ff7a9324e34aac07a9745b7f0848ea1cc5
      https://github.com/WebKit/WebKit/commit/6331c0ff7a9324e34aac07a9745b7f0848ea1cc5
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-10-08 (Sat, 08 Oct 2022)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/imported/w3c/web-platform-tests/dom/idlharness.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/feature-policy/reporting/fullscreen-reporting-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/document-exit-fullscreen-active-document-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/document-exit-fullscreen-nested-shadow-dom-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-active-document-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-cross-origin.sub-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/document-onfullscreenerror-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/element-request-fullscreen-active-document-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/element-request-fullscreen-dialog-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/element-request-fullscreen-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/element-request-fullscreen-not-allowed-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/element-request-fullscreen-options-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/api/promises-reject-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/idlharness.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-css-invalidation-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/fullscreen/rendering/fullscreen-css-transition-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/capability-delegation/delegate-fullscreen-request-popup-same-origin.https.tentative-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/capability-delegation/delegate-fullscreen-request-subframe-same-origin.https.tentative-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-allow-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-allowfullscreen-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/user-activation/activation-trigger-pointerevent-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/active-lock-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/event-before-promise-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-basic-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-sandboxed-iframe-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/lock-unlock-check-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/onchange-event-subframe-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-cross-origin.sub-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-removing-allowfullscreen.sub-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-setting-allowfullscreen-timing.sub-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/fullscreen/api/document-fullscreen-enabled-setting-allowfullscreen.sub-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/capability-delegation/delegate-fullscreen-request-popup-cross-origin.https.sub.tentative-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/capability-delegation/delegate-fullscreen-request-subframe-cross-origin.https.sub.tentative-expected.txt
    A LayoutTests/platform/ios/imported/w3c/web-platform-tests/screen-orientation/lock-sandboxed-iframe-expected.txt
    M LayoutTests/platform/ios/imported/w3c/web-platform-tests/screen-orientation/orientation-reading-expected.txt
    M LayoutTests/platform/mac-wk1/TestExpectations
    M LayoutTests/platform/win/TestExpectations
    M Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml
    M Source/WebCore/CMakeLists.txt
    M Source/WebCore/DerivedSources-input.xcfilelist
    M Source/WebCore/DerivedSources-output.xcfilelist
    M Source/WebCore/DerivedSources.make
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/bindings/js/WorkerScriptFetcher.h
    M Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
    M Source/WebCore/dom/Document+Fullscreen.idl
    A Source/WebCore/dom/DocumentFullscreen.cpp
    M Source/WebCore/dom/DocumentFullscreen.h
    A Source/WebCore/dom/DocumentOrShadowRoot+Fullscreen.idl
    A Source/WebCore/dom/DocumentOrShadowRootFullscreen.cpp
    A Source/WebCore/dom/DocumentOrShadowRootFullscreen.h
    M Source/WebCore/dom/Element+Fullscreen.idl
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/Element.h
    M Source/WebCore/dom/EventNames.h
    M Source/WebCore/dom/FullscreenManager.cpp
    M Source/WebCore/dom/FullscreenManager.h
    A Source/WebCore/dom/FullscreenOptions.h
    A Source/WebCore/dom/FullscreenOptions.idl
    M Source/WebCore/dom/LoadableClassicScript.cpp
    M Source/WebCore/dom/LoadableClassicScript.h
    M Source/WebCore/dom/LoadableModuleScript.h
    M Source/WebCore/dom/LoadableScript.h
    A Source/WebCore/dom/LoadableScriptError.h
    M Source/WebCore/html/HTMLAttributeNames.in
    M Source/WebCore/html/HTMLMediaElement.cpp
    M Source/WebCore/html/HTMLVideoElement.cpp
    M Source/WebCore/html/HTMLVideoElement.h
    M Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
    M Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp

  Log Message:
  -----------
  Add initial implementation of the unprefixed fullscreen API
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




More information about the webkit-changes mailing list