Closed Bug 28428 Opened 25 years ago Closed 24 years ago

Changing font in prefs makes selection in URL bar act weird

Categories

(Core :: DOM: Selection, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: lgonsalv, Assigned: mjudge)

References

Details

Attachments

(2 files)

If you change the font in preferences such that the URL-bar's font changes, 
it'll (incorrectly) use the old width of the URL when handling mouse events.

To reproduce:

1. Type in a URL that only goes about half-way across the URL bar.
2. Change the font to something wider (changed from Courier to Lucida Console).
3. Try and select th end part of the URL by dragging on it with the mouse. Only 
the portion overlapped by the old URL width can be highlighted.

Another related problem is that initially the text in the URL bar is very small, 
but upon changing the font it grows bigger. Even changing it back to what it was 
supposedly set to, it still doesn't shrink. The point size seems to be ignored 
for the URL bar.
Is this at all related to bug 27999? I haven't checked to see if this particular
bug occurs on my system, but they sound similar.
I can confirm this behavior on 2/25/09 M15 nightly build.  I don't think it is
related to 27999.  I think this is the same as 29072.  Changing component to
Selection. Changing description to include the word selection. 29072 should be
marked a duplicate of this bug.  This bug was here first and has better steps to
reproduce.
Summary: Changing font in prefs makes URL bar act weird → Changing font in prefs makes selection in URL bar act weird
*** Bug 29072 has been marked as a duplicate of this bug. ***
confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
duh, changing component.
Component: Browser-General → Selection
man, I can't seem to do it all in one move.  Re-assigning to component owner.
Assignee: cbegle → mjudge
QA Contact: asadotzler → elig
Note, this occurance is much more generalized than just the URL display, if 
you are in a web page that has text entry forms. The specific entry that your 
cursor is in at the moment of font change experiences the same symptoms, but 
non of the other form elements change.
set to M15 for further triage
Eli--is this cross-platform?
Target Milestone: M15
I'm not able to change fonts at all using this morning's Mac OS & Linux builds, 
and therefore cannot determine whether this bug is in fact an issue on those 
platforms.
Err, I take that back. Seamonkey had to be quit and relaunched for font prefs 
changes to take place. Now selection (and page layout) is totally busted. 
OS: Windows NT → All
Hardware: PC → All
using the build from 6 APR on win95, I changed the default font and when the URL 
field updated, the end portion of the URL string did not paint correctly. I 
minimized the window and then reopened and the URL string was displayed 
correctly. I then set the caret to the front of the string and dragged the 
selection to the end of the URL string. As the reporter stated, I could not 
select the end of the URL string, selection stopped where the initial 
string ended (physical position). Mike -- this is what I did:
1. opened mozilla and let the default URL string remain 
(http://home.netscape.com/index1.html)
2. selected Edit|Preferences
3. selected Appearance|Fonts
4. set the default type to serif
5. changed serif font to Lucinda Sans, 16 pt
6. selected ok
Target Milestone: M15 → M17
Is this still happening in HTML text widgets?
* If so, the summary should be changed to avoid confusion with bug 26077.
* If not (i.e. it's just a location bar issue), then this is a dup of bug 26077.
now with ender-lite the url bar is not getting the font changes for some 
reasonl. i will leave this bug to track that new problem.
Status: NEW → ASSIGNED
works for me please retest post ender-lite. gracias
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
*SPAM*: Changing the QA contact of all open/resolved Selection bugs from 
elig@netscape.com to BlakeR1234@aol.com.  After the many great years of service 
Eli has given to Mozilla, it's time for him to move on; he has accepted a 
position at Eazel.  We'll be sad to see him go, and I'll do my best to fill his 
spot...
QA Contact: elig → BlakeR1234
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: