[Webkit-unassigned] [Bug 98739] [EFL][WTR] plugins/npruntime/embed-property-equality.html fail

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 12 13:55:22 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=98739





--- Comment #5 from Jussi Kukkonen (jku) <jussi.kukkonen at intel.com>  2012-10-12 13:56:05 PST ---
(In reply to comment #4)
> TestNetscapePlugin is used for WK2 plugin test. Is it necessary WK2 has own test plugin?

Oh now I see: testrunner does seem to load the plugin, it was just Minibrowser that didn't find the plugin without tricks... I debugged this a bit, will document here so I remember this on monday. 

This is what the ObjectsAreSame fumction looks like when running:
(gdb) list
1031    static bool objectsAreSame(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
1032    {
1033        if (argCount != 2 || !NPVARIANT_IS_OBJECT(args[0]) || !NPVARIANT_IS_OBJECT(args[1]))
1034            return false;
1035    
1036        BOOLEAN_TO_NPVARIANT(NPVARIANT_TO_OBJECT(args[0]) == NPVARIANT_TO_OBJECT(args[1]), *result);
1037        return true;
1038    }
1039    
1040    static bool pluginInvoke(NPObject* header, NPIdentifier name, const NPVariant* args, uint32_t argCount, NPVariant* result)
(gdb) print args[0].value.objectValue
$31 = (NPObject *) 0x465590
(gdb) print args[1].value.objectValue
$30 = (NPObject *) 0x465420


So the values are indeed different. A little up the stack: 


(gdb) frame 2
#2  0x00007ffff765d1ab in WebKit::NPObjectMessageReceiver::invoke (this=0x4650b0, 
    methodNameData=..., argumentsData=WTF::Vector of length 2, capacity 2 = {...}, 
    returnValue=@0x7fffffffdce0: 96, resultData=...)
    at /home/jku/intel/src/WebKit/Source/WebKit2/Shared/Plugins/NPObjectMessageReceiver.cpp:88
88        returnValue = m_npObject->_class->invoke(m_npObject, methodNameData.createNPIdentifier(), arguments.data(), arguments.size(), &result);
(gdb) print argumentsData
$36 = WTF::Vector of length 2, capacity 2 = {{m_type = 7, m_boolValue = false, 
    m_int32Value = 0, m_doubleValue = 0, 
    m_stringValue = <error reading variable: Cannot access memory at address 0x8>, 
    m_localNPObjectIDValue = 0, m_remoteNPObjectIDValue = 2}, {m_type = 7, 
    m_boolValue = false, m_int32Value = 0, m_doubleValue = 0, 
    m_stringValue = <error reading variable: Cannot access memory at address 0x8>, 
    m_localNPObjectIDValue = 0, m_remoteNPObjectIDValue = 3}}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list