Prompt.confirm(id) is not working, no response in the GeckoView.
Categories
(GeckoView :: General, defect)
Tracking
(Not tracked)
People
(Reporter: sgberh243, Unassigned)
Details
Steps to reproduce:
I made a basic GeckoView app that goes to the link(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select), added an override function for onChoicePrompt that shows a recyclerview. On click of a recyclerview item, it confirms it by calling, prompt.confirm(choice). Additionally, I have tried changing that to, prompt.confirm(choice.id).
To try and see if I am getting a feasible choice id value, I logged it, and I got an integer that corresponds to its placement in the <select> list inside of the GeckoView.
Actual results:
Both methods(confirming with the choice, and with the id), failed to change the selected option in the GeckoView. There was no error printed in the Log, and the app did not crash either. I have tried this on multiple sites to no avail.
Expected results:
It is expected that the selected item in the recycler view should be selected in the geckoview on click. This doesn't work, and although the recyclerview is returning the choice/the choice id(confirmed through logging), the geckoview fails to do anything. I have tried changing my GeckoView version, this didn't do anything either. My current version is build 96.0.20220113185450 on the folder geckoview/. I also tried 100.0.20220425210429 in the same folder, not working.
Comment 1•3 years ago
|
||
Thanks for reporting this issue. Can you reproduce this bug in the geckoview_example app? Knowing that will help us isolate the problem.
https://searchfox.org/mozilla-central/source/mobile/android/geckoview_example
(In reply to Chris Peterson [:cpeterson] from comment #1)
Thanks for reporting this issue. Can you reproduce this bug in the geckoview_example app? Knowing that will help us isolate the problem.
https://searchfox.org/mozilla-central/source/mobile/android/geckoview_example
How could I download it? I see no option as to downloading the source code(this is my first time using the site). Thanks.
Comment 3•3 years ago
|
||
You can try downloading a test build of geckoview_example.apk
from here:
Description
•