[wpe-webkit] Using jsc_weak_xxxx API in WPE web-extensions
Munez Bn
munezbn.dev at gmail.com
Sun Jul 21 10:13:47 PDT 2019
On Sun, Jul 21, 2019 at 10:12 PM Michael Catanzaro <mcatanzaro at igalia.com>
wrote:
> On Sun, Jul 21, 2019 at 10:50 AM, Munez Bn <munezbn.dev at gmail.com>
> wrote:
> > Then I realized that it is defined in LibJavaScriptCore which is a
> > static library in WPE and dynamic in WKGTK.
>
> That shouldn't matter. The JSC symbols should be exported in
> libwpewebkit.so (instead of libjavascriptcoregtk.so). Are you not able
> to use any of the JSC API?
>
I am able to use all JSC_API but not any of JSC_WEAK_API. I tried to find
the symbols using *readelf* */ grep *and I found out that JSC_API symbols
are present in both libjavascriptcore & libwpewebkit, But JSC_WEAK API
symbols only available in libjavascriptcore. Thats why i am able to access
all JSC_API bu tnot JSC_WEAK_API. Am i missing anything ?
---------------------------- readelf -------------------------------
readelf -a wpebuild/build/wpewebkit-2.24.1/lib/libJavaScriptCore.a | grep
jsc_value_function_call
425: 0000158d 268 FUNC GLOBAL DEFAULT 22 jsc_value_function_callv
462: 00002355 144 FUNC GLOBAL DEFAULT 22 jsc_value_function_call
readelf -a wpebuild/build/wpewebkit-2.24.1/lib/libWPEWebKit-1.0.so.2.4.2 |
grep jsc_value_function_call
620: 00c38bad 268 FUNC GLOBAL DEFAULT 10 jsc_value_function_callv
759: 00c39975 144 FUNC GLOBAL DEFAULT 10 jsc_value_function_call
315311: 00c38bad 268 FUNC GLOBAL DEFAULT 10 jsc_value_function_callv
315450: 00c39975 144 FUNC GLOBAL DEFAULT 10 jsc_value_function_call
readelf -a wpebuild/build/wpewebkit-2.24.1/lib/libJavaScriptCore.a | grep
jsc_weak_value_new
54: 00000000 44 OBJECT LOCAL DEFAULT 25 _ZZ18jsc_weak_value_newE1
99: 00000157 94 FUNC GLOBAL DEFAULT 7 jsc_weak_value_new
readelf -a wpebuild/build/wpewebkit-2.24.1/lib/libWPEWebKit-1.0.so.2.4.2 |
grep jsc_weak_value_new
*<NothinG>*
-------------------------- grep ---------------------------
grep *jsc_value_function_call* -r wpebuild/build/wpewebkit-2.24.1/lib/
Binary file wpebuild/build/wpewebkit-2.24.1/lib/libJavaScriptCore.a matches
Binary file wpebuild/build/wpewebkit-2.24.1/lib/libWPEWebKit-1.0.so.2.4.2
matches
grep *jsc_weak* -r wpebuild/build/wpewebkit-2.24.1/lib/
Binary file wpebuild/build/wpewebkit-2.24.1/lib/libJavaScriptCore.a matches
> > Correct me if I am wrong, technically Javascriptcore is linked to
> > libwpewebkit which is loaded in WebProcess. And extension also loaded
> > in WebProcess ?
>
> Yes, most of the JSC API is for use in your web process extension, not
> the UI process.
>
> Michael
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-wpe/attachments/20190721/64442bb0/attachment.html>
More information about the webkit-wpe
mailing list