Closed Bug 130448 Opened 23 years ago Closed 23 years ago

urlbar popup mislocated; if url.length > ~170 chars is persisted to 'nc:urlbar-history'

Categories

(SeaMonkey :: Location Bar, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: jrgmorrison, Assigned: hewitt)

References

()

Details

(Whiteboard: [adt2 rtm],custrtm-)

Attachments

(4 files)

If you have a URL showing in the urlbar, and you press Enter in the urlbar, then this urlbar will appear as one of the selections in the urlbar-history popup. (Okay, that part's normal). The bug is: if that URL is fairly long (somewhere more than 170 characters; think bugzilla URLs, shopping URLs, search URLs), then, after that is persisted to urlbar-history, the popup for the history dropdown of the urlbar will be located to the left of the location of the urlbar. (The longer it is, the more to the left it is misplaced, until final it appears flush with the left hand edge of the screen.) Steps to reproduce: 1) shutdown browser; rename localstore.rdf to foo.rdf; startup again (creates a clean localstore.rdf) 2) put the cursor in the urlbar and hit Enter; this puts the url of your home page in the urlbar-history 3) hit history dropdown; note location is ok. 4) click on the URL for this bug (about 202 characters long); put focus in urlbar and hit Enter. Hit history dropdown. Note that it is now located off to the left of its proper location.
nsbeta1, with a tepid recommendation (i.e., it isn't the worst problem in the world, but damn it looks broken).
Keywords: nsbeta1
... but I will note that I "discovered" this in normal use of the browser. I had a newspaper URL that was about this long 'stuck' in my urlbar-history for the past two days with this bug, and the broken popup along for the ride. This isn't the by-product of going off looking for odd bugs :-).
When this occurs, where the URL dropdown appears seems to be about the same no matter where your browser window is positioned. So how far "off" it appears would depend on how close to the left edge of the screen your browser is.
I see this a lot. very visible regression. nsbeta1+
Keywords: nsbeta1nsbeta1+
adt1/1.0, very visible regression.
Whiteboard: [adt1]
Target Milestone: --- → mozilla1.0
*** Bug 132074 has been marked as a duplicate of this bug. ***
I haven't seen this in recent builds. Is anyone else still seeing it?
Yes, I can still reproduce using the url for this bug, and the steps outlined above. (current trunk build win2k)
I can still repro too, but I'm not seeing it in normal use. Is anyone else?
Okay, in _my_ normal use, I will bring up the "New Checkins" link on the mozilla.org home page. At some point, I may set focus in the urlbar and hit Enter to get a newer version of the checkin list. That will trigger this bug. (One may (or probably will) argue that I'm not normal; I plead /nolo contendere/).
lowering impact to ADT2, we may have to suffer with this for beta.
Whiteboard: [adt1] → [adt2]
This bug is not limited to Windows 2000. I'm seeing it both on Windows Me and Linux. I need to change long urls by hand every now and then, so I see this bug quite often. One thing I noticed about the offset: This offset seems to be related to the length of the URL: It seems to be half the difference of URL.length.pixels and Location.window.width.pixels. e.g. URL is 200 pixels, location window is 100 pixels then the location window will be offset (200 - 100) / 2 = 50 pixels to the left of the screen.
What's happening here is that the popup is being positioned so that the entire width of the widest menuitem can fit on screen, as a popup normally would be. However, since we crop the popup with the fit the urlbar width, it shouldn't need to do this. Calculations must be happening in the wrong order.
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
In the case where sizetopopup is specified, I just insist that the popup be aligned with the left coordinate of its parent in addition to having the same width.
Attached patch patchSplinter Review
Hello Joe, your patch did not work for me. The urlbar window still had an offset, now to the right of the screen and sometimes showed up in the upper left corner of the screen. The attached patch (against mozilla-1.0rc1) works for me. My logic is: instead of moving the window away and then moving it back again, prevent the moving in the first place. HTH
There's another issue: Move the browser to the left so that the urlbar is partly off the screen. Then open the popup and it will be positioned at screen coords (0,0). The same happens with the main menu (File, Edit, View ...)
This patch keeps the width if sizedtopopup is set. Additionally it fixes the misplacement bug when the parent was moved off the screen to the left or to the top. This also means that the urlbar and toolbar menus always will be fully visible. IMO it does not make sense to stick to the parent if it's (partly) off the screen.
*** Bug 143100 has been marked as a duplicate of this bug. ***
Yup, this sounds like my bug. I guess I did not find this one in my search. Sorry for the dup.
Comment on attachment 82677 [details] [diff] [review] patch (obsoletes my previous patch) This patch is much better, but can you move this code: + if (tag.get() != nsXULAtoms::tooltip && + nsMenuFrame::IsSizedToPopup(parentContent, PR_FALSE)) into a boolean variable so we don't have to check it twice?
*** Bug 132245 has been marked as a duplicate of this bug. ***
I'd like to request a review of attachment 83036 [details] [diff] [review] Thanks
*** Bug 126124 has been marked as a duplicate of this bug. ***
Comment on attachment 83036 [details] [diff] [review] Compute sizedToPopup only once (obsoletes previous two patches) sr=hewitt
Attachment #83036 - Flags: superreview+
Comment on attachment 83036 [details] [diff] [review] Compute sizedToPopup only once (obsoletes previous two patches) r=ben@netscape.com
Attachment #83036 - Flags: review+
Whiteboard: [adt2] → [adt2 rtm]
fixed on trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified on trunk.
Status: RESOLVED → VERIFIED
*** Bug 125081 has been marked as a duplicate of this bug. ***
nominating for branch landing.
Keywords: adt1.0.0
Using the Mozilla 1.0 Release Candidate 3, I still see this behavior - when is the fix implemented ?
*** Bug 147112 has been marked as a duplicate of this bug. ***
Whiteboard: [adt2 rtm] → [adt2 rtm],custrtm-
Can someone please nominate this for mozilla1.0.1 branch landing? Thanks
adt1.0.1+ (on ADT's behalf) for checkin to the 1.0 branch, pending Driver's approval.
Blocks: 143047
Comment on attachment 83036 [details] [diff] [review] Compute sizedToPopup only once (obsoletes previous two patches) please check into the 1.0.1 branch ASAP. once landed remove the mozilla1.0.1+ keyword and add the fixed1.0.1 keyword
Attachment #83036 - Flags: approval+
Can someone please check this into the branch? Thank you!
*** Bug 148603 has been marked as a duplicate of this bug. ***
fixed on branch.
*** Bug 151702 has been marked as a duplicate of this bug. ***
VERIFIED Fixed 20020711 branch builds
*** Bug 157920 has been marked as a duplicate of this bug. ***
*** Bug 162408 has been marked as a duplicate of this bug. ***
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: