Changeset 220631 in webkit
- Timestamp:
- Aug 13, 2017 5:13:27 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r220627 r220631 1 2017-08-13 Adrian Perez de Castro <aperez@igalia.com> 2 3 [WPE] Implement WebCore::standardUserAgent() 4 https://bugs.webkit.org/show_bug.cgi?id=175507 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 Implement missing User-Agent handling for the WPE port by sharing the code with the GTK+ port. 9 10 * Source/cmake/OptionsGTK.cmake: Rename "GTK" with "GLIB" in UA version macros. 11 * Source/cmake/OptionsWPE.cmake: Add UA version macros. 12 1 13 2017-08-11 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r220627 r220631 1 2017-08-13 Adrian Perez de Castro <aperez@igalia.com> 2 3 [WPE] Implement WebCore::standardUserAgent() 4 https://bugs.webkit.org/show_bug.cgi?id=175507 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 Implement missing User-Agent handling for the WPE port by sharing the code with the GTK+ port. 9 10 * PlatformGTK.cmake: Handlde renaming of UserAgentGtk.cpp to UserAgentGLib.cpp. 11 * PlatformWPE.cmake: Add UserAgentGLib.cpp and UserAgentQuirks.cpp to the list of built WebCore sources. 12 * platform/glib/UserAgentGLib.cpp: Renamed from Source/WebCore/platform/gtk/UserAgentGtk.cpp. 13 (WebCore::versionForUAString): Change "GTK" in UA version macros to "GLIB". 14 1 15 2017-08-11 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/Source/WebCore/PlatformGTK.cmake
r220540 r220631 75 75 platform/glib/SSLKeyGeneratorGLib.cpp 76 76 platform/glib/SharedBufferGlib.cpp 77 platform/glib/UserAgentGLib.cpp 77 78 78 79 platform/graphics/GLContext.cpp … … 106 107 platform/gtk/ScrollAnimatorGtk.cpp 107 108 platform/gtk/SelectionData.cpp 108 platform/gtk/UserAgentGtk.cpp109 109 110 110 platform/network/soup/AuthenticationChallengeSoup.cpp -
trunk/Source/WebCore/PlatformWPE.cmake
r220532 r220631 67 67 platform/PlatformStrategies.cpp 68 68 platform/Theme.cpp 69 platform/UserAgentQuirks.cpp 69 70 70 71 platform/audio/glib/AudioBusGLib.cpp … … 77 78 platform/glib/SSLKeyGeneratorGLib.cpp 78 79 platform/glib/SharedBufferGlib.cpp 80 platform/glib/UserAgentGLib.cpp 79 81 80 82 platform/graphics/GLContext.cpp -
trunk/Source/WebCore/platform/glib/UserAgentGLib.cpp
r220630 r220631 73 73 static const char* versionForUAString() 74 74 { 75 return USER_AGENT_G TK_MAJOR_VERSION "." USER_AGENT_GTK_MINOR_VERSION;75 return USER_AGENT_GLIB_MAJOR_VERSION "." USER_AGENT_GLIB_MINOR_VERSION; 76 76 } 77 77 -
trunk/Source/WebKit/ChangeLog
r220627 r220631 1 2017-08-13 Adrian Perez de Castro <aperez@igalia.com> 2 3 [WPE] Implement WebCore::standardUserAgent() 4 https://bugs.webkit.org/show_bug.cgi?id=175507 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 Implement missing User-Agent handling for the WPE port by sharing the code with the GTK+ port. 9 10 * UIProcess/API/glib/WebKitSettings.cpp: Remove preprocessor conditionals for the WPE port. 11 (webkit_settings_set_user_agent): 12 (webkit_settings_set_user_agent_with_application_details): 13 * UIProcess/wpe/WebPageProxyWPE.cpp: 14 (WebKit::WebPageProxy::standardUserAgent): Remove hardcoded value and make use of WebCore::standardUserAgent(). 15 1 16 2017-08-11 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp
r218553 r220631 2851 2851 g_return_if_fail(WEBKIT_IS_SETTINGS(settings)); 2852 2852 2853 #if PLATFORM(GTK)2854 2853 WebKitSettingsPrivate* priv = settings->priv; 2855 2854 CString newUserAgent = (!userAgent || !strlen(userAgent)) ? WebCore::standardUserAgent("").utf8() : userAgent; … … 2859 2858 priv->userAgent = newUserAgent; 2860 2859 g_object_notify(G_OBJECT(settings), "user-agent"); 2861 #elif PLATFORM(WPE)2862 // FIXME: WPE should implement WebCore::standardUserAgent.2863 #endif2864 2860 } 2865 2861 … … 2878 2874 g_return_if_fail(WEBKIT_IS_SETTINGS(settings)); 2879 2875 2880 #if PLATFORM(GTK)2881 2876 CString newUserAgent = WebCore::standardUserAgent(String::fromUTF8(applicationName), String::fromUTF8(applicationVersion)).utf8(); 2882 2877 webkit_settings_set_user_agent(settings, newUserAgent.data()); 2883 #elif PLATFORM(WPE)2884 // FIXME: WPE should implement WebCore::standardUserAgent.2885 #endif2886 2878 } 2887 2879 -
trunk/Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp
r218740 r220631 30 30 #include "WebsiteDataStore.h" 31 31 #include <WebCore/NotImplemented.h> 32 #include <WebCore/UserAgent.h> 32 33 33 34 namespace WebKit { … … 43 44 } 44 45 45 String WebPageProxy::standardUserAgent(const String& )46 String WebPageProxy::standardUserAgent(const String& applicationNameForUserAgent) 46 47 { 47 return "Mozilla/5.0 (Linux; x86_64 GNU/Linux) AppleWebKit/601.1 (KHTML, like Gecko) Version/8.0 Safari/601.1";48 return WebCore::standardUserAgent(applicationNameForUserAgent); 48 49 } 49 50 -
trunk/Source/cmake/OptionsGTK.cmake
r220595 r220631 195 195 add_definitions(-DGETTEXT_PACKAGE="WebKit2GTK-${WEBKITGTK_API_VERSION}") 196 196 add_definitions(-DDATA_DIR="${CMAKE_INSTALL_DATADIR}") 197 add_definitions(-DUSER_AGENT_G TK_MAJOR_VERSION="604")198 add_definitions(-DUSER_AGENT_G TK_MINOR_VERSION="1")197 add_definitions(-DUSER_AGENT_GLIB_MAJOR_VERSION="604") 198 add_definitions(-DUSER_AGENT_GLIB_MINOR_VERSION="1") 199 199 add_definitions(-DWEBKITGTK_API_VERSION_STRING="${WEBKITGTK_API_VERSION}") 200 200 -
trunk/Source/cmake/OptionsWPE.cmake
r220446 r220631 127 127 add_definitions(-DGETTEXT_PACKAGE="WPE") 128 128 add_definitions(-DDATA_DIR="${CMAKE_INSTALL_DATADIR}") 129 add_definitions(-DUSER_AGENT_GLIB_MAJOR_VERSION="601") 130 add_definitions(-DUSER_AGENT_GLIB_MINOR_VERSION="1") 129 131 130 132 set(USE_UDIS86 1)
Note: See TracChangeset
for help on using the changeset viewer.