anchor jumps to incorrect position if the link is opened in foreground tab
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr60 | --- | unaffected |
| firefox-esr68 | --- | verified |
| firefox68 | --- | wontfix |
| firefox69 | --- | verified |
| firefox70 | --- | verified |
People
(Reporter: alice0775, Assigned: emilio)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: nightly-community, regression, reproducible)
Attachments
(3 files)
|
369 bytes,
text/html
|
Details | |
|
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr68+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr68+
|
Details | Review |
- setting layout.css.scroll-anchoring.enabled=false fixes the issue.
- Bug 1546027 does not fix this issue.
Reproducible: always
Steps to reproduce:
- Load https://bug1546027.bmoattachments.org/attachment.cgi?id=9059735#anc2
- Ctrl+Shift+Click a link( e.g "Beta") to open in foreground new tab
--- observe scroll position - Ctrl+Click a link( e.g "Beta") to open in background new tab
--- observe scroll position
Actual Results:
anchor jumps to incorrect position if the link is opened in foreground tab.
i.e, the image is displayed partially.
Expected results:
anchor jumps should be correct position even if the link is opened in foreground tab.
i.e, the whole image should be displayed.
| Reporter | ||
Comment 1•6 years ago
|
||
Oops, sorry wrong STR,
| Assignee | ||
Comment 2•6 years ago
|
||
Thanks for filing Alice :)
| Assignee | ||
Comment 3•6 years ago
|
||
We were bailing out because scroll anchoring adjustments can make this check
fail:
| Assignee | ||
Comment 4•6 years ago
|
||
Seems we can leave this node alive for too long if the user scrolls between
domcontentloaded (where GoToAnchor is called) and onload (where ScrollToAnchor()
is called).
Though it seems we can leave it for too long if we don't end up calling
ScrollToAnchor(), the documentation of the method claims that it's cleared
unconditionally.
Depends on D38397
Comment 5•6 years ago
|
||
:emilio, since this bug is a regression, could you fill (if possible) the regressed_by field?
For more information, please visit auto_nag documentation.
Updated•6 years ago
|
Comment 8•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/413557ff3269
https://hg.mozilla.org/mozilla-central/rev/af346beee1df
Updated•6 years ago
|
| Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 9078846 [details]
Bug 1566783 - Don't prevent PresShell::ScrollToAnchor() from working due to scroll anchoring adjustments that happen without the user scrolling. r=dholbert
Beta/Release Uplift Approval Request
- User impact if declined: Scroll to anchor fails when something changes above the anchor node before onload.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0 / comment 1.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): One liner that fixes a scroll anchoring regression that has a couple dupes.
- String changes made/needed: none
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Scroll anchoring regression.
- User impact if declined: See above
- Fix Landed on Version: 70
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): see above
- String or UUID changes made by this patch: none
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Comment on attachment 9078846 [details]
Bug 1566783 - Don't prevent PresShell::ScrollToAnchor() from working due to scroll anchoring adjustments that happen without the user scrolling. r=dholbert
Fixes a scroll anchoring regression which has picked up some duplicate reports. Includes an automated test. Approved for 69.0b9 and 68.1esr.
Updated•6 years ago
|
Comment 11•6 years ago
|
||
| bugherder uplift | ||
Comment 12•6 years ago
|
||
| bugherder uplift | ||
Comment 13•6 years ago
|
||
I’ve reproduced this issue with Fx 70.0a1 (2019-07-17) on Windows 10 x64.
The issue is verified fixed with Fx 70.0a1 (2019-07-29), Fx 69.0b9 (20190730004747) and Fx 68.1.0esr (20190729203625) on Windows 10 x64, macOs 10.14 and Ubuntu 18.04 x64.
Updated•4 years ago
|
Description
•