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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sfraser_bugs, Assigned: sfraser_bugs)
References
()
Details
Attachments
(1 file)
|
13.52 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•20 years ago
|
||
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
| Assignee | ||
Comment 2•20 years ago
|
||
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).
| Assignee | ||
Updated•20 years ago
|
Attachment #172408 -
Flags: review?(pinkerton)
Comment 3•20 years ago
|
||
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. ***
| Assignee | ||
Comment 5•20 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Attachment #172408 -
Flags: review?(pinkerton)
You need to log in
before you can comment on or make changes to this bug.
Description
•