[webkit-changes] [WebKit/WebKit] dccf27: Add initial stubs for the Navigation API

Patrick noreply at github.com
Mon Oct 30 06:11:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dccf27374c28f944ac520ac39178abe6d1183636
      https://github.com/WebKit/WebKit/commit/dccf27374c28f944ac520ac39178abe6d1183636
  Author: Patrick Griffis <pgriffis at igalia.com>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M LayoutTests/fast/dom/navigation-type-back-forward-expected.txt
    M LayoutTests/fast/dom/navigation-type-navigate-expected.txt
    M LayoutTests/fast/dom/navigation-type-reload-expected.txt
    M LayoutTests/fast/dom/resources/navigation-type-matches-querystring.html
    M LayoutTests/fast/dom/webtiming-expected.txt
    M LayoutTests/fast/dom/webtiming.html
    M LayoutTests/http/tests/misc/resources/webtiming-cross-origin-and-back2.html
    M LayoutTests/http/tests/misc/resources/webtiming-cross-origin-redirect.html
    M LayoutTests/http/tests/misc/resources/webtiming-one-redirect.html
    M LayoutTests/http/tests/misc/resources/webtiming-two-redirects.html
    M LayoutTests/http/tests/misc/webtiming-cross-origin-and-back1-expected.txt
    M LayoutTests/http/tests/misc/webtiming-cross-origin-redirect-expected.txt
    M LayoutTests/http/tests/misc/webtiming-no-origin-expected.txt
    M LayoutTests/http/tests/misc/webtiming-no-origin.html
    M LayoutTests/http/tests/misc/webtiming-one-redirect-expected.txt
    M LayoutTests/http/tests/misc/webtiming-two-redirects-expected.txt
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.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/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/bindings/js/WebCoreBuiltinNames.h
    M Source/WebCore/dom/EventNames.h
    M Source/WebCore/dom/EventNames.in
    M Source/WebCore/dom/EventTargetFactory.in
    M Source/WebCore/page/LocalDOMWindow.cpp
    M Source/WebCore/page/LocalDOMWindow.h
    M Source/WebCore/page/LocalDOMWindow.idl
    A Source/WebCore/page/NavigateEvent.cpp
    A Source/WebCore/page/NavigateEvent.h
    A Source/WebCore/page/NavigateEvent.idl
    A Source/WebCore/page/Navigation.cpp
    A Source/WebCore/page/Navigation.h
    A Source/WebCore/page/Navigation.idl
    A Source/WebCore/page/NavigationCurrentEntryChangeEvent.cpp
    A Source/WebCore/page/NavigationCurrentEntryChangeEvent.h
    A Source/WebCore/page/NavigationCurrentEntryChangeEvent.idl
    A Source/WebCore/page/NavigationDestination.cpp
    A Source/WebCore/page/NavigationDestination.h
    A Source/WebCore/page/NavigationDestination.idl
    A Source/WebCore/page/NavigationHistoryEntry.cpp
    A Source/WebCore/page/NavigationHistoryEntry.h
    A Source/WebCore/page/NavigationHistoryEntry.idl
    A Source/WebCore/page/NavigationInterceptHandler.h
    A Source/WebCore/page/NavigationInterceptHandler.idl
    A Source/WebCore/page/NavigationNavigationType.h
    A Source/WebCore/page/NavigationNavigationType.idl
    A Source/WebCore/page/NavigationTransition.cpp
    A Source/WebCore/page/NavigationTransition.h
    A Source/WebCore/page/NavigationTransition.idl
    M Source/WebCore/page/Navigator.cpp

  Log Message:
  -----------
  Add initial stubs for the Navigation API
https://bugs.webkit.org/show_bug.cgi?id=262906

Reviewed by Alex Christensen.

This patch adds a runtime feature flag for and the initial bindings
for the Navigation API. It does not implement any logic.

Spec: https://html.spec.whatwg.org/#navigation-api

