[webkit-changes] [WebKit/WebKit] d41105: [Navigation] Support download navigations

Rob Buis noreply at github.com
Sat May 18 02:32:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d41105b73082dcda0b1aa78c6850a77067c0bc20
      https://github.com/WebKit/WebKit/commit/d41105b73082dcda0b1aa78c6850a77067c0bc20
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2024-05-18 (Sat, 18 May 2024)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-anchor-download-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-anchor-download-userInitiated-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/anchor-download-expected.txt
    M Source/WebCore/loader/PolicyChecker.cpp
    M Source/WebCore/page/Navigation.cpp

  Log Message:
  -----------
  [Navigation] Support download navigations
https://bugs.webkit.org/show_bug.cgi?id=272349

Reviewed by Alex Christensen.

Implement detecting download requests and firing a navigate event for them [1].

[1] https://html.spec.whatwg.org/multipage/nav-history-apis.html#fire-a-download-request-navigate-event

* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-anchor-download-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigate-event/navigate-anchor-download-userInitiated-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/navigation-api/ordering-and-transition/anchor-download-expected.txt:
* Source/WebCore/loader/PolicyChecker.cpp:
(WebCore::FrameLoader::PolicyChecker::checkNavigationPolicy):
* Source/WebCore/page/Navigation.cpp:
(WebCore::Navigation::dispatchDownloadNavigateEvent):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list