Assigning this to myself for M9...
Ccing troy and setting target milestone to M9... The problem is that when a named anchor target is located offscreen to the right, we go to the right vertical position but do not scroll horizontally. So, the target does not end up scrolling into the viewable region.
Summary: Clicking on a named anchor does not scroll horizontally → [Webshell] Clicking on a named anchor does not scroll horizontally
It seems like we need to change the way nsPresShell::ScrollFrameIntoView works. It always defaults the x coordinate to 0 in its call to the ScrollTo() method. But, the fix is not as simple as using "offset.x" for the x coordinate all the time because we only want to scroll horizontally when the target frame is not visible.
Yes, that's the kind of fix we need. Feel free to assign it to me if you want
Assignee: nisheeth → troy
Status: ASSIGNED → NEW
Summary: [Webshell] Clicking on a named anchor does not scroll horizontally → Clicking on a named anchor does not scroll horizontally
Reassigning to Troy and putting myself on the cc list.
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
Using 8/5 Apprunner, verifying bug fixed - this was an offshoot of bug #3152 which I was assigned QA.
You need to log in before you can comment on or make changes to this bug.