Unfortunately several years ago a change was made to most browsers and
when you pass an NPObject back into the plugin there is no way to get
the original object, which means it's not possible to get the original
JSAPIPtr from it. In other words, what you want to do is
unfortunately not possible.
I recommend using some sort of identifier in a std::map<int,
FB::JSAPIWeakPtr> and when you get the JSObjectPtr back in you can
call a "getId" or similar type function which would tell you what the
id of that object is, then you look it up in the map.
(yes, you'd have to implement all of that yourself)
Richard
> ________________________________
> This email and any files transmitted with it are for the sole use of the
> intended recipient and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply
> email and destroy all copies and the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email or any action taken in reliance on this email is strictly
> prohibited and may be unlawful. Thank you for your cooperation.
> ________________________________
> 2016, Temasys (
www.temasys.io)
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "firebreath-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
firebreath-de...@googlegroups.com.