[wpe-webkit] Using jsc_weak_xxxx API in WPE web-extensions
munezbn.dev at gmail.com
Sun Jul 21 08:50:28 PDT 2019
I was trying to add notification support in web-extension code and I was
referring to epiphany browser for the same.
They used *jsc_class_add_property *to define the name and get/set functions
and they used JSCWeakValue to store the function.
* JSCValue *js_function; JSCWeakValue *weak_value;
weak_value = jsc_weak_value_new (js_function);*
I followed same thing and everything worked fine with WebKit GTK. But when
I tried it with WPE I hit compilation error for all jsc_weak_xxxxx APIs
*undefined reference to `jsc_weak_value_get_type'*
library in WPE and dynamic in WKGTK.
Can you please suggest what is the better way to handle this? I don't want
to link javacsriptcore library to my extension. And if I don't use
*then Im getting run-time error saying JSC_IS_VALUE failed while trying to
call that jsc_function using *jsc_value_function_call .*
libwpewebkit which is loaded in WebProcess. And extension also loaded in
Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-wpe