ZoomToFocusInput should wait for resize events in the parent process document rather than in hte content
Categories
(GeckoView :: General, defect)
Tracking
(firefox126 fixed)
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(2 files)
This is a follow-up bug of bug 1649440.
In the content process we wait for at least one resize event before triggering nsIDOMWindowUtils.zoomToFocusedInput, but if the focused element is inside a cross-process iframe and the iframe size is quite small, say 50x50 px, then there's no resize event happens.
Assignee | ||
Comment 1•11 months ago
|
||
This bug should block bug 1831649, though there's no significant impact on that bug since we end up calling nsIDOMWindoUtils.zoomToFocused after 500ms timed out.
Assignee | ||
Comment 2•11 months ago
|
||
Updated•11 months ago
|
Comment 4•11 months ago
|
||
Backed out for causing mochitests failures in test_bug861217.html.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | dom/tests/mochitest/general/test_bug861217.html | scrollWidth of #tableCell2 - got 106, expected 107
Assignee | ||
Comment 5•11 months ago
|
||
Odd, the test fails on my local Android emulator with/without the change. Why the test passes on our CIs?
Assignee | ||
Comment 6•11 months ago
|
||
The failure is unfortunate.
The failed test is supposed to be run on zoom level is 1. But unfortunately the test file doesn't specify any meta viewport tag, thus if it runs with "./mach mochitest dom/tests/mochitest/general/test_bug861217.html", it's rendered on < 1 zoom level, locally it was 0.8163265585899353.
Also in the same directly there are a couple of other tests triggering zoomToFocusInput, test_bug1170911.html for example, then it makes the zoom level is 1. Thus test_bug861217.html has been passing on our CIs.
Note that even with the change for this bug, I don't see the test failure locally even with "./mach mochitest dom/tests/mochitest/general/", so I'd guess the failure is very timing specific.
I am going to post a patch to make the test works with "./mach mochitest dom/tests/mochitest/general/test_bug861217.html".
Assignee | ||
Comment 7•11 months ago
|
||
Backed out for causing (part of commit message)
Assignee | ||
Comment 10•11 months ago
|
||
The passed wpt is interactive-content.html, and the passed test case is <input type=color>
one. With apz.zoom-to-focused-input.enabled:false
the test case passes without the change for this bug, I'd set the pref for now.
I suppose this passed case is also racy on the interaction of zoomToFocusInput. I'd hope the case would be stable.
Comment 11•11 months ago
|
||
![]() |
||
Comment 12•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4ad62798030c
https://hg.mozilla.org/mozilla-central/rev/06a6a94fe1bd
Updated•10 months ago
|
Description
•