Firefox PAC IsInNet [bugzilla.mozilla.org]

I currently spend most of my time in a corporate network where I have to use a proxy auto-config (.pac) file.

For some time I have been bothered by Firefox 1.0 and 1.5 shortly freezing for no apparent reason. I tried to disable all extensions, removed the Flash and Java plugins, but to no avail. Today, I accessed a domain with a defunct DNS server and Firefox froze for more than just a short moment, giving me an opportunity to track down the problem.

It turns out that this is a known issue, described in Bugzilla #208287. The .pac file I use contains something like this:

for (i = 0; i < cDirectIPs; i += 2)
  if (isInNet(host, DirectIPs[i], DirectIPs[i + 1]))
    return "DIRECT";
  }
return "PROXY 10.0.0.1:3128;";

isInNet(host, NET1, NET2) checks if the host name from the HTTP request is part of numerical subnet 1 or subnet 2. And this is done 16 times for every single HTTP request in this .pac file.

Even one call to isInNet() can be fatal for Firefox. If the DNS server for the host name is not reachable, the call will only time out after a couple of seconds. And during this time, Firefox will be completely unresponsive. No display updates, no response to keyboard or mouse input.

Bottom line: isInNet() should not be used with Firefox, until someone works on Bugzilla #208287.

10:14, 03 Feb 2006 by Carsten Clasohm Permalink | Comments (0)

RSS

Archive

February 2006
S M T W T F S
      3 
10  11 
12  13  14  15  16  17  18 
19  20  21  22  23  24  25 
26  27  28         
September 2008
July 2008
June 2007
May 2007
March 2007
January 2007
December 2006
September 2006
June 2006
April 2006
March 2006
February 2006
January 2006
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
January 2005
December 2004
November 2004
October 2004

Blog Categories

Hiking (5)
Desktop Linux (28)
Server Linux (5)
Palm (3)
Photography (5)
Politics (2)
Web Applications (15)

Notifications

Request notifications

Syndication Feed

RSS

Recent Comments

  1. Anonymous Visitor: Security issue
  2. Anonymous Visitor: Thanks
  3. Anonymous Visitor: AT&T U.S.
  4. Anonymous Visitor: All went well under CentOS 5.0 in Croatia (VIP network)
  5. Anonymous Visitor: tmp crypt not necessary
  6. Anonymous Visitor: Great article
  7. Anonymous Visitor: So it's not a Virus...
  8. Anonymous Visitor: Thanks! Helps also on Windows!
  9. Anonymous Visitor: Thank you
  10. Anonymous Visitor: Economic Incentives