[webkit-changes] [WebKit/WebKit] 25df56: Lookalike character sanitization should only apply...

Wenson Hsieh noreply at github.com
Mon May 22 13:16:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 25df5694ce1b952c6249849e6458ed632996a12c
      https://github.com/WebKit/WebKit/commit/25df5694ce1b952c6249849e6458ed632996a12c
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-05-22 (Mon, 22 May 2023)

  Changed paths:
    M Source/WebCore/loader/FrameLoader.cpp
    M Tools/TestWebKitAPI/cocoa/TestNavigationDelegate.h
    M Tools/TestWebKitAPI/cocoa/TestNavigationDelegate.mm

  Log Message:
  -----------
  Lookalike character sanitization should only apply to main resource URLs
https://bugs.webkit.org/show_bug.cgi?id=257134

Reviewed by Aditya Keerthi.

Make a slight adjustment to lookalike character sanitization, so that it only applies when loading
main resources.

* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::updateRequestAndAddExtraFields):
* Tools/TestWebKitAPI/cocoa/TestNavigationDelegate.h:
* Tools/TestWebKitAPI/cocoa/TestNavigationDelegate.mm:
(-[TestNavigationDelegate _webView:didChangeLookalikeCharactersFromURL:toURL:]):

Also, add a new callback on `TestNavigationDelegate`, which we'll adopt in a new API test.

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




More information about the webkit-changes mailing list