[webkit-changes] [WebKit/WebKit] 76a3ac: Do not allow redirecting to data: or about: URLs

Chris Dumez noreply at github.com
Sat Sep 17 10:09:10 PDT 2022


  Branch: refs/heads/230158_block_redirect_to_about
  Home:   https://github.com/WebKit/WebKit
  Commit: 76a3acdf1a99ab4fabc9aa8d65473897762a41e0
      https://github.com/WebKit/WebKit/commit/76a3acdf1a99ab4fabc9aa8d65473897762a41e0
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-09-17 (Sat, 17 Sep 2022)

  Changed paths:
    M LayoutTests/TestExpectations
    R LayoutTests/http/tests/misc/redirect-to-about-blank-expected.txt
    R LayoutTests/http/tests/misc/redirect-to-about-blank.html
    M LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/redirect-to-about.window-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/redirect-to-data-expected.txt
    M Source/WebCore/loader/DocumentLoader.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm
    M Tools/TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp

  Log Message:
  -----------
  Do not allow redirecting to data: or about: URLs
https://bugs.webkit.org/show_bug.cgi?id=230158
<rdar://83244357>

Reviewed by NOBODY (OOPS!).

Do not allow redirecting to data: or about: URLs, as per:
- https://github.com/whatwg/html/pull/7042

This aligns our behavior with Blink and gets us closer to Gecko.

* LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/redirect-to-about.window-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/redirect-to-data-expected.txt:
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::willSendRequest):




More information about the webkit-changes mailing list