[webkit-changes] [WebKit/WebKit] 6eedbb: Allow navigation to about scheme URLs without opaq...

Alex Christensen noreply at github.com
Tue Oct 17 12:16:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6eedbb94b3dea4ce23f51563eb49a4a7c5344463
      https://github.com/WebKit/WebKit/commit/6eedbb94b3dea4ce23f51563eb49a4a7c5344463
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-10-17 (Tue, 17 Oct 2023)

  Changed paths:
    M LayoutTests/http/tests/dom/window-open-about-webkit-org-and-access-document-async-delegates.html
    M LayoutTests/http/tests/dom/window-open-about-webkit-org-and-access-document.html
    M Source/WebCore/loader/DocumentLoader.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm

  Log Message:
  -----------
  Allow navigation to about scheme URLs without opaque paths
https://bugs.webkit.org/show_bug.cgi?id=263139
rdar://116238322

Reviewed by Chris Dumez.

267754 at main prevented navigating to URLs with the about scheme except about:blank or about:srcdoc.
However, several iOS browsers start by opening the url about://newtab/
so let's allow URLs like that to retain compatibility.

* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::startLoadingMainResource):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/Navigation.mm:
(TEST):

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




More information about the webkit-changes mailing list