Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 25df5694ce1b952c6249849e6458ed632996a12c
https://github.com/WebKit/WebKit/commit/25df5694ce1b952c6249849e6458ed632996a12c
Author: Wenson Hsieh <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes