2011-03-24 Noel Gordon <noel.gordon@gmail.com>

        Reviewed by Ojan Vafai.

        [chromium] WebBindings::getRangeImpl() should NULL check its NPObject argument
        https://bugs.webkit.org/show_bug.cgi?id=56996

        * src/WebBindings.cpp:
        (WebKit::getRangeImpl):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9637c9a0
2011-03-24 Noel Gordon <noel.gordon@gmail.com>
Reviewed by Ojan Vafai.
[chromium] WebBindings::getRangeImpl() should NULL check its NPObject argument
https://bugs.webkit.org/show_bug.cgi?id=56996
* src/WebBindings.cpp:
(WebKit::getRangeImpl):
2011-03-23 Noel Gordon <noel.gordon@gmail.com>
Reviewed by Ojan Vafai.
......
......@@ -203,7 +203,8 @@ void WebBindings::extractIdentifierData(const NPIdentifier& identifier, const NP
static bool getRangeImpl(NPObject* object, WebRange* webRange)
{
// FIXME: why is this npobj not null checked here?
if (!object || (object->_class != npScriptObjectClass))
return false;
V8NPObject* v8NPObject = reinterpret_cast<V8NPObject*>(object);
v8::Handle<v8::Object> v8Object(v8NPObject->v8Object);
......
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