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

Changeset 106701 in webkit


Ignore:
Timestamp:
Feb 3, 2012, 3:47:55 PM (15 years ago)
Author:
ap@apple.com
Message:

[Mac WK2] Use a minimally invasive way to fake plug-in process name
https://bugs.webkit.org/show_bug.cgi?id=77682

Reviewed by Darin Adler.

  • PluginProcess/PluginProcess.cpp: (WebKit::PluginProcess::netscapePluginModule):

Only change the name as it's seen from within the process.

  • Shared/Plugins/PluginQuirks.h: Fixed a typo.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r106678 r106701  
     12012-02-03  Alexey Proskuryakov  <ap@apple.com>
     2
     3        [Mac WK2] Use a minimally invasive way to fake plug-in process name
     4        https://bugs.webkit.org/show_bug.cgi?id=77682
     5
     6        Reviewed by Darin Adler.
     7
     8        * PluginProcess/PluginProcess.cpp: (WebKit::PluginProcess::netscapePluginModule):
     9        Only change the name as it's seen from within the process.
     10
     11        * Shared/Plugins/PluginQuirks.h: Fixed a typo.
     12
    1132012-02-03  Beth Dakin  <bdakin@apple.com>
    214
  • trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp

    r105475 r106701  
    3939#include <WebCore/RunLoop.h>
    4040
     41#if PLATFORM(MAC)
     42#include <crt_externs.h>
     43#endif
     44
    4145#if USE(UNIX_DOMAIN_SOCKETS)
    4246#include <errno.h>
     
    116120        if (m_pluginModule) {
    117121            if (m_pluginModule->pluginQuirks().contains(PluginQuirks::PrognameShouldBeWebKitPluginHost))
    118                 setprogname("WebKitPluginHost");
     122                *const_cast<const char**>(_NSGetProgname()) = "WebKitPluginHost";
    119123        }
    120124#endif
  • trunk/Source/WebKit2/Shared/Plugins/PluginQuirks.h

    r100725 r106701  
    3434        // Mac specific quirks:
    3535#if PLUGIN_ARCHITECTURE(MAC)
    36         // The plug-in wants the call to getprogame() to return "WebKitPluginHost".
     36        // The plug-in wants the call to getprogname() to return "WebKitPluginHost".
    3737        // Adobe Flash Will not handle key down events otherwise.
    3838        PrognameShouldBeWebKitPluginHost,
Note: See TracChangeset for help on using the changeset viewer.