Changeset 80523 in webkit


Ignore:
Timestamp:
Mar 7, 2011 6:32:53 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-03-07 Damian Kaleta <dkaleta@apple.com>

Reviewed by Anders Carlsson.

QuickTime plugin should opt in to a 32-bit non-executable heap
https://bugs.webkit.org/show_bug.cgi?id=55704
<rdar://problem/8105706>

  • UIProcess/Plugins/PluginProcessProxy.cpp: (WebKit::pluginNeedsExecutableHeap): Decides per plugin if it should opt-in to a 32-bit non-executable heap. By default it should opt-out. (WebKit::PluginProcessProxy::PluginProcessProxy):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r80479 r80523  
     12011-03-07  Damian Kaleta  <dkaleta@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        QuickTime plugin should opt in to a 32-bit non-executable heap
     6        https://bugs.webkit.org/show_bug.cgi?id=55704
     7        <rdar://problem/8105706>
     8
     9        * UIProcess/Plugins/PluginProcessProxy.cpp:
     10        (WebKit::pluginNeedsExecutableHeap): Decides per plugin if it should opt-in to a 32-bit non-executable heap.
     11        By default it should opt-out.
     12        (WebKit::PluginProcessProxy::PluginProcessProxy):
     13
    1142011-03-07  Sam Weinig  <sam@webkit.org>
    215
  • trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp

    r78676 r80523  
    3939
    4040namespace WebKit {
     41   
     42#if PLATFORM(MAC)
     43static bool pluginNeedsExecutableHeap(const PluginInfoStore::Plugin& pluginInfo)
     44{
     45    if (pluginInfo.bundleIdentifier == "com.apple.QuickTime Plugin.plugin")
     46        return false;
     47   
     48    return true;
     49}
     50#endif
    4151
    4252PassOwnPtr<PluginProcessProxy> PluginProcessProxy::create(PluginProcessManager* PluginProcessManager, const PluginInfoStore::Plugin& pluginInfo)
     
    5464#if PLATFORM(MAC)
    5565    launchOptions.architecture = pluginInfo.pluginArchitecture;
    56 
    57     // FIXME: This shouldn't be true for all plug-ins.
    58     launchOptions.executableHeap = true;
     66    launchOptions.executableHeap = pluginNeedsExecutableHeap(pluginInfo);
    5967#endif
    6068
Note: See TracChangeset for help on using the changeset viewer.