* LayoutTests/fast/dom/navigation-type-back-forward-expected.txt:
* LayoutTests/fast/dom/navigation-type-navigate-expected.txt:
* LayoutTests/fast/dom/navigation-type-reload-expected.txt:
* LayoutTests/fast/dom/resources/navigation-type-matches-querystring.html:
* LayoutTests/fast/dom/webtiming-expected.txt:
* LayoutTests/fast/dom/webtiming.html:
* LayoutTests/http/tests/misc/resources/webtiming-cross-origin-and-back2.html:
* LayoutTests/http/tests/misc/resources/webtiming-cross-origin-redirect.html:
* LayoutTests/http/tests/misc/resources/webtiming-one-redirect.html:
* LayoutTests/http/tests/misc/resources/webtiming-two-redirects.html:
* LayoutTests/http/tests/misc/webtiming-cross-origin-and-back1-expected.txt:
* LayoutTests/http/tests/misc/webtiming-cross-origin-redirect-expected.txt:
* LayoutTests/http/tests/misc/webtiming-no-origin-expected.txt:
* LayoutTests/http/tests/misc/webtiming-no-origin.html:
* LayoutTests/http/tests/misc/webtiming-one-redirect-expected.txt:
* LayoutTests/http/tests/misc/webtiming-two-redirects-expected.txt:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/WebCoreBuiltinNames.h:
* Source/WebCore/dom/EventNames.h:
* Source/WebCore/dom/EventNames.in:
* Source/WebCore/dom/EventTargetFactory.in:
* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::navigation):
* Source/WebCore/page/LocalDOMWindow.h:
* Source/WebCore/page/LocalDOMWindow.idl:
* Source/WebCore/page/NavigateEvent.cpp: Added.
(WebCore::NavigateEvent::NavigateEvent):
(WebCore::NavigateEvent::create):
(WebCore::NavigateEvent::intercept):
(WebCore::NavigateEvent::scroll):
(WebCore::NavigateEvent::eventInterface const):
* Source/WebCore/page/NavigateEvent.h: Added.
* Source/WebCore/page/NavigateEvent.idl: Added.
* Source/WebCore/page/Navigation.cpp: Added.
(WebCore::Navigation::Navigation):
(WebCore::createNewResult):
(WebCore::Navigation::scriptExecutionContext const):
(WebCore::Navigation::eventTargetInterface const):
(WebCore::Navigation::navigate):
(WebCore::Navigation::reload):
(WebCore::Navigation::traverseTo):
(WebCore::Navigation::back):
(WebCore::Navigation::forward):
(WebCore::Navigation::updateCurrentEntry):
* Source/WebCore/page/Navigation.h: Added.
* Source/WebCore/page/Navigation.idl: Added.
* Source/WebCore/page/NavigationCurrentEntryChangeEvent.cpp: Added.
(WebCore::NavigationCurrentEntryChangeEvent::NavigationCurrentEntryChangeEvent):
(WebCore::NavigationCurrentEntryChangeEvent::create):
(WebCore::NavigationCurrentEntryChangeEvent::eventInterface const):
* Source/WebCore/page/NavigationCurrentEntryChangeEvent.h: Added.
* Source/WebCore/page/NavigationCurrentEntryChangeEvent.idl: Added.
* Source/WebCore/page/NavigationDestination.cpp: Added.
* Source/WebCore/page/NavigationDestination.h: Added.
* Source/WebCore/page/NavigationDestination.idl: Added.
* Source/WebCore/page/NavigationHistoryEntry.cpp: Added.
(WebCore::NavigationHistoryEntry::NavigationHistoryEntry):
(WebCore::NavigationHistoryEntry::scriptExecutionContext const):
(WebCore::NavigationHistoryEntry::eventTargetInterface const):
* Source/WebCore/page/NavigationHistoryEntry.h: Added.
* Source/WebCore/page/NavigationHistoryEntry.idl: Added.
* Source/WebCore/page/NavigationInterceptHandler.h: Added.
* Source/WebCore/page/NavigationInterceptHandler.idl: Added.
* Source/WebCore/page/NavigationNavigationType.h: Added.
* Source/WebCore/page/NavigationTransition.cpp: Added.
* Source/WebCore/page/NavigationTransition.h: Added.
* Source/WebCore/page/NavigationTransition.idl: Added.
* Source/WebCore/page/NavigationNavigationType.idl: Added.
* Source/WebCore/page/Navigator.cpp:

Canonical link: https://commits.webkit.org/269937@main




More information about the webkit-changes mailing list