So I've been trying to power my app using the Mozilla GeckoView package instead of the Google WebView one, and one issue that I am trying to get through is the way new tab or new window creations are handled.
I looked up the lovely internet about it and all I could find is https://stackoverflow.com/a/76157635/8524395
Which by the way is a great example that works fine, However it doesn't work for example if we do like this:
<form action="" method="post" target="_blank">
<input type="submit" name"sbtn" value="submit" />
</form>
In the above HTML code we are submitting a form in a new tab. how can I handle this in my GeckoView session? I searched enough for a way to handle this scenario but all the results were very restrictive.
Can we maybe get the submitted form data and create the request manually then send the result page to the GeckoView view? Any ideas on how can this be done, or how does Firefox for Android do it?
Any feedback will be much appreciated :)