Tap on input field does not result in zooming on StackOverflow jobs page
Categories
(GeckoView :: IME, defect, P1)
Tracking
(firefox83 fixed)
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: botond, Assigned: agi)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [geckoview:m83])
Attachments
(2 files)
STR
- Navigate to https://stackoverflow.com/jobs/apply/416113?reset=False&ra=2fybyLHT9J7i&oqs=a%3D2fybyLHT9J7i%26so%3Dp%26sec%3DFalse%26pg%3D1%26offset%3D5%26total%3D5924%26srp%3DTrue%26so_medium%3DInternal%26so_source%3DJobSearchPreview%26_%3D1600791325104 in GVE.
- Request desktop site. Observe that the resulting form is zoomed out with the form fields and labels fairly small.
- Tap on the "Location" input field.
Expected results
The tap triggers zooming in on the input field (and shows the keyboard).
Actual results
The keyboard is shown but no zooming occurs.
I got a regression window with GVE and it pointed to bug 1648149.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Thanks Botond! Minimal testcase. Patch incoming.
Assignee | ||
Comment 2•4 years ago
|
||
The regression from bug 1648149 can be fixed with the following:
--- a/mobile/android/actors/GeckoViewContentChild.jsm
+++ b/mobile/android/actors/GeckoViewContentChild.jsm
@@ -159,7 +161,7 @@ class GeckoViewContentChild extends GeckoViewActorChild {
const onResize = function() {
gotResize = true;
if (dwu.isMozAfterPaintPending) {
- contentWindow.addEventListener(
+ contentWindow.windowRoot.addEventListener(
"MozAfterPaint",
() => zoomToFocusedInput(),
{ capture: true, once: true }
But I still see issues with the testcase in Comment 1 (most of the times the text field is not visible).
Botond said on matrix he would take a look, feel free to reassign.
Updated•4 years ago
|
Reporter | ||
Comment 3•4 years ago
|
||
(In reply to Agi Sferro | :agi | ⏰ PST | he/him from comment #2)
But I still see issues with the testcase in Comment 1 (most of the times the text field is not visible).
Botond said on matrix he would take a look, feel free to reassign.
Thanks for finding this issue, Agi. I agree, it looks like a bug in zoomToFocusedInput
.
That said, this is a pre-existing issue (it's been broken since before bug 1648149), and it does not come up in the original STR (which works fine with your fix to GeckoViewContentChild.jsm
).
So, my suggestion would be to:
- land your fix to
GeckoViewContentChild.jsm
in this bug - file another bug to track this pre-existing issue (which I will look into further)
Does that sound reasonable?
Assignee | ||
Comment 4•4 years ago
|
||
Sounds good! Opened Bug 1669588.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Comment 7•4 years ago
|
||
bugherder |
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 8•2 years ago
|
||
Moving some input bugs to the new GeckoView::IME component.
Description
•