Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f13a765177da98919f5857208c0606f5193f7d55 https://github.com/WebKit/WebKit/commit/f13a765177da98919f5857208c0606f5193f7d55 Author: Megan Gardner <megan_gard...@apple.com> Date: 2025-05-14 (Wed, 14 May 2025)
Changed paths: M Source/WebCore/dom/AbstractRange.h M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h M Source/WebKit/UIProcess/API/Cocoa/WKWebViewTesting.mm M Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm M Source/WebKit/UIProcess/WebPageProxy.h M Source/WebKit/WebProcess/WebPage/WebPage.cpp M Source/WebKit/WebProcess/WebPage/WebPage.h M Source/WebKit/WebProcess/WebPage/WebPage.messages.in M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKFragmentDirectiveGeneration.mm Log Message: ----------- Expose fragment ranges for testing. https://bugs.webkit.org/show_bug.cgi?id=292871 rdar://151151068 Reviewed by Wenson Hsieh. We would like to build some more extensive testing tools that ensure that fragment generation is working in all cases. We need to verify that the fragments are in the correct location, so adding this SPI to expose their locations in the document. * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _textFragmentRangesWithCompletionHandler:]): * Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h: * Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::WebPageProxy::createTextFragmentDirectiveFromSelection): (WebKit::WebPageProxy::getTextFragmentRanges): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::getTextFragmentRanges): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKFragmentDirectiveGeneration.mm: (TestWebKitAPI::TEST(FragmentDirectiveGeneration, VerifyFragmentRanges)): Canonical link: https://commits.webkit.org/294911@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes