As part of mozilla-mobile/focus-android#967 we're going to add the ability to find text in a page. I think it makes sense to componentize JavaScript/WebView communication. Would we want a UI component as well?
See comment in https://github.com/mozilla-mobile/focus-android/issues/967 - WebView has APIs for that. No JavaScript needed. :)
We want to add something for that to engine(-gecko/webview) here. But it will take some time until the engine component is ready to be used in Focus. So for now I recommend to use the WebView APIs in Focus and request the matching GeckoView APIs as soon as possible!
Ah! How did I miss that! That makes this quite a bit easier :)
Filed a new issue for the session/engine work: #656.
Most helpful comment
See comment in https://github.com/mozilla-mobile/focus-android/issues/967 - WebView has APIs for that. No JavaScript needed. :)
We want to add something for that to engine(-gecko/webview) here. But it will take some time until the engine component is ready to be used in Focus. So for now I recommend to use the WebView APIs in Focus and request the matching GeckoView APIs as soon as possible!