[Webkit-unassigned] [Bug 78635] New: [gtk] webkit_web_plugin_get_name() does not handle UTF8 properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 14 14:38:52 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=78635

           Summary: [gtk] webkit_web_plugin_get_name() does not handle
                    UTF8 properly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: descalante at igalia.com
                CC: mrobinson at webkit.org


Concrete test case: totem plugin for DiVX is named:
DivX® Web Player

But WebKitGTK+ reads it like this:
DivX® Web Player

The original string in totem source is:

browser-plugin/totemPlugin.cpp:
=8<=======
static const char kPluginDescription[] =
#elif defined(TOTEM_MULLY_PLUGIN)
  "DivX\xC2\xAE Web Player";
=8<=======

The value is handled to WebKitGTK+ by the GetValue implementation here:

browser-plugin/totemPluginGlue.cpp:
=8<=======
static NPError
totem_plugin_get_value (NPP instance,
                        NPPVariable variable,
                        void *value)
        case NPPVpluginNameString:
                *((char **)value) = totemPlugin::PluginDescription ();
                break;
=8<=======

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list