Commit 602aae92 authored by andersca@apple.com's avatar andersca@apple.com

2009-04-22 Anders Carlsson <andersca@apple.com>

        Reviewed by Oliver Hunt.

        Fix <rdar://problem/6792694>
        
        When we're trying to instantiate a plug-in and the plug-in host has died, we need to invalidate the
        instance so that it doesn't stick around and do bad things.
        
        * Plugins/Hosted/NetscapePluginHostManager.mm:
        (WebKit::NetscapePluginHostManager::instantiatePlugin):



git-svn-id: svn://svn.chromium.org/blink/trunk@42756 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a20aa64a
2009-04-22 Anders Carlsson <andersca@apple.com>
Reviewed by Oliver Hunt.
Fix <rdar://problem/6792694>
When we're trying to instantiate a plug-in and the plug-in host has died, we need to invalidate the
instance so that it doesn't stick around and do bad things.
* Plugins/Hosted/NetscapePluginHostManager.mm:
(WebKit::NetscapePluginHostManager::instantiatePlugin):
2009-04-22 Sam Weinig <sam@webkit.org> 2009-04-22 Sam Weinig <sam@webkit.org>
Rubber-stamped by Darin Adler. Rubber-stamped by Darin Adler.
......
...@@ -229,6 +229,9 @@ PassRefPtr<NetscapePluginInstanceProxy> NetscapePluginHostManager::instantiatePl ...@@ -229,6 +229,9 @@ PassRefPtr<NetscapePluginInstanceProxy> NetscapePluginHostManager::instantiatePl
uint32_t requestID = instance->nextRequestID(); uint32_t requestID = instance->nextRequestID();
kern_return_t kr = _WKPHInstantiatePlugin(hostProxy->port(), requestID, (uint8_t*)[data bytes], [data length], instance->pluginID()); kern_return_t kr = _WKPHInstantiatePlugin(hostProxy->port(), requestID, (uint8_t*)[data bytes], [data length], instance->pluginID());
if (kr == MACH_SEND_INVALID_DEST) { if (kr == MACH_SEND_INVALID_DEST) {
// Invalidate the instance.
instance->invalidate();
// The plug-in host must have died, but we haven't received the death notification yet. // The plug-in host must have died, but we haven't received the death notification yet.
pluginHostDied(hostProxy); pluginHostDied(hostProxy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment