Skip to content
  • andersca@apple.com's avatar
    Add support for NP_HasMethod and NP_Invoke · 9c3bcda0
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=48882
    
    Reviewed by Adam Roben.
    
    WebKit2:
    
    * Platform/CoreIPC/HandleMessage.h:
    (CoreIPC::callMemberFunction):
    Add new overload.
    
    * Shared/Plugins/NPObjectMessageReceiver.cpp:
    (WebKit::NPObjectMessageReceiver::hasMethod):
    Call hasMethod and return the result.
    
    (WebKit::NPObjectMessageReceiver::invoke):
    Convert the arguments, call invoke and return the result.
    
    (WebKit::NPObjectMessageReceiver::getProperty):
    Release the converted variant.
    
    * Shared/Plugins/NPObjectMessageReceiver.messages.in:
    Add HasMethod and Invoke messages.
    
    * Shared/Plugins/NPObjectProxy.cpp:
    (WebKit::NPObjectProxy::hasMethod):
    Send the HasMethod message.
    
    (WebKit::NPObjectProxy::invoke):
    Send the Invoke message.
    
    (WebKit::NPObjectProxy::NP_HasMethod):
    Call hasMethod.
    
    (WebKit::NPObjectProxy::NP_Invoke):
    Call invoke.
    
    LayoutTests:
    
    Remove now passing tests.
    
    * platform/mac-wk2/Skipped:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9c3bcda0