Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GTK][WPE] Need a function to convert internal URI to display ("prett…
…y") URI https://bugs.webkit.org/show_bug.cgi?id=174816 Reviewed by Michael Catanzaro. Source/WebCore: Tests: enabled fast/url/user-visible/. * testing/Internals.cpp: (WebCore::Internals::userVisibleString): Enable method on all platforms. Source/WebKit: Add webkit_uri_for_display for GTK and WPE. * PlatformGTK.cmake: * PlatformWPE.cmake: * SourcesGTK.txt: * SourcesWPE.txt: * UIProcess/API/glib/WebKitURIUtilities.cpp: Added. (webkit_uri_for_display): * UIProcess/API/gtk/WebKitURIUtilities.h: Added. * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: * UIProcess/API/gtk/webkit2.h: * UIProcess/API/wpe/WebKitURIUtilities.h: Added. * UIProcess/API/wpe/docs/wpe-0.1-sections.txt: * UIProcess/API/wpe/docs/wpe-docs.sgml: * UIProcess/API/wpe/webkit.h: Source/WTF: Translate userVisibleString and dependent code into platform-neutral C++ in wtf/URLHelpers.{h,cpp}. * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/URLHelpers.cpp: Added. (WTF::URLHelpers::loadIDNScriptWhiteList): (WTF::URLHelpers::isArmenianLookalikeCharacter): (WTF::URLHelpers::isArmenianScriptCharacter): (WTF::URLHelpers::isASCIIDigitOrValidHostCharacter): (WTF::URLHelpers::isLookalikeCharacter): (WTF::URLHelpers::whiteListIDNScript): (WTF::URLHelpers::initializeDefaultIDNScriptWhiteList): (WTF::URLHelpers::allCharactersInIDNScriptWhiteList): (WTF::URLHelpers::isSecondLevelDomainNameAllowedByTLDRules): (WTF::URLHelpers::isRussianDomainNameCharacter): (WTF::URLHelpers::allCharactersAllowedByTLDRules): (WTF::URLHelpers::mapHostName): (WTF::URLHelpers::collectRangesThatNeedMapping): (WTF::URLHelpers::applyHostNameFunctionToMailToURLString): (WTF::URLHelpers::applyHostNameFunctionToURLString): (WTF::URLHelpers::mapHostNames): (WTF::URLHelpers::createStringWithEscapedUnsafeCharacters): (WTF::URLHelpers::userVisibleURL): * wtf/URLHelpers.h: Added. * wtf/cocoa/NSURLExtras.mm: (WTF::URLHelpers::loadIDNScriptWhiteList): (WTF::decodePercentEscapes): (WTF::decodeHostName): (WTF::encodeHostName): (WTF::URLWithUserTypedString): (WTF::userVisibleString): Tools: Add tests for userVisibleString() and (for GTK and WPE) webkit_uri_for_display(). * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/URLHelpers.cpp: Added. (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitGLib/TestWebKitURIUtilities.cpp: Added. (testURIForDisplayUnaffected): (testURIForDisplayAffected): (beforeAll): (afterAll): * TestWebKitAPI/glib/CMakeLists.txt: LayoutTests: * TestExpectations: Enable fast/url/user-visible/. Canonical link: https://commits.webkit.org/207326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
1,385 additions
and 819 deletions.
- +9 −0 LayoutTests/ChangeLog
- +0 −1 LayoutTests/TestExpectations
- +40 −0 Source/WTF/ChangeLog
- +6 −0 Source/WTF/WTF.xcodeproj/project.pbxproj
- +2 −0 Source/WTF/wtf/CMakeLists.txt
- +866 −0 Source/WTF/wtf/URLHelpers.cpp
- +49 −0 Source/WTF/wtf/URLHelpers.h
- +24 −815 Source/WTF/wtf/cocoa/NSURLExtras.mm
- +12 −0 Source/WebCore/ChangeLog
- +3 −3 Source/WebCore/testing/Internals.cpp
- +24 −0 Source/WebKit/ChangeLog
- +1 −0 Source/WebKit/PlatformGTK.cmake
- +1 −0 Source/WebKit/PlatformWPE.cmake
- +1 −0 Source/WebKit/SourcesGTK.txt
- +1 −0 Source/WebKit/SourcesWPE.txt
- +57 −0 Source/WebKit/UIProcess/API/glib/WebKitURIUtilities.cpp
- +37 −0 Source/WebKit/UIProcess/API/gtk/WebKitURIUtilities.h
- +5 −0 Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt
- +5 −0 Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml
- +1 −0 Source/WebKit/UIProcess/API/gtk/webkit2.h
- +37 −0 Source/WebKit/UIProcess/API/wpe/WebKitURIUtilities.h
- +5 −0 Source/WebKit/UIProcess/API/wpe/docs/wpe-0.1-sections.txt
- +5 −0 Source/WebKit/UIProcess/API/wpe/docs/wpe-docs.sgml
- +1 −0 Source/WebKit/UIProcess/API/wpe/webkit.h
- +20 −0 Tools/ChangeLog
- +1 −0 Tools/TestWebKitAPI/CMakeLists.txt
- +4 −0 Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
- +116 −0 Tools/TestWebKitAPI/Tests/WTF/URLHelpers.cpp
- +51 −0 Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitURIUtilities.cpp
- +1 −0 Tools/TestWebKitAPI/glib/CMakeLists.txt
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.