Closed Bug 425146 Opened 16 years ago Closed 12 years ago

Proxy PAC hangs on bad hostname

Categories

(Core :: Networking, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 235853

People

(Reporter: 32768, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008031905 Minefield/3.0b5pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008031905 Minefield/3.0b5pre

When fetching any URL containing a bad hostname (for example, accidentally adding a dot), the browser interface completely freezes for a while.  This freeze seems to last up to 15 seconds, though the UI can go on stuttering for a while.

Example bad hostnames:

http://.google.com/
http://google..com/



Reproducible: Always

Steps to Reproduce:
1. Set up network access via auto-configured proxy script (proxy.pac)
2. Go to http://.google.com/
Actual Results:  
UI freeze, unable to click on anything, for a number of seconds.  Then, UI unfreezes and page starts loading.  It is a page from squid proxy "Invalid URL"

Expected Results:  
The error page from the proxy is shown immediately.
OR
Such a bad hostname should not be sent to the proxy at all.

I am accessing the internet through an auto-configured proxy script (proxy.pac).  I haven't been able to determine if the problem is this proxy configuration yet.  Normal sites load fine.

Hangs but if you avoid the temptation to kill the process it usually goes back to normal after a while.
Severity: critical → major
the PAC file is the reason
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
REOPEN:

Can you attach the pac file, please?
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Attached file proxy.pac file
slightly modified proxy.pac file (for privacy)

The problem may be in the DNS resolution.  Maybe Firefox is/was blocking (appearing to freeze) when the DNS resolution was taking a long time.
Summary: Fetching bad hostname like http://.google.com causes browser to hang for long periods → Proxy PAC hangs on bad hostname
Attachment #379027 - Attachment mime type: application/octet-stream → text/plain
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: