[Webkit-unassigned] [Bug 62200] [GTK] Move moduleMixesGtkSymbols() from PluginPackage to PluginView

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 7 08:49:17 PDT 2011


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


Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #96225|review?                     |review-
               Flag|                            |




--- Comment #4 from Martin Robinson <mrobinson at webkit.org>  2011-06-07 08:49:18 PST ---
(From update of attachment 96225)
View in context: https://bugs.webkit.org/attachment.cgi?id=96225&action=review

The bits in WebKit2 look good, but it seems we don't really need to move any WebKit1 code around for this change. Do you mind undoing that bit of the patch?

> Source/WebCore/plugins/gtk/PluginPackageGtk.cpp:-169
> -    if (moduleMixesGtkSymbols(m_module)) {
> -        LOG(Plugins, "Module '%s' mixes GTK+ 2 and GTK+ 3 symbols, ignoring plugin.\n", m_path.utf8().data());
> -        g_module_close(m_module);
> -        return false;
> -    }
> -

I think it still makes sense to do this check here instead of creating a dead plugin. Why not just make the moduleMixesGtkSymbols a static method on PluginView and call it here?

> Source/WebCore/plugins/gtk/PluginViewGtk.cpp:813
> +    gpointer symbol;

It's probably better to use void* here.

> Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:138
> +    return module->functionPointer<gpointer>("gtk_application_get_type");

Again probably better to use void* here directly.

-- 
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