Closed Bug 279844 Opened 20 years ago Closed 20 years ago

URLs with relative anchors loaded in new tabs scroll to incorrect location

Categories

(Camino Graveyard :: General, defect)

PowerPC
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

References

()

Details

Attachments

(1 file)

If you command-click a link that loads a URL with a relative anchor (e.g. the
one in the URL field), when you click on the newly created tab, the page is
often scrolled to the wrong location. This is annoying.
The bug happens because when we make a new tab, we don't size the browser view
up-front. When we resize the browser view when you actually click on the tab, we
then lose the scroll position.
Status: NEW → ASSIGNED
Attached patch PatchSplinter Review
This patch fixes the basic bugs by resizing the BrowserWrapper under two
circumstances:
1. when making new tabs
2. when loading a url into a background tab

The latter required early access to mWindowController, so that is now handed in
at init time, and mIsPrimary checks were added in several other places (which
probably fixes some bugs with background tabs incorrectly messing with window
elements).
Attachment #172408 - Flags: review?(pinkerton)
patch looks good, maybe next time a little more context in the diff would help
me see it more clearly. i agree on the delegate protocol for BWC, it's such a
mess and needs to be broken up, prolly into a few files.
*** Bug 192930 has been marked as a duplicate of this bug. ***
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #172408 - Flags: review?(pinkerton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: