I want to expose a native object or function to javascript so that i can have a callback function in C when the particular function is called in browser.
From this example, it seems it is possible in WebKitGTK1 using the signal "window-object-cleared".
How can i achieve the same in WebKitGTK2, i hope it has something to do with WebKitWebExtension. But i am not sure and also there is not clear guidelines or examples for implementing WebKitWebExtension. Can anyone help me with a solution for my request ?