Commit fdbbf758 authored by darin@apple.com's avatar darin@apple.com

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

        Reviewed by Darin Adler.

        Fix crashes seen in regression tests with hosted plug-ins.

        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Check the stream for 0,
        not the stream ID.



git-svn-id: svn://svn.chromium.org/blink/trunk@42620 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a1e35c93
2009-04-17 Anders Carlsson <andersca@apple.com>
Reviewed by Darin Adler.
Fix crashes seen in regression tests with hosted plug-ins.
* Plugins/Hosted/NetscapePluginInstanceProxy.mm:
(WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Check the stream for 0,
not the stream ID.
2009-04-17 Darin Adler <darin@apple.com> 2009-04-17 Darin Adler <darin@apple.com>
Reviewed by Antti Koivisto. Reviewed by Antti Koivisto.
......
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
#import <WebCore/runtime_object.h> #import <WebCore/runtime_object.h>
#import <WebCore/ScriptController.h> #import <WebCore/ScriptController.h>
#import <WebCore/ScriptValue.h> #import <WebCore/ScriptValue.h>
#include <runtime/JSLock.h> #import <runtime/JSLock.h>
#include <runtime/PropertyNameArray.h> #import <runtime/PropertyNameArray.h>
#import <utility> #import <utility>
extern "C" { extern "C" {
...@@ -208,7 +208,7 @@ bool NetscapePluginInstanceProxy::cancelStreamLoad(uint32_t streamID, NPReason r ...@@ -208,7 +208,7 @@ bool NetscapePluginInstanceProxy::cancelStreamLoad(uint32_t streamID, NPReason r
else else
stream = m_streams.get(streamID).get(); stream = m_streams.get(streamID).get();
if (!streamID) if (!stream)
return false; return false;
stream->cancelLoad(reason); stream->cancelLoad(reason);
......
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