On Tue, Aug 30, 2016 at 9:57 PM, Gustavo Noronha Silva &lt;gns@gnome.org&gt; wrote:<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">Long term, I think it might pay off if we move away from GObject
bindings and into making running arbitrary JS code (possibly with access
to GObject APIs through something like seed) on the page's JS context
simpler. I think the GObject bindings were very useful in their current
form when you could use them from your main program, but less so when
you'll have to run it on the web process and set up some kind of IPC
anyway.

Do we have an idea how people are using the DOM bindings today and how?
Would they be properly served by an easier to use JS bridge?
</div></blockquote><br><br><div>I have a few data points for this as well. If the Geary WK2 port starts using a WebExtenison for DOM manipulation, then we'd want access to both&nbsp;WebKitDOMDOMSelection and&nbsp;WebKitDOMDOMTokenList. The latter is mostly for convenience, the former though is pretty important - we need to get user selections for things like quoting parts of an email for reply, and so on.</div><div><div><br></div><div>I'd probably be happy to use a&nbsp;<span style="white-space: pre-wrap;">JS bridge instead, except that I'd like to be able to support Debian stable (which currently ships with 2.6 by default and it seems that 2.8 really made the JS bridge usable by introducing WebKitUserContentManager's message handlers), but also because I'd prefer to keep JS disabled for privacy and security reasons, unless there's some way to disable in-page JS only.</span></div><div><span style="white-space: pre-wrap;"><br></span></div><div><span style="white-space: pre-wrap;">//Mike<br></span><div style="white-space: pre;">
-- 
⊨ Michael Gratton, Percept Wrangler.
⚙ &lt;<a href="http://mjog.vee.net/">http://mjog.vee.net/</a>&gt;
</div></div></div>