[webkit-gtk] window.webkit undefined?

Antonio antonio at vieiro.net
Wed Jan 25 09:37:11 PST 2023

Hi all,

First of all: apologies if this is not an appropriate mailing list for 
questions about the webkit-gtk API. In this case, would you please point 
me to a proper one?

The fact is that I'm trying to receive messages from a <script> in my 
webpage through the "window.webkit.messageHandlers.XYZ.postMessage()" 
call, as indicated in [1], but "window.webkit" is undefined.

How so? Has this changed somehow?

Thanks in advance,


NOTE: I've already

a) set up a signal callback to "script-message-received::XYZ"
b) and registered a message handler with 

More information about the webkit-gtk mailing list