[WPE] Implement WebCore::standardUserAgent()
authoraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 13 Aug 2017 12:13:27 +0000 (12:13 +0000)
committeraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 13 Aug 2017 12:13:27 +0000 (12:13 +0000)
commit891086390b637c38fa0c7b94181190cdde4cc87a
tree5b3288dfe9957ed5221d23b21c50cc00159c1c19
parent02e4d7645157d8efc38d986dbbb53274b79f5641
[WPE] Implement WebCore::standardUserAgent()
https://bugs.webkit.org/show_bug.cgi?id=175507

Reviewed by Carlos Alberto Lopez Perez.

Implement missing User-Agent handling for the WPE port by sharing the code with the GTK+ port.

.:

* Source/cmake/OptionsGTK.cmake: Rename "GTK" with "GLIB" in UA version macros.
* Source/cmake/OptionsWPE.cmake: Add UA version macros.

Source/WebCore:

* PlatformGTK.cmake: Handlde renaming of UserAgentGtk.cpp to UserAgentGLib.cpp.
* PlatformWPE.cmake: Add UserAgentGLib.cpp and UserAgentQuirks.cpp to the list of built WebCore sources.
* platform/glib/UserAgentGLib.cpp: Renamed from Source/WebCore/platform/gtk/UserAgentGtk.cpp.
(WebCore::versionForUAString): Change "GTK" in UA version macros to "GLIB".

Source/WebKit:

* UIProcess/API/glib/WebKitSettings.cpp: Remove preprocessor conditionals for the WPE port.
(webkit_settings_set_user_agent):
(webkit_settings_set_user_agent_with_application_details):
* UIProcess/wpe/WebPageProxyWPE.cpp:
(WebKit::WebPageProxy::standardUserAgent): Remove hardcoded value and make use of WebCore::standardUserAgent().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@220631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/WebCore/ChangeLog
Source/WebCore/PlatformGTK.cmake
Source/WebCore/PlatformWPE.cmake
Source/WebCore/platform/glib/UserAgentGLib.cpp [moved from Source/WebCore/platform/gtk/UserAgentGtk.cpp with 98% similarity]
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp
Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp
Source/cmake/OptionsGTK.cmake
Source/cmake/OptionsWPE.cmake