⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175696 in webkit


Ignore:
Timestamp:
Nov 6, 2014, 7:46:34 AM (12 years ago)
Author:
berto@igalia.com
Message:

[GTK] [Stable] webkitgtk 2.6.1 fails to load flashplugin
https://bugs.webkit.org/show_bug.cgi?id=137849

Reviewed by Carlos Garcia Campos.

NPPVpluginNeedsXEmbed is a boolean value, so it should normally
use an NPBool (1 byte). However some plugins (the Flash player in
particular) are using an int instead, so we have to do it as well
else we'll end up corrupting the stack.

  • WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:

(WebKit::NetscapePlugin::platformPostInitialize):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r175694 r175696  
     12014-11-06  Alberto Garcia  <berto@igalia.com>
     2
     3        [GTK] [Stable] webkitgtk 2.6.1 fails to load flashplugin
     4        https://bugs.webkit.org/show_bug.cgi?id=137849
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        NPPVpluginNeedsXEmbed is a boolean value, so it should normally
     9        use an NPBool (1 byte). However some plugins (the Flash player in
     10        particular) are using an int instead, so we have to do it as well
     11        else we'll end up corrupting the stack.
     12
     13        * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
     14        (WebKit::NetscapePlugin::platformPostInitialize):
     15
    1162014-11-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    217
  • trunk/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp

    r175619 r175696  
    203203{
    204204    uint64_t windowID = 0;
    205     NPBool needsXEmbed = false;
     205    // NPPVpluginNeedsXEmbed is a boolean value, but at least the
     206    // Flash player plugin is using an 'int' instead.
     207    int needsXEmbed = 0;
    206208    if (m_isWindowed) {
    207209        NPP_GetValue(NPPVpluginNeedsXEmbed, &needsXEmbed);
Note: See TracChangeset for help on using the changeset viewer.