Closed Bug 302486 Opened 19 years ago Closed 19 years ago

Proxy (PAC) edit box plays games with URI fixup while you type

Categories

(Firefox :: Settings UI, defect)

1.5.0.x Branch
x86
Windows Server 2003
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla-mozilla-20000923, Assigned: mconnor)

References

()

Details

(Keywords: fixed1.8)

Attachments

(1 file)

After reading a Hendrix comment
(http://groups-beta.google.com/group/netscape.public.beta.feedback/browse_thread/thread/fe9a13374814216e/a42ec67b5bd4783c#a42ec67b5bd4783c)
I went and tried the proxy/PAC URL box myself in trunk. Oh my was it broken!

It *seems* to be calling URI Fixup and /applying it/ for every character I type.
So I select the box and hit "f" to enter my nice file: URL, and it imediately
changes it to "http://f/". Evil.

This might be useful, and was obviously put in conciously, but doing it on every
character is wrong. I am putting this as major because normal people don't stand
a chance of /using/ this any more - I worked out how to enter a file URL,
millions wouldn't.

It would appear that onsynctopreference is calling it, but I am pretty sure it
shouldn't be doing anything like that while I edit it (at least not on Windows).
I have noticed that for some reason, in Firefox, the onsynctopreference is
called for every character that is typed into a text box. In Thunderbird
however, it is only called when focus moves away from the textbox.
I see this on Mac OS X too (2005-08-03).  I also noticed that it won't let me
delete the characters it automatically filled in until I exit the dialog and
come back in, which makes it even more annoying!
*** Bug 305024 has been marked as a duplicate of this bug. ***
*** Bug 306074 has been marked as a duplicate of this bug. ***
This really needs to be fixed for 1.5.
Flags: blocking1.8b4?
Version: Trunk → 1.5 Branch
Agreed.  We need this fixed.  Copying others who could help fix this.
Flags: blocking1.8b4? → blocking1.8b4+
Assignee: nobody → mconnor
Attached patch fun fun funSplinter Review
So, onsynctopreference fires onchange, so we can't use that.  Fortunately,
we're in a subdialog, so we can hackaround this by using beforeAccept to update
the field and the <preference/>
Attachment #193959 - Flags: review?(vladimir)
Attachment #193959 - Flags: approval1.8b4?
Comment on attachment 193959 [details] [diff] [review]
fun fun fun

r=vladimir
Attachment #193959 - Flags: review?(vladimir) → review+
Comment on attachment 193959 [details] [diff] [review]
fun fun fun

a=caillon.  Thanks for the quick response.
Attachment #193959 - Flags: approval1.8b4? → approval1.8b4+
fixed branch and trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
(fwiw, not an issue in seamonkey, which does this in onblur)
(In reply to comment #11)
>(fwiw, not an issue in seamonkey, which does this in onblur)
No, we use onchange, but we don't have onsynctopreference (instant-apply).
*** Bug 307435 has been marked as a duplicate of this bug. ***
*** Bug 317977 has been marked as a duplicate of this bug. ***
V/fixed. 
FF 3.0.1/macos
I have been doing some feature testing and dogfood, and poking around the code as well.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: