[UNIX] Plugin information fields are not interpreted as UTF-8
https://bugs.webkit.org/show_bug.cgi?id=78635
Patch by Martin Robinson <mrobinson@igalia.com> on 2012-02-20
Reviewed by Gustavo Noronha Silva.
Source/WebCore:
Interpret plugin metadata as UTF8 aways. This matches the behavior
of Chromium and the Totem plugin.
This is tested by a change to TestNetscapePlugin and expectations updates.
* plugins/efl/PluginPackageEfl.cpp:
(WebCore::PluginPackage::fetchInfo): Use String::fromUTF8.
* plugins/gtk/PluginPackageGtk.cpp:
(WebCore::PluginPackage::fetchInfo): Use String::fromUTF8.
* plugins/qt/PluginPackageQt.cpp:
(WebCore::PluginPackage::fetchInfo): Use String::fromUTF8.
Source/WebKit2:
Interpret plugin metadata as UTF8 aways. This matches the behavior
of Chromium and the Totem plugin.
* Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
(WebKit::NetscapePluginModule::getPluginInfoForLoadedPlugin): Use String::fromUTF8.
Tools:
Interpret plugin metadata as UTF8 aways. This matches the behavior
of Chromium and the Totem plugin.
* DumpRenderTree/TestNetscapePlugIn/main.cpp:
(NPP_GetValue): Include a UTF-8 character in the description string for testing purposes.
LayoutTests:
Update expectations to match the fact that TestNetscapePlugin is now
returning a Unicode character in the description field.
* platform/chromium-linux/plugins/plugin-javascript-access-expected.txt:
* platform/gtk/plugins/plugin-javascript-access-expected.txt:
* platform/qt/plugins/plugin-javascript-access-expected.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108281
268f45cc-cd09-0410-ab3c-
d52691b4dbfc