Skip to content
  • andersca@apple.com's avatar
    Implement NPN_HasMethod · e650933e
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=43155
    
    Reviewed by Sam Weinig.
    
    WebKit2:
    
    * WebProcess/Plugins/NPJSObject.cpp:
    (WebKit::NPJSObject::hasMethod):
    Check if the JSObject has a property with the given name. If it does, check that the value is a function.
    
    (WebKit::NPJSObject::hasProperty):
    Add a JSLock.
    
    (WebKit::NPJSObject::npClass):
    Add some stubbed out functions.
    
    (WebKit::NPJSObject::NP_HasMethod):
    Call NPJSObject::hasMethod.
    
    (WebKit::NPJSObject::NP_Invoke):
    (WebKit::NPJSObject::NP_InvokeDefault):
    (WebKit::NPJSObject::NP_SetProperty):
    Stub out functions.
    
    * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
    (WebKit::NPN_HasMethod):
    Call the NPClass::hasMethod function.
    
    LayoutTests:
    
    * platform/mac-wk2/Skipped:
    Remove plugins/npruntime/invoke-browserfuncs.html.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e650933e