Double-tap to zoom breaks the reddit page
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox88 | --- | unaffected |
firefox89 | --- | verified |
firefox90 | --- | verified |
People
(Reporter: dcicas, Assigned: tnikkel)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [proton-uplift])
Attachments
(2 files)
(deleted),
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details |
(deleted),
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details |
Affected versions
- Firefox 90.0a1 (BuildId:20210423095101)
Firefox 89.0b3
Affected platforms
- macOS 11.2
macOS 10.13
Unaffected platforms
- Windows 10 64 bit
Ubuntu 18.04
Steps to reproduce
- Reach https://www.reddit.com/.
- Scroll down to a section.
- Open a post.
3.b Open another post if you cant trigger the bug, it depends on the post. - Double tap on anything inside the post.
Expected result
- Double tapping should zoom in to the area.
Actual result
- Double tapping zooms in a lot and the whole pages turns white.
Suggested Severity
- I suggest an S2 severity because inside a high traffic top site the feature is not behaving as intended.
Regression Range
- This bug is regressed by bug 1704041.
Additional notes
- If I scroll up or down the white screen disappears but the page is very zoomed in.
This issue was found when verifying and regression searching for bug 1704041.
Assignee | ||
Comment 2•4 years ago
|
||
The page is actually overflow hidden, but it looks like the page js scrolls so it's not at 0,0. Our computed scrollable rect is just the viewport because of the overflow hidden, this confuses the code in AsyncPanZoomController::ZoomToRect.
Assignee | ||
Comment 3•4 years ago
|
||
That's not too hard to fix but there is a flash of content at the wrong scale that happens pretty often still.
Assignee | ||
Comment 4•4 years ago
|
||
(In reply to Timothy Nikkel (:tnikkel) from comment #3)
That's not too hard to fix but there is a flash of content at the wrong scale that happens pretty often still.
I'll fix that in another bug.
Assignee | ||
Comment 5•4 years ago
|
||
In the testcase from the bug we have an overflow hidden document that is being scrolled by the pages javascript. In this case the scrollable rect (aka cssPageRect here) has its position as the scroll offset and the size is the composition size in css pixels. In this case we want to behave as if the scroll position is not movable (since it's not movable by the user), so we only want to be able to zoom to something that is in the visible rect. Staying inside the scrollable rect also makes sense, and we want to do it, for the non-overflow hidden case.
The current code assumes that the scrollable rect starts at 0.
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 6•4 years ago
|
||
Set release status flags based on info from the regressing bug 1704041
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
Comment 9•4 years ago
|
||
Backed out 2 changesets (Bug 1707234) for causing android failures in helper_doubletap_zoom_scrolled_overflowhidden.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/35121ea63b8f7ecc2d7382bd66c1f4ac0802b309
Push with failures, failure log.
Assignee | ||
Comment 10•4 years ago
|
||
These are TV failures, they don't represent actual failures. Tons of tests that are currently in the tree would fail TV spectacularly if you make a no-op change to their test files to trigger a TV job (source, I've done that many times). But they run just fine normally. I'm going to re-land these.
Assignee | ||
Comment 11•4 years ago
|
||
And my try runs which had many more re-triggers than they got on autoland were quite stable.
Assignee | ||
Comment 12•4 years ago
|
||
Looks like it was backed out for a non-TV failure. I'll slightly increase the tolerance for that failure (it only needs to be almost the same).
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/08144201afdc
https://hg.mozilla.org/mozilla-central/rev/9addba951269
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 15•4 years ago
|
||
Comment on attachment 9218087 [details]
Bug 1707234. Don't try to zoom to a rect that is outside of the scrollable range. r?botond
Beta/Release Uplift Approval Request
- User impact if declined: double tap zoom on reddit pages tries to scroll outside visible bounds, generally very bad experience
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): fixes the rect to zoom calculation only
- String changes made/needed:
Assignee | ||
Updated•4 years ago
|
Comment 16•4 years ago
|
||
Comment on attachment 9218087 [details]
Bug 1707234. Don't try to zoom to a rect that is outside of the scrollable range. r?botond
Approved for 89 beta 7, thanks.
Updated•4 years ago
|
Comment 17•4 years ago
|
||
bugherder uplift |
Reporter | ||
Comment 18•3 years ago
|
||
Hello,
I can confirm this is fixed in Firefox 89.0b9 and Firefox 90.0a1 (BuildID:20210506214311) on mac OS 11.3
Description
•