firefox spends lots of time hung
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Fix Released
|
Medium
|
|||
firefox (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
AMD64, Feisty
Firefox spends a lot of time hung. It works normally, it is just that on a fairly frequent basis it hangs for periods of time typically around 15 seconds.
This happens when opening tabs, clicking on links and sometimes just scrolling with the mouse.
If I strace the process then it is this that it hangs on:
futex(
In Mozilla Bugzilla #208287, Maartengeurts (maartengeurts) wrote : | #1 |
In Mozilla Bugzilla #208287, Benc-meer (benc-meer) wrote : | #2 |
yikes. that is one bloated PAC file.
I would guess that you are dying in the javascript execution.
What exactly are you typing. For example, a hostname that does not exist
(nonexist.
Darin: is there a better way of isolating this?
In Mozilla Bugzilla #208287, Maartengeurts (maartengeurts) wrote : | #3 |
If i type :
http://
evertything goes ok. (it says correctly host not found)
if i type
a
evertything goes ok. (it says correctly host not found)
if i type
a.
The browser freezes.
Note that i removed the "automatically add "www" and ".com" setting.
I did some testing with my pac script.If i modify the script and remove the
IsInnet() part in the start it works as expected: (Host a. not found in a popup)
So it freezes on isinNet.
The bug stays: the PAC script should not freeze the entire browser, only the
current connections.
Later i found out this bug is NOT ALWAYS reproducable. It has to do with
something in out network that resolves (??DNS queries??) slowly. When i files
this bug it was always reproducable. Later (with the same mozilla installation)
mozilla only frooze for half a second.
In Mozilla Bugzilla #208287, Darin-moz (darin-moz) wrote : | #4 |
yeah, the problem is that IsInNet function needs to synchronously resolve the
given hostname, so Mozilla ends up locking up the main thread (the thread which
handles browser UI) until the DNS query completes. Since DNS queries can have
relatively large timeouts (on the order of a minute), this can make the user
think the browser has completely locked up. Unfortunately, there is little we
can do about this problem, with the exception that it would be nice if
synchronous DNS queries could be canceled by the user. We could put up a modal
dialog with some sort of status message and a cancel button (if the DNS query
was taking more than X seconds). Such UI work isn't going to happen for
sometime unfortunately.
In Mozilla Bugzilla #208287, Benc-meer (benc-meer) wrote : | #5 |
I don't know if we should do a lot to encourage the use of DNS-calling PAC
functions. Ari Luotonen, the designer of PAC, had said on occassion that he
wanted to end-of-life these functions because the failure conditions caused
excessive delays. Many PAC file writers do not understand DNS well enought to
understand the pitfalls. I saw one large bank call isResolvable() for every
request behind a internal-only DNS server. (If the hostname is not resolvable,
THEN go to the proxy server...)
Probably some better documentation on writing PAC files would be a more useful
solution.
In Mozilla Bugzilla #208287, Darin-moz (darin-moz) wrote : | #6 |
hmm... i see your point, but since it is part of the PAC spec, and since it is
widely used, it would seem like a good idea to do whatever we can to make the
browser UI not hang. i don't think it would be too much work to implement, but
i also don't think it is critical enough to get high priority either. probably
this bug will just sit around for a while until someone has time to implement
it. as for the documentation approach, that should still happen. but, getting
information out to everyone is not exactly trivial either.
In Mozilla Bugzilla #208287, 1212mozilla (1212mozilla) wrote : | #7 |
Duplicate of bug 174733
DNS: hangs on lookups and at various stages of making tcp connections
In Mozilla Bugzilla #208287, Krellan (krellan) wrote : | #8 |
This bug shouldn't just be considered a straight duplicate of bug 174733. It is
true that both bugs stem from the same problem: very poor single-threaded DNS
design, locking up the entire browser during a DNS query. As others have
pointed out, this is hopefully being rewritten for 1.6.
I believe that this bug should remain open to address the PAC issue. If this
issue magically goes away when DNS is fixed in 1.6, that will be great, but this
bug should stay open until then.
In Mozilla Bugzilla #235853, Stewart (stewart-235853) wrote : | #9 |
User-Agent:
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040225
This bug has been split from #224447 as the symptoms are different. I will copy
relevant comments from #224447 into this bug report.
Reproducible: Always
Steps to Reproduce:
1. Go to Preferences, Advanced, Proxies
2. Select "Automatic Proxy Configuration URL"
3. Enter a URL to a valid PAC file
4. Click OK
5. Browse a website (particularly one with many offsite adds/images)
Actual Results:
DNS resolution causes the UI to hang
Expected Results:
DNS resolution should not cause the UI to hang (it doesn't when using either
"Direct connection to the Internet" or "Manual Proxy Configuration")
In Mozilla Bugzilla #235853, Stewart (stewart-235853) wrote : | #10 |
Copied from bug #224447
------- Additional Comment #6 From mike 2004-01-20 17:17 PST [reply] -------
Also experiencing this. Firebird 0.8+ MacOS X
Resolving Host takes about 5 seconds for any page with a new DNS. For example,
if i go to www.google.com, it will hang for a few secs at resolving host before
loading, but then anything i do within google will be snappy. But, say i click
a link from google to another site, it will hang for another few seconds until i
can get into that new site's DNS.
------- Additional Comment #7 From <email address hidden> 2004-02-17 05:38 PST
[reply] -------
This ought to be renamed to "Complete hang when DNS resolving/lookup"
I see this too, but not always (local site dns cacheing?) -- and experienced
this also when using Mozilla.
Note: IE does not hang -- that is, its menus etc still function, it can redraw
etc while the lookup occurs.
(Firefox 0.8, Win2K, via a proxy squid/2.5.STABLE3)
------- Additional Comment #9 From Stewart Jeacocke 2004-02-25 06:30 PST [reply]
-------
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040224
As of 23/02/04 I'm still seeing this bug on the SeaMonkey CVS Tree. The UI
(every windows and tab) is blocked while name resolution is performed. This is a
real PITA particulary for sites which have many adds etc. For example it can
take over 30s for http://
completely hung.
This bug seems to be due to two things
i) The UI is blocked during host resolution
AND
ii) Host resolution in mozilla is sometimes very slow, even when the dns names
have already been cached at a local DNS server. For example I used the "host"
command to resolve all the names required for www.ebay.co.uk and none of them
took longer than 0.05s to resolve
------- Additional Comment #10 From Stewart Jeacocke 2004-02-25 06:42 PST
[reply] -------
This bug is not specific to Firefox. Would it be a good idea to change "Product"
to something other than FireFox?
I've stuck some cout statements at the beginning and end of nsDNSService::
Resolve() [nsDNSService2.cpp] and can confirm that we are inside this method
when the UI hangs.
I'm willing to help track down the cause of this bug (as its making me have to
use Opera ;-) ) but I have no experience with the internals of mozilla so would
need guidance as to where to start looking.
------- Additional Comment #11 From Stewart Jeacocke 2004-02-25 12:56 PST
[reply] -------
It seems that this bug is triggered by something in my preferences. I moved my
.mozilla directory out of the way and let mozilla create a new one. This caused
the bug to disappear (at least on current CVS and mozilla 1.6).
When using my old .mozilla dir (the config the elicits this bug) the method
nsDNSService:
.mozilla from scratch nsDNSService:
calls to nsDNSService:
------- Additional Comment #12 From Stewart Jeacocke 2004-02-25 14:30 PST
[reply] -------
The offending preference is enabling Proxy Auto Config (PAC).
When I enable PAC (set to use a valid remote PAC file) the
nsDNSServic...
In Mozilla Bugzilla #235853, Jason-barnabe-gmail (jason-barnabe-gmail) wrote : | #11 |
Confirming on Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8
In Mozilla Bugzilla #235853, Tingley (tingley) wrote : | #12 |
This is a dup of a bug that was WONTFIX'd about a year and a half ago. The
problem is that DNS resolution run in a PAC file is done in the UI thread,
whereas all normal DNS resolution is done in the network thread itself. I'll
look up the original bug; I seem to remember it being an issue of ugly
architectural issues.
In Mozilla Bugzilla #235853, Tingley (tingley) wrote : | #13 |
It was bug 97605 (the actual resolution was invalid). The "workaround" is not
to use PAC scripts that use dnsResolve().
In Mozilla Bugzilla #235853, Stewart (stewart-235853) wrote : | #14 |
The PAC script in question doesn't use dnsResolve(). But it does use
isResolvable() which I guess may be the culprit. Here is the PAC function
function FindProxyForURL
{
//So the error message "no such host" will appear through the
//normal Netscape box - less support queries :)
if (!isResolvable(
return "DIRECT";
if (isPlainHostNam
dnsDomain
dnsDomain
return "DIRECT";
else
return "PROXY hadron:3128; DIRECT";
}
In Mozilla Bugzilla #208287, Duncan-mcnutt (duncan-mcnutt) wrote : | #15 |
Suggest Keywords: hang nsenterprise verified1.5 verified1.6 clean-report
This happens on dnsDomainIs calls as well. Even simple calls such as:
dnsDomainIs(host, ".domain.local")
will cause the UI to freeeze for several seconds. Source of the proxy.pac is
not an issue.
Test proxy.pac:
function FindProxyForURL
{
if (dnsDomainIs(host, ".domain.local"))
return "DIRECT";
else
return "PROXY 127.0.0.1:8118; DIRECT";
}
In Mozilla Bugzilla #208287, Benc-meer (benc-meer) wrote : | #16 |
Darin landed a re-write, effective in 1.6a, so 1.6 and later should perform
better in some regards.
There are still several ways bad PAC writting can slow down your system.
In Mozilla Bugzilla #208287, Duncan-mcnutt (duncan-mcnutt) wrote : | #17 |
(In reply to comment #10)
> Darin landed a re-write, effective in 1.6a, so 1.6 and later should perform
> better in some regards.
>
> There are still several ways bad PAC writting can slow down your system.
This still happens with 1.6 and 1.7b: use of dnsDomainIs results in complete UI
freeze of 5-10 seconds (non updating windows and background, no response from
mozilla task). So whatever Darin changed, it unfortunatly did not affect this.
System test done on WinXP, 2,8 GHz, 512 MB no other apps running. Tested with
Mozilla 1.6 and 1.7b as well as Firebird 0.8. Removal ov dnsDomainIs(host,
".domain.local") in the "if" call removed the UI freeze problem.
In Mozilla Bugzilla #235853, Benc-meer (benc-meer) wrote : | #18 |
fixed blocks, added depends.
isResolvable() calls dnsResolve()
http://
267 "function isResolvable(host) {\n" +
268 " var ip = dnsResolve(
Chase, is this a won't fix?
In Mozilla Bugzilla #235853, Tingley (tingley) wrote : | #19 |
I'll leave that for someone from Networking to decide, but I think it's a likely
outcome. I'd really like to see it fixed, but last time it was discussed, it
seemed like an arch problem in the worst way.
In Mozilla Bugzilla #208287, Benc-meer (benc-meer) wrote : | #20 |
Duncan:
Thinking about this further, PAC probably cannot send more than one DNS query at
a time (based on the nature of the script activity). The improvement from the
re-write might have been minimal.
However, I think this bug has started to drift. dnsDomainIs() should not cause
the types of delays that isInNet() would, dnsDomainIs() does some string
comparisons. I've started running my mozilla sessions w/ PAC files for
diagnostic testing, and I have not seen delays as you have described. If this
persists in a 1.7b or later build, lets open a new bug.
In Mozilla Bugzilla #235853, Benc-meer (benc-meer) wrote : | #21 |
The reason I'm asking is that I'm about to roll up some network admin docs for
PAC, so if you mark this wontfix, I'll use that as the final state of the bug.
In Mozilla Bugzilla #208287, Benc-meer (benc-meer) wrote : | #22 |
*** Bug 207652 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #208287, Johann Glaser (johann-glaser) wrote : | #23 |
Finally I've tracked down the same problem on my Linux box here. I'm using
Mozilla, Galeon and Epiphany, all suffer the same long delay. IT is quite good
demonstratable on EBay when loading large list of offered articles.
As soon as I remove the isInNet() call from the PAC everything works fine again.
With that call the UI most times (! but not always) freezes for up to nearly 1
minute.
As described below, this seems to come from a synchronous DNS lookup. I can't
understand why waiting for a new page to come blocks the whole UI? At least
since tabbed browsing is available, I thought every page is loaded and displayed
by a seperate thread. And this should eliminate this problem. Even if DNS lookup
is synchronous.
Even if "using isInNet()" is not good practice and the warning for an DNS lookup
for every URL is in the documentation, "isInNet()" is a very handy function and
should not be removed or discouraged. For _every_ URL and every img tag a DNS
lookup is necessary (probably by the Proxy-Server). So it is no problem to do a
DNS lookup by the browser too. BTW: are the results from isInNet() cached somewhere?
The problem is here for Kernel 2.4 and 2.6. (BTW: I've enabled IPv6). I've
installed the mozilla-browser 1.6-5 Debian package (and others).
In Mozilla Bugzilla #208287, Christian Biesinger (cbiesinger) wrote : | #24 |
> I thought every page is loaded and displayed by a seperate thread
the layout code is not threadsafe.
In Mozilla Bugzilla #208287, Christian Biesinger (cbiesinger) wrote : | #25 |
*** Bug 248545 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #208287, Christian Biesinger (cbiesinger) wrote : | #26 |
*** Bug 233366 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Jason-barnabe-gmail (jason-barnabe-gmail) wrote : | #27 |
Are there any workarounds for this? (For example, changing a setting so that the
resolution will give up sooner)
In Mozilla Bugzilla #235853, Airlaplaine (airlaplaine) wrote : | #28 |
This bug is killing me!!! Simply type an URL that won't resolve and all tabs are
locked permentatly. I need to kill process and start all over again. Easily
repeatable on XP running Firefox 1.0
There are some screwing things going on with DNS here, can we please get this
fixed before I'm forced to abandon this browser
In Mozilla Bugzilla #235853, Benc-meer (benc-meer) wrote : | #29 |
Jason: I was reading DNS&BIND the other day for work, and I think some very
modern BIND resolvers allow system-level timeout settings.
The other question is: why are you using this in the PAC file. When I supported
PAC for Netscape, I found only one customer that did this for a good reason, and
that was predicated on a completely bad DNS subdomain strategy that they decided
to re-do, based on this bug.
In Mozilla Bugzilla #235853, Mark-allsopp (mark-allsopp) wrote : | #30 |
Confirm this problem occurs in FF 1.0 release under both XP and Gentoo ith FF 1.0.
The same effect is not noticed in IE, although obviously with it not using tabs
that could just be me not noticing it due to the expectation of a crap UI.
In my case I am using the automagically detect my proxy setting, rather than the
PAC file. The result is the same in that the UI appears to die toally :(
In Mozilla Bugzilla #235853, Bugzilla-mozilla-org (bugzilla-mozilla-org) wrote : | #31 |
benc in comment 11:
> The other question is: why are you using this in the PAC file.
VPN. Specifically, using isInNet(
address blocks, the inverse of "No Proxy for" that can't easily be accomplished
any other way.
To see the full effect of this bug, by the way, try browsing around
http://
Firefox 1.0.4 on Linux, ditto for recent trunk builds.
In Mozilla Bugzilla #208287, Darin-moz (darin-moz) wrote : | #32 |
*** Bug 267023 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #208287, Le-iota (le-iota) wrote : | #33 |
I find no trick in the script in attachment.
See bug:240759 (maybe not the right bug cannot find it there were 2 versions of
the patch :(
It is a DNS cache problem.
I bet there is a famine problem in the fifo algorythm and then even host
resolution is affected that should be why proxies are affected too.
Should I ask for bug:240759 to be reopened or should i fill a new bug report.
I can just try and unbug bug:240759 's patch.
The problem has occured since bug: have been closed and is apparent because of
stability of 1.7 braunch and last trunk of mozilla suite
In Mozilla Bugzilla #208287, Gavin Sharp (gavin-sharp) wrote : | #34 |
*** Bug 298310 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #208287, Jakob-grimstveit (jakob-grimstveit) wrote : | #35 |
A bit surprised that bug 298310 has been marked as a duplicate of this bug - at
least my report was about browser hangs independent of whether it was a valid
DNS address or not - only by using IP's seemed to "dodge" the problem. But hey,
you are the guys plowing the source :-). Just wanted to comment that, if this
action perhaps was an error.
In Mozilla Bugzilla #208287, Christian Biesinger (cbiesinger) wrote : | #36 |
> independent of whether it was a valid DNS address or not
to find out whether it's valid, a DNS request has to be made, no? and that is
what hangs the browser.
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #37 |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
When typing nonexistent address to location bar Firefox 1.0.7 freezes. This
happened also with version 1.0.6.
Reproducible: Always
Steps to Reproduce:
1.When typing nonexistent address to location bar Firefox 1.0.7 freezes
2.
3.
Actual Results:
Firefox freezes.
Expected Results:
"page not found" or something like that.
In Mozilla Bugzilla #309582, Ria-klaassen (ria-klaassen) wrote : | #38 |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050922
Firefox/1.6a1 ID:2005092205
WFM. Does it also happen in the safe mode?
http://
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #39 |
(In reply to comment #0)
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
>
> When typing nonexistent address to location bar Firefox 1.0.7 freezes. This
> happened also with version 1.0.6.
>
> Reproducible: Always
>
> Steps to Reproduce:
> 1.When typing nonexistent address to location bar Firefox 1.0.7 freezes
> 2.
> 3.
>
> Actual Results:
> Firefox freezes.
>
> Expected Results:
> "page not found" or something like that.
This also happens in safe mode.
In Mozilla Bugzilla #235853, Darin-moz (darin-moz) wrote : | #40 |
Can those of you who experienced this bug or are still experiencing this bug, please comment about the behavior with FF 1.5? I did some work on FF 1.5 that should have improved things for the case where the DNS query is made for the hostname passed to FindProxyForURL. Thanks!
In Mozilla Bugzilla #235853, Jason-barnabe-gmail (jason-barnabe-gmail) wrote : | #41 |
Haven't noticed any change. Still hangs for at least a minute.
In Mozilla Bugzilla #235853, Bugzilla-mozilla-org (bugzilla-mozilla-org) wrote : | #42 |
Same here as comment 15.
In Mozilla Bugzilla #235853, Darin-moz (darin-moz) wrote : | #43 |
Jason and Peter, can either of you share your PAC file with me? If you could post it to this bug report that would be ideal. If there is anything sensitive in there, feel free to replace it with random characters or whatever... I just want to get a sense for the kind of function calls made by your PAC scripts. Thanks!
In Mozilla Bugzilla #235853, Bugzilla-mozilla-org (bugzilla-mozilla-org) wrote : | #44 |
Pretty straightforward as far as I can tell:
function FindProxyForURL
{
if(
)
{
}
else
{
}
}
I have another one that basically reverses the DIRECT and PROXY return values.
In Mozilla Bugzilla #235853, Jason-redhat (jason-redhat) wrote : | #45 |
I no longer have the PAC file I was having this trouble with; I worked around it by just proxying based on the domain name rather than trying to be clever about only proxying unresolvable hosts.
In Mozilla Bugzilla #235853, Mbrown-gatewayk12 (mbrown-gatewayk12) wrote : | #46 |
Here is my pac file. Right now I have some debug code in there to show that there is a several second delay when resolving a new DNS name but the delay is there regardless if I have dnsResolve there or commented out. So it almost seams like it is doing a DNS lookup in the UI code. Also adding my debug code does not slow it down any. So if I have to guess I would say that there is a DNS lookup sometime after the function FindProxyForURL is called.
PS I am using FF 1.5.0.1 on Win XP.
function FindProxyForURL
{
//#######
//#Debug#
//#######
var time = new Date();
sec1=time.
milli1=
remoteIP=
var time2 = new Date();
sec2=time2.
milli2=
alert(host+" Resolved to "+remoteIP+" in "+(sec2-
//###############
//#Local Network#
//###############
if (isInNet(host, "10.0.0.0", "255.0.0.0")){
return "DIRECT";
}
//#########
//#Library#
//#########
if ( host == "auth.somesite.com" ||
host == "search.
host==
return "DIRECT";
}
//#########
//#Default#
//#########
return "PROXY proxy.ourdomain
}
In Mozilla Bugzilla #235853, Darin-moz (darin-moz) wrote : | #47 |
Have you changed the "network.
In Mozilla Bugzilla #235853, Darin-moz (darin-moz) wrote : | #48 |
Ah, nevermind. I know what the problem here is. We need to teach the IOService + HTTP protocol handler how to use nsIProtocolProx
In Mozilla Bugzilla #235853, Darin-moz (darin-moz) wrote : | #49 |
We already have code in the HTTP channel that uses AsyncResolve during startup before the PAC script is loaded, and we might be able to extend that to work here. Not sure yet.
In Mozilla Bugzilla #235853, higuita (higuita) wrote : | #50 |
any change of being fixed still in versions 1.x?
we want to deploy firefox for all company, but we use a .pac to bypass the proxy when it resolves to a local IP, that is hard to workaround by domain names because a we have a division that develop sites, so they always have new domains... keeping add this new domains for firefox to work well will be a hell...
So this bug seens like a blocking bug for us...
my .pac is basically close to comment #18
In Mozilla Bugzilla #309582, Tanard (tanard) wrote : | #51 |
Same bug for me :
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
I'm currently behind a SQUID proxy, but I have the same freezes at home with direct connection.
Tested in both safe and normal modes.
The freezes last for 20-40 seconds, and then FF continue to work as expected.
In Mozilla Bugzilla #208287, higuita (higuita) wrote : | #52 |
i had to work around this by adding all internal domains to the proxy.pac (boring, but works) and using regexp url checks for the situations where someone puts the IP directly (shExpMatch)
In Mozilla Bugzilla #208287, Rnicoletto (rnicoletto) wrote : | #53 |
Can I bypass the problem by using a local DNS server on my PC??
Can I bypass the problem by using a local proxy (es. Privoxy) on my PC??
In Mozilla Bugzilla #208287, higuita (higuita) wrote : | #54 |
>Can I bypass the problem by using a local DNS server on my PC??
No, it blocks trying to find the DNS, and its the remote DNS server, authority for the zone/domain that you want that is taking longer to respond.
The local dns would cache more queries and so may solve later queries to the same zone/domain, but you will get this on the firsts DNS resquests for each new zone/domain
>Can I bypass the problem by using a local proxy (es. Privoxy) on my PC??
if you are using the IsInNet, no... the browser is waiting for the result of the DNS do know what the result of IsInNet, to know what proxy will use (even if in the end you will only use one)
the only workaround that i found is to remove the IsInNet and test for other things, like checking for isPlainHostName, checking the local domains, then check if the regexp of the url have my ip address range
all this tests are fast and dont use the DNS... this works but its a pain and might not even be possible for some requirements
the but here is the freeze of ALL browser, instead of just the page that is waiting for the DNS
ps: the OS should be set to ALL
In Mozilla Bugzilla #208287, Christian Biesinger (cbiesinger) wrote : | #55 |
yes, of course it hangs all windows/tabs. it's all the same thread.
In Mozilla Bugzilla #235853, Covex (covex) wrote : | #56 |
Is not fixed even in 2.0... :(
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #57 |
It's clearly not fixed -- the bug is not "RESOLVED FIXED".
Someone might need to step up and do what Darin suggests...
In Mozilla Bugzilla #235853, Covex (covex) wrote : | #58 |
The UI is also freezing when FF is first connected to network that uses PAC proxy, but then you change the network to one without PAC proxy. Then you have to wait very long time before FF finds there is no proxy.
The cause of this is probably same.
In Mozilla Bugzilla #235853, Aperion (rethnor) wrote : | #59 |
(In reply to comment #26)
> It's clearly not fixed -- the bug is not "RESOLVED FIXED".
>
> Someone might need to step up and do what Darin suggests...
>
I can confirm that this hasn't been fixed in 2.0.0.1 and has been bugging me for the last 2 years...
I'd love to work on this bug but I've never done any development for mozilla or the open source, but yes I know how to program. So I'm willing to make a stab but can't make any promises on success or follow through.
In Mozilla Bugzilla #235853, A-sloman (a-sloman) wrote : | #60 |
I think I have been a victim of this bug for several months, using Firefox
on linux (currently Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20061010 Firefox/2.0 running on Fedora Core 6).
When I work on this machine at home, using cable service provider, everything works fine most of the time.
But occasionally I use the the 'automatic proxy configuration option' to go via the proxy server at my university in order to gain access to research stuff on the web. For some web sites everything works, but a little more slowly.
Sometimes however, the delay is excessive, and then everything concerned with firefox freezes. I cannot change tabs, abort the lookup, or open a new window. Then either I have to wait until the web page is retrieved, or the lookup fails. That can take so long that I sometimes end up having to kill firefox, which can be a real pain, as it sometimes has has several windows and tabs open recording things I was doing.
If, as someone else said, Opera does not have this problem, then presumably it should be fixable in Firefox. I presume it means that all lookups have to be
done in such a way that other interactions are never blocked.
Sorry I can't help with debugging etc. I try to help with promoting FF,
but will have to be cautious about doing that while this bug persists
as it is disastrous.
In Mozilla Bugzilla #235853, devodl (devodl) wrote : | #61 |
<p>It sound like Darin <a href="https:/
<p>I voted for it as a bug, you should <a href="https:/
<p>Bugs like this definitely keep Firefox from being accepted much less being adopted in the corporate world...</p>
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #62 |
Steve, Darin is not really working on this stuff now. And please, no HTML in comments. It makes them _very_ hard to read with all those '<' and '>' all over. ;)
In Mozilla Bugzilla #235853, devodl (devodl) wrote : | #63 |
My apologies to everyone about the HTML in the posting. I saw href links in previous postings and attempted to provide the same for convenience.
I couldn't find the link for the "preview" page :-)
In Mozilla Bugzilla #235853, Benjamin Smedberg (Mozilla) [:bs] (benjamin-smedbergs) wrote : | #64 |
Not a blocker, but we'll take a patch for 1.9 if it appears.
In Mozilla Bugzilla #235853, Sergio-correia (sergio-correia) wrote : | #65 |
I hate this bug with all the strength of my soul. Heck, I'm even considering quitting my job, buying a C++ book, learning it, finding where the bug is, and patching it. That, or switching to opera.
Please, VOTE for the bug to be fixed.
In Mozilla Bugzilla #235853, Jason-barnabe-gmail (jason-barnabe-gmail) wrote : | #66 |
As a workaround, what I did was download the PAC script I use, commented out lines containing isInNet and sites I never visit, saved it locally, and configured Firefox to read from my local file.
In Mozilla Bugzilla #235853, Petef47 (petef47) wrote : | #67 |
I use FF 2.0.0.1, and my UI is hanging a lot, with a similar (but not the same) cause and symptoms. Please let me know whether you think I should open a new bug.
The cause is that the company I work for now requires all Internet access to be through a proxy, and so I have entered the proxy's details in the "Manual proxy configuration" section of the Connection Settings (as opposed to "Automatic Proxy Configuration URL" which this bug has been about so far).
The symptoms are that most Web page loads cause the UI to hang, even if I have just loaded a page from the same website (as opposed to only pages "with a new DNS", which is what Comment #1 says).
It may be that this is exactly the same underlying issue as reported above but that the proxy I have to use is poorer quality than most. But I don't think the UI should hang even if the proxy is causing trouble.
Typically I will click on a link or type in an address, and then have to wait from 5 seconds to 5 minutes before I get my UI back. This hang time may include very brief lapses - just enough for most of the page to load, for example.
Sometimes a single website will start to work properly for a while, with pages loading quickly and no hanging at all, but it could at any moment regress and start hanging again.
The only entries in my "No Proxy for" section are 'localhost', '127.0.0.1', and one other specific local address, and yet most of my company's websites (both local and public), such as www.atosorigin.com do not have this hanging problem. So presumably the proxy is configured to treat these sites differently (or maybe they're just faster?), and this is being reflected in FF's behaviour.
For the record, I found bug #306922, which seems similar, and has a comment that it may be a duplicate of this one.
I also looked at bug #224447 (from which this one split) and its chain of duplicates bug #188332 and bug #240759, but I don't know how much use those are.
In Mozilla Bugzilla #235853, higuita (higuita) wrote : | #68 |
Peter: i think your problems maybe related to some extension, as it seens a DNS problem...
you probably dont have access to a internet capable DNS server, only your internal DNS and maybe some extensions is trying to resolve the hostnames all the time...
try to use firefox in safe mode
also, try to ping a server and see how much time it takes to resolve (or if resolves)
other ideia might be the 127.0.0.1... it might force firefox to resolve the hostname to check if it is 127.0.0.1... try to put only hostnames, no IPs
In Mozilla Bugzilla #235853, Mihabo (mihabo) wrote : | #69 |
It is a standard practice in our company to use Automatic Proxy Configuration especially because of the VPN and many company locations.
And it's a pity for such a good browser to hang all browser instances and tabs if by mistake a wrong URL was typed in the address bar.
I have no such problem with Opera for example.
In Mozilla Bugzilla #235853, Petef47 (petef47) wrote : | #70 |
Thanks Daniel for your suggestions. The behaviour has now changed; hopefully this will let us work out exactly what is causing the problem. I will investigate futher and report back here.
In Mozilla Bugzilla #235853, Petef47 (petef47) wrote : | #71 |
Actually it seems the change of behaviour I reported in Comment #39 was a co-incidence. I have removed all entries from the "No Proxy for" section of my connection settings, and I now normally use Safe Mode (even though the only add-ons I have are the DOM Inspector, Talkback, the British English Dictionary and the default Firefox Theme). Also I am now at 2.0.0.2.
None of these factors seems to make any difference to the problem, which is actually intermittent. Occasionally there are periods where everything works fine (and hence my Comment #39), but 95% of the time I get the hanging.
So I presume the problem is related to the proxy. But I don't think the UI should hang - even if the proxy is causing trouble.
If anyone isn't clear, I have screenshots to show what actually happens. I can also supply some full ping results (as suggested in Comment #38), but in summary I think they show that DNS is working ("Pinging recluse.mozilla.org [63.245.208.164]") and that my company is blocking ping ("Destination net unreachable." or "Request timed out.")
Do you think this is the same underlying issue as reported above? (and described in Comment #3 as "ugly architectural issues") Or shall I open a new bug? I would be glad to investigate this further in conjunction with someone who knows what they're doing; I could run debuggers, system performance monitors, or anything that would help.
Roger Binns (ubuntu-rogerbinns) wrote : | #72 |
AMD64, Feisty
Firefox spends a lot of time hung. It works normally, it is just that on a fairly frequent basis it hangs for periods of time typically around 15 seconds.
This happens when opening tabs, clicking on links and sometimes just scrolling with the mouse.
If I strace the process then it is this that it hangs on:
futex(
In Mozilla Bugzilla #208287, Mikel Ward (mikelward) wrote : | #73 |
I did some timings using dnsResolve(), which seems to be what isInNet() calls if it's passed a host name rather than an IP address.
On my system, it takes almost exactly 15 seconds to give up trying to resolve a host name that doesn't exist (one where an nslookup on the Windows command line would say "DNS request timed out" rather than returning an IP address). During this time, Ethereal/Wireshark shows 8 attempts to resolve that name.
Why would Firefox be re-trying the request? If it gave up after the first attempt failed, the effect would be reduced substantially.
In the mean time, at least I've learned of the problems with isInNet, so I'll use a single call to dnsResolve() then pass the IP address result to each isInNet() test.
In Mozilla Bugzilla #208287, Mikel Ward (mikelward) wrote : | #74 |
It looks like my proxy is really broken. When I set timeout to 30 seconds in nslookup, it still times out without receiving any response from the server.
After running Wireshark a while longer, I do finally get a matching response from the DNS server, a "server failure" (SERVFAIL?) after about 90 seconds.
I think the "multiple attempts to resolve the name" are the TCP/IP stack resending the same packet, as the DNS Transaction ID stays the same for 5 packets, I can't see an ACK, and the timings are 0, 1, 2, 4, 8, which looks like TCP/IP exponential back-off.
It would be nice if Firefox handled this better, but it's clear where the real problem lies!
In Mozilla Bugzilla #208287, Nicolas-mailhot-laposte (nicolas-mailhot-laposte) wrote : | #75 |
(In reply to comment #28)
> It would be nice if Firefox handled this better, but it's clear where the real
> problem lies!
Nope
Too many people reported the problem - that means Firefox expectations are wrong period
Markus Thielmann (thielmann) wrote : | #76 |
Thanks for taking the time to report this bug and helping to make Ubuntu better.
This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers.
You can learn more about finding the right package at https:/
I have classified this bug as a bug in "mozilla-firefox".
Changed in firefox: | |
assignee: | nobody → mozilla-bugs |
In Mozilla Bugzilla #208287, Gavin Sharp (gavin-sharp) wrote : | #77 |
*** Bug 381543 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #309582, Steve-england (steve-england) wrote : | #78 |
Reporter, do you still see this problem with Firefox 2.0? If not, can you please close this bug as WORKSFORME. Thanks!
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #79 |
Hello! Yes, the same issue occurs with version 2.0.0.4. My friends also have this problem so it's not related with one client.
In Mozilla Bugzilla #309582, Steve-england (steve-england) wrote : | #80 |
Janne, what version of firefox are you currently using? (You can do Help > About and copy and paste the user agent string here (starts with 'mozilla').
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #81 |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
In Mozilla Bugzilla #309582, Steve-england (steve-england) wrote : | #82 |
Thanks. Are you also behind a proxy like the person in comment 3?
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #83 |
Yes, I am. If I use "Direct connection to the Internet" option it seems to be working without these annoying freezees. I have to try this at home. I cannot access the Internet here if I use no proxy. Interesting...
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #84 |
It works just fine without proxy!
In Mozilla Bugzilla #235853, Anthony-riskmetrics (anthony-riskmetrics) wrote : | #85 |
Created an attachment (id=267425)
Improper connection settings UI
There is one other thing related to this bug. Sometimes when this proxy-hang happens firefox crashes, and the Network Connection Settings UI becomes unusable - see attached screenshot. Each time this happens I simply re-install firefox and it comes back to normal. It'd be nice if when network connection info is compromised UI didn't hose itself.
John Vivirito (gnomefreak) wrote : | #86 |
Can you please attach the full strace you ran on it so we can see what needs to be looked at more in depth? What version of firefox and ubuntu is this on?
Changed in firefox: | |
status: | Unconfirmed → Needs Info |
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #87 |
I can acknowledge this bug!
- I'm using an automatic-
- If I've entered a static proxy within the configuration fields or disable the proxy use, this bug/freeze does NOT appear for me.
So this freeze ONLY appears using the automatic proxy-configuration possibility.
This bug/behaviour is reproducible every time I try it.
I'm using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #88 |
Seems that there are a lot of people having this kind of problem:
https:/
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #89 |
I have one more hint:
If I enter within the url-bar:
www.google.domain <- this does not freeze firefox
www.google.d <- firefox freezes
Don't know exactly why it freezes at the 2nd version but not at the first.
In Mozilla Bugzilla #309582, Janneo (janneo) wrote : | #90 |
I'm also using automatic proxy configuration script.
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #91 |
Another hint could be that I'm using Windows. A colleague tested it with Ubuntu Linux and no freeze appeared.
So I think that this phenomenon only appears with Windows OS.
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #92 |
Nothing new?
What else do we have to report to get this status "confirmed"? This is a really bad matter which makes it difficult for companies to use firefox in combination with an automatic proxy-configura
In Mozilla Bugzilla #309582, Steve-england (steve-england) wrote : | #93 |
Please test with a trunk build:
- http://
If the problem still happens there, i'll punt this bug over to Core:Networking, but I'm hesitant to set this to NEW since I have no way of reproducing the problem myself.
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #94 |
Perhaps you can repoduce it like is:
Add this file to your as your "automatic proxy configuration url":
http://
No surf to sites like:
http://
http://
With this "short" testfile the freeze isn't as long as with a more complex and long file... perhaps dns problems? timeouts?
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #95 |
I've tested it with the latest trunk. There's the same behaviour as with version 2 of firefox...
In Mozilla Bugzilla #309582, Steve-england (steve-england) wrote : | #96 |
So could this either be a direct dupe of bug 235853, or a dupe of one of the dependancies off of bug 79893?
In Mozilla Bugzilla #235853, Bugzilla-realriot (bugzilla-realriot) wrote : | #97 |
I come from bug: https:/
Bug is still active on:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
In Mozilla Bugzilla #309582, Bugzilla-realriot (bugzilla-realriot) wrote : | #98 |
I really found a workaround for this problem:
Use your wpad.pac file like this:
function FindProxyForURL
{
if (isResolvable(host)
{
<... your stuff ...>
} else
return "DIRECT";
}
This works for me...
Greets
Sascha
In Mozilla Bugzilla #235853, Michael Mauch (michael-mauch) wrote : | #100 |
Thank you, Sascha! Your workaround works for me.
function FindProxyForURL
{
<... your stuff ...>
}
The only remaining problem is the fact that "<... your stuff ...>" is normally pulled from a web server, and it might change. Apparently there is no include statement for these proxy.pac files, so I would need to find someone who could change the official company proxy.pac. And then tell them to look at this bug and please change that pac file accordingly.
So, could something like this be put into the Firefox source? Try to resolve the hostname just before calling that FindProxyForURL() function?
Or wouldn't that help?
Regards...
Michael
In Mozilla Bugzilla #309582, Kwyxz (kwyxz) wrote : | #101 |
> So I think that this phenomenon only appears with Windows OS.
Unfortunately it does not, I'm running Linux and I've been experiencing freezes due to automatic proxy settings (even with existent adresses) in the location bar for 2 years now.
In Mozilla Bugzilla #235853, Jason-redhat (jason-redhat) wrote : | #102 |
(In reply to comment #44)
That default wouldn't work because, for instance, I would like to use a proxy only for unresolvable hosts (because they are internal hosts that I need to access through an ssh-port-forwarded proxy).
Roger Binns (ubuntu-rogerbinns) wrote : | #103 |
The versions are at the top. Ubuntu version is Feisty on AMD64 and Firefox is whatever is current (2.0.0.4)
The hangs are random and not too frequent so I never know when they are going to happen and running firefox for days under strace just isn't feasible.
My current theory is that this is caused by garbage collecting the flash plugin. I think it happens some time after I have used a page with flash and then go onto several others. After a certain amount of time or pages the page that had flash is presumably removed in some way and closing the flash plugin is what hangs the browser for several seconds.
Roger Binns (ubuntu-rogerbinns) wrote : | #104 |
Scratch the flash theory - I have found the definitive cause.
It occurs if you are using a proxy server. If the proxy server takes a long time to respond to a request then firefox completely hangs. For example right now my ISP is dead (I am using neighbour's wireless to send this). So my internal proxy server takes several minutes to respond to a request as it does dns lookups that ultimately fail and then an error message is returned. The entire firefox interface freezes while waiting on the proxy.
For example I had about 10 tabs open and killed firefox. I then told it to restore my session and it took about 5 minutes before the window even appeared. Each tab was blank and clicking had no effect. It then took about another 5 minutes before tabs slowly started filling with the error content from the proxy server. I still couldn't interact with firefox. I then changed the config to use direct connections and killed/restarted the browser. Firefox still tried and failed to contact the sites, but I could at least use the interface and jump amongst the tabs.
The evidence points to the firefox UI hanging whenever waiting on a proxy connection.
In Mozilla Bugzilla #309582, Mak77 (mak77) wrote : | #105 |
*** Bug 374763 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Artem (artem-marchenko) wrote : | #106 |
Particularly difficult case for this bug - http://
It usually takes some 30 secs to load on my mega-powerful double Xeon 2GHz with 2 gigs of ram. And most of these 30 secs the Firefox is not responsive.
Originally I blamed http://
In Mozilla Bugzilla #235853, Samuel Sidler (samuel-sidler) wrote : | #107 |
*** Bug 391682 has been marked as a duplicate of this bug. ***
Jen Ockwell (rj-ockwell) wrote : | #108 |
Are you able to attach the full strace?
Roger Binns (ubuntu-rogerbinns) wrote : | #109 |
No I can't since I can't predict when it will happen and constantly running under strace is not feasible. It hasn't happened to me recently.
Dave Gilbert (ubuntu-treblig) wrote : | #110 |
I've also seen this (on Debian Iceweasel) - and hadn't figured out that it was the proxy; looking through the Mozilla bugzilla there seem to be a lot of
proxy related hangs:
https:/
https:/
https:/
A lot of them seem to be related to doing a DNS lookup so that the PAC script can check by IP address rather than name which is very useful.
Do you use a PAC file or specify the proxy directly?
IMHO this is a major problem in office situations.
Dave
Roger Binns (ubuntu-rogerbinns) wrote : | #111 |
I have had this both with specifying a proxy directly and via a pac. I use isInNet and and shExpMatch when I use my pacs. I also run my own dns server so there shouldn't be an issue with resolving names (although I believe neither of those functions resolve them).
In Mozilla Bugzilla #235853, Bugzilla-tuxmachine (bugzilla-tuxmachine) wrote : | #112 |
downstream dupe with some more comments:
https:/
Dave Gilbert (ubuntu-treblig) wrote : | #113 |
Jeremy on #mozilla suggested I paste this link to a selection of known 'Firefox hangs':
That one points to the PAC problem in particular - but it sounds like that isn't what you have
if it also happens without a PAC; when you use it without a PAC what do you use for the rest of
the settings; I just wonder whether you have any IPs in the proxy avoid list (I don't know if FF does a resolve for those).
Dave
Roger Binns (ubuntu-rogerbinns) wrote : | #114 |
I was fortunate enough to be on a tropical island with truly awful Internet access (some satellite, lots of latency, sharing with skype users!, periods of several minutes when DNS servers didn't respond at all according to wireshark) and no proxy server configured. When the ISP's DNS servers decided not to respond, firefox (gutsy beta as of two weeks ago) would do this hanging stuff as well.
This implies that there are other places synchronous DNS lookups are being done which can also hang the interface.
Alternatively maybe it is an extension such as Adblock Plus which I happen to be running everywhere.
Dave Gilbert (ubuntu-treblig) wrote : | #115 |
Are you suggesting stranding the firefox developers on a desert island until they fix the problem? :-)
Roger Binns (ubuntu-rogerbinns) wrote : | #116 |
Sounds like a TV show. Strand them on a desert island until they fix *all* the problems. With only a limited supply of food, water, beer and their wits to keep them going.
In Mozilla Bugzilla #235853, Don-oles (don-oles) wrote : | #117 |
I wonder if it will ever be fixed. Seems like devs completely ignore this issue.
In Mozilla Bugzilla #235853, Incoming (incoming) wrote : | #118 |
Just for the record, this bug is affecting Firefox 3.0 Beta 1 as well. I tried it today and the UI completely blocks when it is accessing the proxy. Again, this will likely affect any enterprise users behind proxies with proxy scripts. As far as I know that would be just about any fortune 500 company.
Neither internet explorer 6 nor safari 3.0.4beta have this issue on my laptop. Nor does the problem surface when browsing outside the corporate intranet.
Worst case for this bug is pages with content from various sites that each need to be resolved by the script. I've seen the browser block UI for 10-20 seconds on such sites which is of course totally unacceptable.
I'm afraid this bug has joined the ranks of ignored bugs. If a moz developer is reading; please do something with this bug because this makes Firefox suck big time in Nokia.
In Mozilla Bugzilla #235853, Mozilla-treblig (mozilla-treblig) wrote : | #119 |
I agree this really needs some work; the problem can be worked around by reworking your proxy.pac to do everything using regexp on the names rather than resolves; but this is a big job and can end up with a very complex pac depending on your network.
It also means that when dropping Firefox into an organisation which is using something else it makes Firefox look really bad, and since it isn't obvious it is a .pac issue it just means Firefox looks slow and clunky.
Dave
In Mozilla Bugzilla #235853, higuita (higuita) wrote : | #120 |
when i changed work, i arrived to a company that used a .pac that blocked firefox and because of this, almost no one used firefox...
i fixed the .pac and right now, most web developers use firefox (a great thing for compatibility of our sites) and several people in all departments started using firefox.
this is great, but only the admins could change the .pac and none of then knew about this problem, or even cared about it, so all users couldnt do anything to fix this, other than download the pac and fix it... of course, almost no one know how to do it.
this bug is a big problem because only companies and ISPs use .pac files, and user that use this pac arent tecnical enough to find and workaround the problem.
in the end, this people will not use firefox because it is slow.
waiting for ISPs and companies to fix their .pac will take ages, assuming that it will be fixed at all!!
+ wanted1.9 would be nice, but this needs to be fixed, the sooner, the better
In Mozilla Bugzilla #235853, A-sloman (a-sloman) wrote : | #121 |
(In reply to comment #52)
> this bug is a big problem because only companies and ISPs use .pac files
Not so: I work in a university (www.cs.bham.ac.uk) and we have the same problem.
This bug seems to me to have much higher priority than some other things that have been changing in firefox.
Unfortunately I don't have the technical knowledge to work on it.
Aaron
In Mozilla Bugzilla #235853, Vseerror (vseerror) wrote : | #122 |
is bug 306922 a dupe as suggested in it's comment 11?
In Mozilla Bugzilla #235853, RalfG (ralf-skolelinux) wrote : | #123 |
I can confirm this bug, using Firefox 2.0.0.11 for windows or Iceweasel for Debian in combination with a Debian Edu/Skolelinux setup (WPAD on Tjener, auto detection of proxy set on). Slightly disturbing for power users that are used to immediate reaction of firefox. I agree that this bug is of high priority.
Roger Binns (ubuntu-rogerbinns) wrote : | #124 |
I figure you may as well close this bug. The symptoms persist and 2.0.0.11 was a major downgrade in stability for me. Several times a day I now have to run `killall firefox-bin` and then start it up again. However I doubt Ubuntu developers are going to spend any time on this, and Firefox developers won't care pointing at the imminent 3.0 release instead.
Dave Gilbert (ubuntu-treblig) wrote : | #125 |
I'd prefer that this was NOT closed; as far as I understand from the mozilla org bugs it's still present in 3.0
In Mozilla Bugzilla #235853, Timeless-bemail (timeless-bemail) wrote : | #126 |
the only fix i can see is moving pac resolving off the main thread. JavaScript is not in any particularly good position to store state so that a caller can resume execution when it has the answer it needs. OTOH, if the JavaScript runs on a different thread, this problem magically goes away.
ralfg: if it's of high priority to you, then either write a patch, or find someone who's willing to accept your payment to write a patch.
You're supposed to read "Bugzilla Etiquette" <https:/
In Mozilla Bugzilla #235853, Jay Faulkner (jason-oldos) wrote : | #127 |
Confirming that this bug still exists on Firefox 3 Beta 2 for Windows Vista.
In Mozilla Bugzilla #235853, Abelau+mozilla (abelau+mozilla) wrote : | #128 |
it's a fairly annoying bug that prevent many corporate users from using mozilla unfortunately.
As Dr. David and Daniel mentioned, there is a workaround by fixing the pac file. wonder if anyone is kind enough to write an example for this workaround?... before the bug is fixed hopefully... thanks
In Mozilla Bugzilla #235853, Jay Faulkner (jason-oldos) wrote : | #129 |
The workaround does /not/ work. It only prevents *nonexistent* domains from slowing down Firefox. Any site which has slow DNS (or if DNS servers for your network are slow) will still lock the UI until it resolves.
In Mozilla Bugzilla #235853, Don-oles (don-oles) wrote : | #130 |
function FindProxyForURL
{
if (dnsDomainIs(host, ".mydomain.com"))
return "DIRECT";
else
if (isPlainHostNam
return "DIRECT";
else
if (host == "localhost")
return "DIRECT";
else
if (shExpMatch(host, "127.*"))
return "DIRECT";
else
if (shExpMatch(host, "10.0.0.*") )
return "DIRECT";
else
return "PROXY 10.0.0.1:3128";
}
This way no DNS queries are done during proxy resolution.
In Mozilla Bugzilla #235853, higuita (higuita) wrote : | #131 |
correct, the posted workaround works fine, Jason may have tried a bad workaround, using this was the dns code that locks the firefox doesnt run. any site with slow or no dns will be slow, but JUST for that tab, not all firefox like this bug.
i use a little more elaborate code, but might be useful for those with less proxy.pac knowledge:
if ( isPlainHostName
shExpMatc
shExpMatc
shExpMatc
shExpMatc
dnsDomain
dnsDomain
) { return "DIRECT"; }
else if ( shExpMatch(url, "*10.10.*") ||
){
if ( isInNet(host, "10.10.0.0", "255.255.0.0") ||
) { return "DIRECT"; }
else { return "PROXY proxy:3128"; }
}
else { return "PROXY 10.10.0.241:8080"; }
note that my code DOES check for the DNS, but only if the URL have some kind of IPs... i do this because i have a internal server with a IP in the URL (not in the host part), so i assume that might also happens in the net... during this years i only found one public server with a url with a internal IP.
neverless, i have a internal DNS that resolves those private IPs, so i get no slowdown... but you can remove that isinet code and it works fine also.
higuita
In Mozilla Bugzilla #235853, georgi (guninski) wrote : | #132 |
this bug turned in search for "wpad"
seamonkey trunk tries to resolve |wpad.localdomain| on visiting any url - checked with sniffer on localhost.
is this normal?
if it resolves because of malicious name server will it override proxy prefs - in this case bug should be filed.
In Mozilla Bugzilla #235853, Fedora-fonts-bugs-list (fedora-fonts-bugs-list) wrote : | #133 |
(In reply to comment #62)
> this bug turned in search for "wpad"
But it's not about the wpad protocol. Open another issue if you care about it
(look up WPAD on wikipedia to see what's it about before)
In Mozilla Bugzilla #235853, georgi (guninski) wrote : | #134 |
sorry for the bugspam. the new stuff is Bug 421490
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #135 |
Created an attachment (id=311399)
resolve non-blocking, and if we block defer until later
biesi pointed me in this direction. I'm spinning a try server build shortly, and writing tests, just throwing it up here for now.
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #136 |
(From update of attachment 311399)
This passes a bunch of manual testing (including network removal, proxy being down, etc.) and the PAC parts of the existing necko tests. I'd like to get this into b5, and I'll work on unit tests for the specific newChannel cases later this week!
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #137 |
Hrm, so... this patch means that for FTP (and Gopher ;) ) we wouldn't use a proxy when PAC is selected. That doesn't seem too good, should we only pass the nonblocking flag when scheme is HTTP/HTTPS?
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #138 |
(From update of attachment 311399)
I don't think this works as we want -- it seems to skip PAC entirely for some protocols.
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #139 |
Created an attachment (id=311445)
With fix to newProxyInfo, and restriction to http/https
This is better, though ftp and gopher can still lock up the UI!
Discovered that I was running the wrong tree when I was working on a unit test for the deferral case -- test isn't working yet, but running the right code sure does work better!
I'll spin up a tryserver with these so that interested folks can report as to their results with slow DNS. (I'm not quite sure how I'm going to do the slow-DNS testing, other than just going to the office tomorrow!)
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #140 |
(From update of attachment 311445)
this does not actually fix non-HTTP
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #141 |
Created an attachment (id=311500)
Better fix for protocol restriction
This still needs tests, and more test_ing_. People who can build with this patch and test in their DNS-sensitive proxy configs should consider themselves Cordially Invited to do so and report their findings.
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #142 |
(From update of attachment 311500)
r=biesi with the compile error fixed ;)
In Mozilla Bugzilla #235853, Artem (artem-marchenko) wrote : | #143 |
> People who can build with this patch and test in their DNS-sensitive proxy
> configs should consider themselves Cordially Invited to do so and report their
> findings.
I don't really know how to apply patches and compile Firefox and frankly don't have time for it. However, if somebody can tell me where to get a patched binary, I can test it with my office network, where the issue can be reproduced easily all the time.
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #144 |
(From update of attachment 311500)
I'll test this as best I can, and cross-my-
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #145 |
(In reply to comment #73)
> I don't really know how to apply patches and compile Firefox and frankly don't
> have time for it. However, if somebody can tell me where to get a patched
> binary, I can test it with my office network, where the issue can be reproduced
> easily all the time.
The try server has been activated, and there will be builds available in 30-180 mins (Mac first, Windows last).
https:/
You will want the builds that identify themselves as "nonblocking_pac2", from March 25th. And I will want to hear about your results!
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #146 |
Created an attachment (id=311573)
posterity: from rediffing after removing the NS_ASSERTION, not just rebuilding and running :(
Addressing biesi's comments, looking for some approval love.
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #147 |
https:/
In Mozilla Bugzilla #235853, Artem (artem-marchenko) wrote : | #148 |
Quick testing results:
1. Tried the usual difficult page http://
2. Closed normal Firefox, opened the Windows build from the zip file, went to the same page - everything was blazing fast, no freezing at all, not even for 0.5 second
3. Could not believe that it was that fast, closed your build, went back to normal Firefox, opened the same page. It was fast! There were minor freezings (like 0.3-0.5 secs) so your build was faster with absolutely no freezing, but that was way faster than before. Not sure how to explain this (maybe some caching issue?).
I am eager to do more testing, but I am traveling for a couple of days and not sure, when exactly I'll be back in the office. So, feel free to put more "testing tasks" to this thread, but don't expect quick reply (from me at least).
Good luck!
Artem.
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #149 |
DNS caching is definitely in play, since the blocking that happens is due to us waiting on a DNS response. Purging your DNS cache before step 2 would make the results more useful. Sorry I didn't say so earlier, if you have a chance to test again with that it would be helpful. (Or you can go to a "fresh" host first, since the loading speed of the page isn't going to be affected here, just whether we have the browser locked up while waiting for the DNS response in proxy autoconfig. Comparing vs. Firefox 3 b4 rather than 2.0.0.12 will also probably isolate things better.)
In Mozilla Bugzilla #235853, Mike Connor (mconnor) wrote : | #150 |
(From update of attachment 311573)
Would rather risk this in beta than in final, and its a pretty nasty bug for those affected...
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #151 |
Checking in base/src/
/cvsroot/
new revision: 1.206; previous revision: 1.205
done
Checking in base/src/
/cvsroot/
new revision: 1.76; previous revision: 1.75
done
May all your PACing be async. Big thanks to biesi for his guidance and review!
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #152 |
I backed this out due to mochitest failures on 3 platforms. Running mochitest locally, I noticed that it got stuck running
http://
with a "confirm resending POSTDATA" alert. This would be treated like a hang by mochitest and is consistent with the errors on tinderbox (general mochitest FAIL on Linux/Mac, red on Windows).
In Mozilla Bugzilla #235853, Artem (artem-marchenko) wrote : | #153 |
> Purging your DNS cache before step 2 would make the
> results more useful.
Could you tell me how to purge the cache?
In Mozilla Bugzilla #235853, Neil-r-lofland (neil-r-lofland) wrote : | #154 |
Tested the Trunk Build (3/25/08) with a PAC. The UI froze indefinitely with an invalid URL. I used the invalid URL "http://
<email address hidden>
WIN XP PRO, SP2
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #155 |
(In reply to comment #82)
> Running mochitest locally, I noticed that it got stuck running
> http://
>
> with a "confirm resending POSTDATA" alert.
I've confirmed that backing out the patch fixes that problem.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #156 |
The only reason I can think of for this to affect bug 413310 is if the POST response is not being cached for some reason. Does someone want to try applying this patch and seeing whether your can submit a POST form (in a subframe, so there's no bfcache), then go back then go forward? If you get the repost dialog, repeat all that with HTTP logging enabled?
In Mozilla Bugzilla #235853, georgi (guninski) wrote : | #157 |
hm, how do http proxies deal with the copyrighted stanford pdf trick of changing dns stuff?
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #158 |
I don't quite follow what that has to do with this bug? Do you think that the DNS is changing between resolution points?
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #159 |
(In reply to comment #86)
> The only reason I can think of for this to affect bug 413310 is if the POST
> response is not being cached for some reason. Does someone want to try
> applying this patch and seeing whether your can submit a POST form (in a
> subframe, so there's no bfcache), then go back then go forward?
I tested with:
data:text/
With the patch applied, clicked "Submit", clicked back, clicked forward. No POST dialog.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #160 |
But on the mochitest you do see the dialog?
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #161 |
(In reply to comment #90)
> But on the mochitest you do see the dialog?
Yes.
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #162 |
I minimized the mochitest to the smallest file that would reproduce the dialog when the patch is applied (to avoid extra loads of JS/CSS), and then generated HTTP logs with/without the patch. All the files are at:
http://
The two "diff" files represent the only significant difference between the two logs that I could find - in the "bug" case, two nsHTTPChannels are created, while in the "no bug" case, only one is.
I also got a stack to the code that prompts about the form resubmit:
http://
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #163 |
Created an attachment (id=311742)
HTTP logs/testcase/stack
This contains the current contents of http://
In Mozilla Bugzilla #235853, georgi (guninski) wrote : | #164 |
(In reply to comment #88)
> Do you think that the
> DNS is changing between resolution points?
>
yes, malicious dns server on purpose gives different replies for the ip of
hostname with short dns TTL. so if a script is loading several times content
from mal.dns you may end up with content with hostname mal.dns coming from two
ip-s: 1.1.1.1 and 10.1.1.1 and both seem coming from the same hostname so they
can interact.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #165 |
Gavin, can you load the POST result, then breakpoing in CanSavePresention and navigate away from it? Does it get bfcached? If not, which exact reason causes CanSavePresentation to return false? Is doing loads directly from the onload handler relevant?
In Mozilla Bugzilla #208287, Christian Biesinger (cbiesinger) wrote : | #166 |
*** Bug 425146 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #167 |
(In reply to comment #95)
> Gavin, can you load the POST result, then breakpoing in CanSavePresention and
> navigate away from it? Does it get bfcached? If not, which exact reason
> causes CanSavePresentation to return false?
With or without the patch applied (i.e. whether or not the dialog appears), the CanSavePresentation called with nsLocation::SetHref on the stack (i.e. the one that navigates away from the POST in the testcase) returns false due to the subframe check:
> Is doing loads directly from the onload handler relevant?
No - I can reproduce the problem by driving the test manually (e.g. submitting the iframe's form with a javascript: URI, and then just going back to the form page, and forward to the POST result manually with the back/forward buttons).
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #168 |
Oh, right. The whole point was to not have bfcache happening so the loads have to come from cache...
I guess it would be worth stepping through the HTTP channel AsyncOpen/
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #169 |
Created an attachment (id=311954)
regression fix?
OK, I looked into this a bit further. When the bug occurs, nsHttpChannel:
I added some debug logging and noticed that docshell was setting the new cachekey on the channel, but that it wasn't setting it on the right channel when the bug occurred ( http://
I'm still not sure why shaver's patch causes the extra channel to be present, and I have no idea whether this change is correct in the general case, but it fixes the regression for me.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #170 |
You should probably only be sending the mPostId along if the POST data is being sent along too, right? And possibly only if the URI hasn't changed... not sure about that last. biesi might know.
> I'm still not sure why shaver's patch causes the extra channel to be present,
Coming from DoReplaceWithProxy, right?
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #171 |
Ah right. I should've thought of this.
The patch looks basically correct to me, except that the cache key should only be forwarded when coming from ReplaceWithProxy, I would say. maybe add an argument forwardCacheKey to SetupReplacemen
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #172 |
Created an attachment (id=312162)
regression fix
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #173 |
Created an attachment (id=312383)
combined patch
In Mozilla Bugzilla #235853, Kelly Campbell (kelly-a-campbell) wrote : | #174 |
*** Bug 425183 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #175 |
(From update of attachment 312383)
Looking for approval here. There is risk in bizarre PAC configurations, but the upside is pretty substantial in basically all PAC configurations.
In Mozilla Bugzilla #235853, Beltzner (beltzner) wrote : | #176 |
(From update of attachment 312383)
a1.9=beltzner
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #177 |
Checked this in again, and it broke some mochitests again - this time the offline cache ones. I could reproduce that bustage too, when I ran the offline tests directly. After spending some time trying to figure out what was going wrong in offline cache code, I noticed nsOfflineCacheU
Fixing SetupReplacemen
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #178 |
Oh, I guess the setters for those aren't implemented, so probably not?
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #179 |
Created an attachment (id=314416)
combined patch + additional fix
I'm running this through mochis again.
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #180 |
I'm seeing another failure now:
source/
http://
is expecting to be called twice, but is now being called 4 times. This is presumably another consequnce of two channels being used per load rather than one. It seems to me that the test should probably be adjusted to now expect 4 calls, but I'm not sure.
In Mozilla Bugzilla #235853, Dwitte (dwitte) wrote : | #181 |
yeah, i suppose adjusting it to 4 is fine - it's (i hope!) an implementation detail as to how many requests are generated for a load. though biesi should probably confirm that this behavior is okay, and not bad in other ways.
a more robust way to write the test might be to pull the request URI from the channel on each firing of "http-on-
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #182 |
yes, the number of channels used is an implementation detail. that's why nsIChannelEventSink has an _INTERNAL reason.
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #183 |
(From update of attachment 314416)
biesi: can you stamp the combined change? We'll get the mochitest count before checkin as well, per dwitte.
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #184 |
Created an attachment (id=316154)
rollup patch
Includes the change to the cookie unit test. Passes a full run of Mochitest on a fresh build.
In Mozilla Bugzilla #235853, Beltzner (beltzner) wrote : | #185 |
(From update of attachment 316154)
a1.9=beltzner
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #186 |
Been waiting for the tree to go green so that I can check this in.
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #187 |
After all the work I'd done to make absolutely sure that this passed a full run of mochitests, multiple times, I checked it in. Then I discovered that it caused one of the mochi*chrome* tests to fail:
http://
I don't know why, offhand - SetupReplacemen
I'm very upset that I had to back this out *again* because of my own negligence. At least we know we have good test coverage of PAC-enabled network code paths, I guess.
In Mozilla Bugzilla #235853, Peter-bugzilla (peter-bugzilla) wrote : | #188 |
I get continual hangs even if I'm not doing anything. I assumed that this was caused by Camino 1.6, but I backed out to Camino 1.5.5 and I'm still getting it... so I went in with Activity Monitor and found this was always due to a bunch of nested js_Invoke called by nsPACMan:
I'm not sure that this is due to the problem being discussed here.
A couple of questions are pulled irresistibly to mind here.
1. What is -[Bookmark refreshIcon] being called so frequently for?
2. Shouldn't ANY kind of name resolution related work (including proxies and PAC files) happen in its own thread (or at least be interruptible)? Or even in a whole separate proxy helper process - it's not like name lookup is fast enough that even a few *milli*seconds to pass a name to the helper and get the address back would be noticeable.
3. Speaking of helper applications, what about putting all the maintenance work like updating bookmark icons into one?
In Mozilla Bugzilla #235853, Peter-bugzilla (peter-bugzilla) wrote : | #189 |
Created an attachment (id=318169)
Activity monitor samples during a typical "proxy hang".
Just for information, the Activity Monitor samples from a typical "proxy hang" in Camino.
In Mozilla Bugzilla #309582, Peter-bugzilla (peter-bugzilla) wrote : | #190 |
I'm getting freezes from proxy access on Camino on OSX:
I get continual hangs even if I'm not doing anything. I assumed that this was
caused by Camino 1.6, but I backed out to Camino 1.5.5 and I'm still getting
it... so I went in with Activity Monitor and found this was always due to a
bunch of nested js_Invoke called by nsPACMan:
top level, from -[Bookmark refreshIcon]
Sample trace from Activity Monitor attached to Bug 235853
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #191 |
The hangs under GetProxyForURI are due to exactly this bug. The helper app and bookmark icon bits should be in other Camino bugs, and probably not mentioned here again.
DNS resolution does happen on a background thread, but proxy selection is currently synchronous, so the script waits for the background thread to have completed, making the asynchronicity of the actual resolution somewhat pointless.
What we need to fix this is for someone to help figure out what is causing the mochichrome failure, and then we can look at how to get a patch like this into a 3.0.1. The motivating problem is well-understood, and easy to reproduce.
In Mozilla Bugzilla #235853, Stuart-morgan+bugzilla (stuart-morgan+bugzilla) wrote : | #192 |
(In reply to comment #119)
> The helper app and bookmark icon bits should be in other Camino bugs
Specifically, bug 351678.
In Mozilla Bugzilla #235853, Mtschrep (mtschrep) wrote : | #193 |
(From update of attachment 316154)
Removing approval since this missed the 1.9 cutoff.
In Mozilla Bugzilla #208287, Ryanvm (ryanvm) wrote : | #194 |
Interesting, I see this behavior at work all the time. Would be really nice to have a fix for this for 1.9.1.
In Mozilla Bugzilla #235853, Mubeenjukaku (mubeenjukaku) wrote : | #195 |
I am using Firefox in an enterprise environment. This bug has been made me switch to opera. Can anyone tell whether this bug is going to be fixed in the next update for Firefox 3.0.
In Mozilla Bugzilla #235853, Jo-hermans (jo-hermans) wrote : | #196 |
(In reply to comment #122)
> I am using Firefox in an enterprise environment. This bug has been made me
> switch to opera. Can anyone tell whether this bug is going to be fixed in the
> next update for Firefox 3.0.
>
see comment 119 : there's still a testcase that is failing, and that needs to be fixed first
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #197 |
(In reply to comment #116)
> After all the work I'd done to make absolutely sure that this passed a full run
> of mochitests, multiple times, I checked it in. Then I discovered that it
> caused one of the mochi*chrome* tests to fail:
>
> http://
>
> I don't know why, offhand - SetupReplacemen
> referer.
The problem appears to be that test_bug421622.xul uses setRequestHeader to set the referer and so nsHttpChannel:
I've attached a patch that adds a hack to make the mochichrome test pass, but also adds a new mochitest that uses a custom header that is not propagated by SetupReplacemen
I'd guess that both test_bug421622.xul and the new test would currently fail if a proxy is setup so that DoReplaceWithPr
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #198 |
Created an attachment (id=328677)
rollup patch + hack to set referer header
Copies the referer header over to make the mochichrome test pass. Includes a new test that still fails.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #199 |
Hmm. So this patch as it stands doesn't carry over "custom" headers set by XMLHttpRequest? That seems like it could be a problem, no?
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #200 |
(In reply to comment #126)
> Hmm. So this patch as it stands doesn't carry over "custom" headers set by
> XMLHttpRequest? That seems like it could be a problem, no?
>
Correct. The patch is not meant to be applied. However, SetupReplacemen
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #201 |
Right. I understand where the patches stand.
It seems that SetupReplacemen
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #202 |
Created an attachment (id=328746)
rollup patch + copy all headers
This patch copies all of the headers in the case of a proxy connection and no headers otherwise. It renames the previous 'transferCacheInfo' flag to 'forProxy' (I don't like this name, but nothing better came to mind).
It passes the test_bug421622.xul test as well as the newly added test.
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #203 |
(From update of attachment 328746)
This will cause kind of interesting behaviour because now for some
OnChannelRedirect calls we won't have transferred the headers while
for others (REDIRECT_INTERNAL) we will have. I guess that's not that
much of a problem since the observer will probably just re-set the
header if it cares at all.
On the patch itself:
for (i = 0; i < count; ++i) {
The body of this loop is incorrectly indented. It seems you're using tabs,
please don't.
nsCAutoString header, value;
header.
value.
httpChannel-
This should just be:
httpChannel-
in the header:
nsresult SetupReplacemen
Limit that line to 80 characters
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #204 |
Created an attachment (id=332389)
breaks lines netwerk/
Breaks lines longer than 80 columns in netwerk/
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #205 |
Created an attachment (id=332390)
rollup patch + copy all headers
The previous patch with changes suggested by cbiesinger.
In Mozilla Bugzilla #235853, Ted Mielczarek (ted-mielczarek) wrote : | #206 |
*** Bug 306922 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #207 |
(From update of attachment 332390)
Moving sr to bz, because biesi was the r, I believe. Maybe we'll get lucky for 3.1b1!
In Mozilla Bugzilla #235853, Shaver (shaver) wrote : | #208 |
(From update of attachment 332390)
I'm a maroon -- r+sr was from biesi on previous patches, restoring request.
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #209 |
(From update of attachment 332390)
+ PRUint32 i, count = mRequestHead.
+ for (i = 0; i < count; ++i) {
why not:
for (PRUint32 i = 0; ...)
+ httpChannel-
please limit your lines to 80 chars
+ httpChannel-
you misspelled nsDependentCString in the first argument?
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #210 |
Also, a necko unit test instead of just the one in content/ would be really great.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #211 |
Created an attachment (id=341161)
v2
This addresses the review comments and merges with HEAD.
Part of the merge involved a new call to SetupReplacemen
In Mozilla Bugzilla #235853, Christian Biesinger (cbiesinger) wrote : | #212 |
(In reply to comment #138)
> Part of the merge involved a new call to SetupReplacemen
> ProcessFallback(). I pass in false as 'forProxy', but this is just a guess as
> to the desired behavior. Does it seem correct?
yeah that seems right.
are you going to add a test in netwerk/test/unit? you'd just have to set the PAC pref using the prefservice, can be a data: URI that just always returns DIRECT I think. and then check that stuff gets correctly transferred.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #213 |
I'm not going to have time to write a test for this soon. I still can when I get the chance, but someone else could probably write a test much faster than I could anyways.
In Mozilla Bugzilla #309582, David-sporn (david-sporn) wrote : | #214 |
As far as I remember using FF on my corporate networks, I allways had a freeze when the host url does not exist.
Today, discovering that this problem was reported, I did the test.
My current version is Firefox/3.0.1 (Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1)
The corporate proxy is squid/2.5.STABLE14
Test 1: using autoproxy
- type an url in the adress bar to a non-existant host (e.g: http://
- press enter to load the page ==> freeze for a while
Test 2: using manual setting for proxy
- type an url in the adress bar to a non-existant host (e.g: http://
- press enter to load the page ==> no freeze
In Mozilla Bugzilla #235853, Benjamin Smedberg (Mozilla) [:bs] (benjamin-smedbergs) wrote : | #215 |
Not going to block on this, but I think we want it even after beta2... what's the current status of the patches here?
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #216 |
Created an attachment (id=345365)
Necko unit test
Here's a necko unit test that tests that headers and cache keys are preserved when we use a proxy. It fails with trunk and passes with this patch.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #217 |
Created an attachment (id=346138)
[1/2] break lines in netwerk/
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #218 |
Created an attachment (id=346141)
[2/2] v3: Defer proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution
Defers proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution and adds code to SetupReplacemen
It also adds a necko unit test and a mochi test to that the proxy channel preserves the needed properties of the original channel.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #219 |
Created an attachment (id=346370)
[2/2] v4: Defer proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution
Fix a grammar bug in v3
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #220 |
This still isn't passing mochitest :( It's causing tests/content/
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #221 |
The most immediate problem is that nsCrossSiteList
Sicking says fixing that won't be enough because preflight requests (for POST/PUT) aren't allowed to be redirected right now; we'd need to fix that to allow the PAC redirect for those.
In Mozilla Bugzilla #235853, Peter-bugzilla (peter-bugzilla) wrote : | #222 |
Preflight requests? Are those the ones where the browser preloads links? It would be worth disabling them for proxied connections, perhaps?
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #223 |
Preflight requests are the access-control GET requests made before a cross-site XHR POST is allowed to happen.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #224 |
I was talking to Boris and he suggested that Jonas disable the failing tests so that we can land this in time to make the beta. The reason the tests are failing comes from this patch causing existing bugs in the tree to be exercised and the benefit from the additional user testing probably outweighs the disadvantage of having the disabled tests.
In Mozilla Bugzilla #235853, Jonas-sicking (jonas-sicking) wrote : | #225 |
I'm fine with disabling the tests for now I guess. Though it will mean that XSXHR won't work for people with proxies at all for now :(
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #226 |
What tests need to be disabled?
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #227 |
Per comment 146, content/
Just commenting it out in the Makefile should work...
Jonas, did you ever get that patch I sent you into a bug?
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #228 |
test_XHRDocURI.html was also hanging.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #229 |
test_CrossSiteX
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #230 |
(From update of attachment 346370)
If we're thinking about doing this in the beta....
In Mozilla Bugzilla #235853, Beltzner (beltzner) wrote : | #231 |
(From update of attachment 346370)
I'm fine to take this opportunistically if people tell me that it's well tested and won't cause headaches, but based on the previous comments, I won't take this without a patch that also disables the tests that need to be disabled, and without a follow-up bug filed to fix those tests.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #232 |
> Though it will mean that XSXHR won't work for people with proxies at all for now
It already doesn't in a number of cases (proxy failover, say).
Jeff, can you put together a patch that does the test disabling? I'll work on getting that bug filed.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #233 |
So it looks like we also fail a bunch of video tests:
/tests/
/tests/
/tests/
/tests/
basically it looks like video is also broken with proxies with this patch.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #234 |
I filed bug 464954 on fixing XHR.
Is the problem that video is using the same access-control stuff as XHR (and hence is broken in the same ways)?
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #235 |
Actually, video doesn't use access-control yet. Chris, any idea what's going on there? Does video work across 3xx redirects?
In Mozilla Bugzilla #235853, Chris Double (doublec) wrote : | #236 |
I think Chris Pearce worked on some things to do with redirects on bug 451958. Hopefully he can comment on whether redirects require that patch or not.
In Mozilla Bugzilla #235853, Chris-pearce (chris-pearce) wrote : | #237 |
(In reply to comment #161)
> Does video work across 3xx redirects?
It WFM in recent win32 nightlies. See: http://
That's a 301 redirect.
Also the tests for bug 451958 test redirects with allow-origin and non-allow-origin videos, and that WFM. That patch uses nsCrossSiteList
(In reply to comment #159)
> So it looks like we also fail a bunch of video tests:
> /tests/
> basically it looks like video is also broken with proxies with this patch.
test_constants.html doesn't load any video, it only tests the existence and value of constants. I don't understand the area you're working in, but I can't imagine how anything to do with networking could affect this testcase.
Maybe try turning tracing off? We've been getting random test failures with video, maybe that's the cause?
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #238 |
test_constants.html only fails when being run after test_bug461281.html
test_bug461281.html fails consistently with:
not ok - Error thrown during test: [object ProgressEvent] got 0, expected 1
If you give the patch the PAC patch a try you should be able to reproduce the test failures without any difficulty and it's not unlikely that they point to bugs in the video code.
In Mozilla Bugzilla #235853, Tyler Downer (tyler-downer) wrote : | #239 |
*** Bug 450153 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, nodata (ubuntu-nodata) wrote : | #240 |
This bug turns a mistyped key to become a minute of annoyance, it will be good when it is fixed :)
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #241 |
I reran the media/video tests with a recent tree and they all seem to pass. So it looks like we're good there.
I also tried on the patch from bug 464954, but it seems to cause content/
In Mozilla Bugzilla #235853, Jonas-sicking (jonas-sicking) wrote : | #242 |
I'll land bug 464954 today when I get back from the ski slopes, that should help with the cross-site XHR tests.
In Mozilla Bugzilla #208287, nodata (ubuntu-nodata) wrote : | #243 |
Related to bug 235853.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #244 |
It looks like content/
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #245 |
That's quite odd. Which part of that test?
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #246 |
I'm not sure. I wasn't able to reproduce the failure when running the test individually. I'm rerunning the whole suite to see if I can reliably reproduce the failure that way.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #247 |
So, I wasn't able to reproduce the test_bug445004.html failure but toolkit/
"not ok - Got wrong referrer for http://
and toolkit/
"not ok - Error thrown during test: document.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #248 |
test_classifier
still fail without the patch so I don't know what's up there.
test_bug_
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #249 |
Could be, yes... That said, you do copy the referrer in SetupReplacemen
Can you reproduce the failure when running just the one test? If so, are you willing to debug?
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #250 |
Here's some more information about how the test fails:
not ok - Got wrong referrer for http://
The error happens in redirect.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #251 |
We copy the Referrer if mReferrer is set and we copy all the headers so it should be getting set.
I can reproduce the failure when running just the one test and I'm willing to debug with guidance.
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #252 |
Hmm. It looks like places stores this redirect with addDocumentRedi
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #253 |
It does help. Not calling addDocumentRedi
So now, to fix it properly:
1. AddDocumentRedi
2. nsDocShell:
In Mozilla Bugzilla #235853, Bzbarsky (bzbarsky) wrote : | #254 |
For #2, I would say yes. For example, the URL classifier probably needs to see the new channel, as far as I can tell.
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #255 |
(In reply to comment #179)
> For #2, I would say yes. For example, the URL classifier probably needs to see
> the new channel, as far as I can tell.
Right, but can that not be done in nsDocLoader:
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #256 |
After some more testing I'm getting occasional failures on test_bug445004.
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #257 |
I can reliably reproduce the following failure with tryserver unit tests:
*** 41223 ERROR TEST-UNEXPECTED
There also seem to be some leak test issues:
http://
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #258 |
Doug, can you give some guidance as to what could be going wrong here?
In Mozilla Bugzilla #208287, John Vivirito (gnomefreak) wrote : | #259 |
Can someone please mark this a dup of bug 235853 as after checking it looks the same
In Mozilla Bugzilla #235853, John Vivirito (gnomefreak) wrote : | #260 |
seems to be same as bug 208287 and should be marked a dup of this bug since there is more info on this bug than other.
John Vivirito (gnomefreak) wrote : | #261 |
Firefox package is for firefox 2 and lower. Changed to firefox-3.0
Canyou pease find the upstream bug report that you stated is stilla problem in 3.0 and post link here.
Changed in firefox (Ubuntu): | |
assignee: | mozilla-bugs → nobody |
Dave Gilbert (ubuntu-treblig) wrote : | #262 |
As per my comment on 2007-10-02
https:/
https:/
It looks like 235853 is the main one that seems to be getting fixed on.
Dave Gilbert (ubuntu-treblig) wrote : | #263 |
As previously
Changed in firefox-3.0: | |
status: | Incomplete → Confirmed |
Changed in firefox: | |
status: | Unknown → Confirmed |
In Mozilla Bugzilla #235853, Jmuizelaar (jmuizelaar) wrote : | #264 |
Jason can you take ownership of this bug?
Changed in firefox-3.0 (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
In Mozilla Bugzilla #235853, Vseerror (vseerror) wrote : | #265 |
*** Bug 483544 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Jduell-mcbugs (jduell-mcbugs) wrote : | #266 |
> Jason can you take ownership of this bug?
Sure. I've got a lot on my plate, but probably not as much as Shaver (I didn't even know he fixed bugs...)
I haven't had time to look over the 186 comments, but the first thing that comes to mind is that multi-process (electrolysis) may make this bug moot, assuming that DNS lookup occurs in the subprocess and not in the chrome process. Does anyone have a sense if that is correct? If so, unless we're very close to a architecturally clean fix here, it may make sense to wait and get this "for free" and "right way" later.
In Mozilla Bugzilla #235853, Jduell-mcbugs (jduell-mcbugs) wrote : | #267 |
Sorry, upon 2 seconds more reflection, it's unlikely that electrolysis is going to automatically fix this for free (though it may change how we architect the fix, if we can keep the main thread uninvolved or less involved).
In Mozilla Bugzilla #235853, Deinspanjer (deinspanjer) wrote : | #268 |
I'm trying to do some research and dupe checking on bug 492558 because I saw three separate reports of the problem as being new to Firefox 3.0.10. The technical aspects of it are a little over my head, so I wanted to ask if it might be related in any way to this bug since one is receiving current attention.
In Mozilla Bugzilla #309582, Rnicoletto (rnicoletto) wrote : | #269 |
I can confirm this bug as per comment 25
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11
My corporate pac file is something like this:
function FindProxyForURL
{
if (shExpMatch(url, "http://
return "DIRECT";
if (shExpMatch(url, "http://
return "DIRECT";
if (isPlainHostNam
return "DIRECT";
if (isInNet(
else
return "DIRECT";
}
In Mozilla Bugzilla #309582, David-sporn (david-sporn) wrote : | #270 |
Hum, I did a test today with my new version of Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1), it seems there are no more freeze. But the proxy is different than when I reported on comment #25. Now it is Astaro.
In Mozilla Bugzilla #309582, Rnicoletto (rnicoletto) wrote : | #271 |
As per comment 27 I've re-tested the above testcase with Firefox 3.5.1 and I cannot reproduce.
The corporate proxy is squid/2.5.STABLE14.
In Mozilla Bugzilla #208287, Rnicoletto (rnicoletto) wrote : | #272 |
With the new version of Firefox (Mozilla/5.0 (Windows;
U; Windows NT 5.1; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1), it seems
there are no more freeze.
Anyone can confirm this?
In Mozilla Bugzilla #235853, Steven-rosenshine (steven-rosenshine) wrote : | #274 |
No, I still experience freezes just as before.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
In Mozilla Bugzilla #235853, Benoit-grange (benoit-grange) wrote : | #275 |
I also continue having problems:
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)
In Mozilla Bugzilla #235853, Hskupin (hskupin) wrote : | #276 |
*** Bug 489772 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, K3co (k3co) wrote : | #277 |
I DON'T use PAC. I use manual proxy configuration.
I have the same problem of blocking UI during opening a new tab/URL.
I don't understand for what reason DNS resolving has to be done in case using PROXY.
However I understand that this DNS resolving is done through the Proxy server!
I have ping google.com and it works fine for any server in the world.
I need just one simple property in the about:config or checkbox in the proxy settings that says:
Do the DNS resolving with direct connection.
By using this simple fix i will have Firefox that resolves names using the local caching DNS server and working as fast as possible.
Please do that before I download the source and make complete mess of the Firefox to make it works that way.
This proposal will not help for the half of the people that have only proxy and local DNS server.
However many companies including big ones like the one I work for, uses proxy for internet and direct communication for VPN connection to all the offices worldwide. And this is not going to change any time soon in this millennium.
I suffer this bug from the time when Firebird 0.4 have been released. I use Firefox 3.5.4 WinXP and it is not fixed YET WHY?
In Mozilla Bugzilla #235853, Jo-hermans (jo-hermans) wrote : | #278 |
DNS resolving *has* to be done in the proxy server, otherwise it wouldn't know where to forward the request to.
A direct connection does not use a proxy server, so the browser has to do all the DNS lookups itself.
In the case of a PAC file, your browser might be doing DNS lookups too, but not always (depending on the content of the PAC file).
You're probably confusing the DNS prefetching-lookups (sent by the browser) with the ones needed to open the connection (sent by the browser and/or the proxyserver). In case of a PAC file, they're not always necessary, so we might disable prefetching in that case. See bug 507578.
In Mozilla Bugzilla #235853, K3co (k3co) wrote : | #279 |
I do not know the PAC file scenario of the problem.
But seems my bug reported was redirected to this one. I suppose that the source code forced the maintainers of the bugs to do that.
I also wish to mention that the line in my previous comment was missing one word that changes the meaning.
It was :
"This proposal will not help for the half of the people that have only proxy and
local DNS server."
It should be:
This proposal will not help for the half of the people that have only proxy and
NO local DNS server.
In Mozilla Bugzilla #235853, Cgijm (cgijm) wrote : | #280 |
Going back to an older post, this does seem to fix the issue:
function FindProxyForURL
{
//So the error message "no such host" will appear through the
//normal Netscape box - less support queries :)
if (!isResolvable(
return "DIRECT";
...
In Mozilla Bugzilla #235853, K3co (k3co) wrote : | #281 |
I have experienced the same hanging even not using any proxy (at home).
It seems to me that if the web server is on high load or the internet connection is slow, opening a new tab hangs until response. So I had no way to use other tabs until the last opened is loaded and least at 10% or so.
I will quite probably create a new bug about that if it is not already opened.
Sergey Fukanchik (fuxx) wrote : | #282 |
This bug affects me too. It usually appears on slow connections like
GPRS or on connections which have some problems with DNS. Also
it appears almost on all connections if i install dnsmasq. But i never
seen it on Ethernet connections.
When firefox hangs it consumes 100% of CPU.
This bug appears when i open new tab, close old, or just switching tabs.
Usually clicking on the links doesn't affect it.
Running firefox -g and beraking during the hang reveals nothing.
It usually breaks in different places but often i see js_Invoke.
It is very annoying per se, but the worst thing about it is the short-living
X Server windows which firefox uses alot. Say if i open new tab and
quickly click on menu "File" firefox opens system-modal menu window
and hangs and the entire X server becomes unusable (does not respond to my actions)
until firefox resumes. I can't switch to another application, the panels do not
respond to my clicks and so on.
The duration of the hang depends on number of open tabs. If i open 50 tabs
it will be about 90 seconds. When i have 10 open tabs it's about 15 seconds.
In Mozilla Bugzilla #309582, Martin B. (eagle3386) wrote : | #283 |
No further comments/changes made since the middle of 2009, though the bug still occurs.
Is there anybody who feels able to fix this bug?
In Mozilla Bugzilla #235853, Wovan (wovan) wrote : | #284 |
Perhaps I am in the wrong place, but I will give it a try. For at least the next two months, I will be using this computer, which is now seven years old. I am currently running Win 7 and not experiencing any problems that I am aware of at this time. My ISP, Wild Blue, suggested that to improve the speed of my internet access, to use Firefox. I have been using Internet Explorer since the beginning of my computer experience. I was not satisfied and a little unhappy with IE 8, so I readily switched to FireFox. The problem I have experienced, and continue to experience, occurs when I open a new tab or click on a link. It looks asa if it is going to do the requested action. After several seconds, the progress bar has no indication that it has beun to load the page, or it may show progress then stop. After a long period of time, a minute or more, I can "Stop" the procedure and then select the same thing again and it usually will quickly respond with the request. In my settings, I am using an Auto-configuration proxy URL supplied by my ISP. Would it be better to "Auto detect" the settings? This is quite frustrating.
In Mozilla Bugzilla #235853, Jo-hermans (jo-hermans) wrote : | #285 |
"Auto detect" is nothing magical, it's just a way for the browser to find out where the Automatic proxy configuration URL is located. In your case (if you're using wildblue.net as your DNS suffix), according to <http://
Anyway, there might be a problem with the proxy server(s) itself, or with the DNS request that your browser is using when using the wpad-file. Or with the pipelining that the Optimizer has installed (in which case it might also dependent on the exact website that you're visiting).
I'm not sure if you really need that wpad-file, it might be possible that you can surf faster without it. Or maybe you can try switching off the pipe-lining, especially the non-proxy pipelining, see <http://
John Vivirito (gnomefreak) wrote : | #286 |
Anyone able to reproduce with versions 3.5 or 3.6?
In Mozilla Bugzilla #208287, Johann Glaser (johann-glaser) wrote : | #287 |
I agree, didn't see this problem for a while.
In Mozilla Bugzilla #235853, Jarod-steele (jarod-steele) wrote : | #288 |
Kosta,
I have the same problem: I use manual proxy configuration and I get the UI freezes. So I had to ditch FF and use ie SIX !!!
Changed in firefox: | |
importance: | Unknown → Critical |
Sergey Fukanchik (fuxx) wrote : | #289 |
Please note that to me this happens when no proxy is enabled in the browser aswell.
In Mozilla Bugzilla #235853, Aragon Gouveia (aragon-phat) wrote : | #290 |
Is it just me, or has this bug gone from bad to horrible in version 4.0? I used to avoid DNS related functions when writing PAC files, but firefox 4 seems to have intermittent freezing with even basic PAC files now.
In Mozilla Bugzilla #235853, Marcin Wisnicki (mwisnicki) wrote : | #291 |
It is indeed horrible!
Today I've tried accessing blender.org whose name servers do not respond.
When using PAC whole browser locks up for ~15s, unfreezes then locks up again.
Switching proxy to manual or direct resolves issue, though browser seems to freeze for almost second every 10-15 seconds while another tab tries to load page for ~1min.
This is on Win7 with FF4.0
I guess this can be reproduced by setting up a dns zone with ns records pointing to dead servers (or finding such domain on internet).
In Mozilla Bugzilla #235853, Marcin Wisnicki (mwisnicki) wrote : | #292 |
My wpad.dat is like this:
function
FindProxyForURL
{
if (isPlainHostNam
if (dnsDomainIs(host, "my.local.domain"))
if (isInNet(host, "127.0.0.0", "255.255.255.0"))
if (isResolvable(
else
}
In Mozilla Bugzilla #235853, Jo-hermans (jo-hermans) wrote : | #293 |
*** Bug 652496 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, RalfG (ralf-skolelinux) wrote : | #294 |
It was version 2.0 of Firefox back in 2008, when I confirmed this bug for the first time. Three and a half years later, I have to confirm this bug for Firefox 4.0, too.
Especially for schools and bigger companies that cannot set proxy settings on each single client - but are important multipliers for the usage of free software - this is sad.
In times of muliple CPU cores and perfect threading, there should be no need for freezing GUIs, I think.
Now, I have to check if this is still a show stopper for the version 5.0 of Firefox.
With kind regards.
RalfG (Skolelinux)
In Mozilla Bugzilla #235853, RalfG (ralf-skolelinux) wrote : | #295 |
BTW, my wpad.dat looks like this (maybe it can be optimized?):
----
function FindProxyForURL
//###############
//#Local Network#
//###############
if (isInNet(host, "10.0.2.0", "255.255.254.0"))
{
return "DIRECT";
}
//#########
//#Default#
//#########
return "PROXY 10.0.2.2:3128;"
}
In Mozilla Bugzilla #235853, Jo-hermans (jo-hermans) wrote : | #296 |
Yes, add this in front :
if (isPlainHostNam
{
return "DIRECT";
}
If you're using internal webserver using the hostname or full DNS name, you will contact them directly, without going to the proxyserver first. The isInNet call only helps if you contact those webservers using an ipaddress, not a DNS-name.
But your problems have nothing to do with this bug, as your PAC-file does not use DNS at all (use dnsResolve call for that).
In Mozilla Bugzilla #235853, Emmanuel-colin (emmanuel-colin) wrote : | #297 |
I agree to Jo's solution for getting around the problem (I also added one set of rules with javascript regexps on the host variable to allow for direct use of IP adresses in the URL).
But I must disagree with his last comment, as it is my understanding that isInNet performs a dnsResolve call to get the IP adress in order to check it against the network mask.
Sad to hear that this bug is still live in 4.0...
Damn, now even Wikipedia says :
"The function dnsResolve (and similar other functions) performs a DNS lookup that can block your browser for a long time if the DNS server does not respond."
In Mozilla Bugzilla #235853, Slamb+bugzilla (slamb+bugzilla) wrote : | #298 |
Indeed, isInNet couldn't possibly work except by a DNS resolution. But the advice is good; best to avoid that call whenever possible.
Other workarounds: local proxy server: I wrote http://
The reason I never finished it? Switched to Google Chrome instead. Maybe it's a bit rude of me to point this out on the Firefox bug tracker, but Chrome doesn't have this problem, so I'm much happier.
In Mozilla Bugzilla #235853, Wpwoodjr+bugzilla (wpwoodjr+bugzilla) wrote : | #299 |
Firefox 4 seems worse. When I restore a session of only 3 windows/20 tabs, it can take several minutes before the UI starts responding under Windows XP. This morning I killed the Firefox task after about 2 minutes and re-started it. Firefox did not hang the second time I started it. But periodically during the day it will hang for several minutes.
In Mozilla Bugzilla #235853, Hskupin (hskupin) wrote : | #300 |
Bill, your issue has absolutely nothing to do with this bug. If you can't find another one already filed please create a new one.
In Mozilla Bugzilla #235853, Wpwoodjr+bugzilla (wpwoodjr+bugzilla) wrote : | #301 |
@Henrik, not sure why you say that. My organization has a huge proxy.pac. At home with no proxy, Firefox works fine with 20 windows and 50-100 tabs.
In Mozilla Bugzilla #235853, RalfG (ralf-skolelinux) wrote : | #302 |
Hello & thanks for your comments.
Today I tested Firefox 5.0 (for Windows), and the bug is still there.
This is the way I test it:
(1) Put proxy settings to "auto detect"
(2) Start a web search for "test"
(3) Click on 3..4 hits of the search engine, using the mid-mouse button.
Usually, I won't get to the 3rd click, because Firefox hangs then.
Even if you open the Settings dialog before loading is complete, this
dialog will hang for several seconds.
If you use explicit proxy settings (10.0.2.2:3128), there is no delay at all.
In Mozilla Bugzilla #235853, RalfG (ralf-skolelinux) wrote : | #303 |
When I get you right, auto proxy recognition can't do without a DNS call.
Reading this, I suggest:
- prevent DNS calls from blocking the GUI
- prevent DNS calls if the proxy string spread via DHCP is an IP (as in my case)
- prevent proxy detection with every URL call; rather define some update interval
or just lookup proxy settings (wpad.dat) on failure.
In Mozilla Bugzilla #235853, Bugz-e (bugz-e) wrote : | #304 |
We had users complain about UI hang when they typed in a non-existant domain. We had 30 IsInNet statements in the PAC file they were using. Firing up Wireshark showed 2 types of lookup were attempted - normal DNS lookup, and a netbios lookup. Regular DNS lookups returned pretty instantly with NXDOMAIN.
I saw the netbios lookup packets conformed to NameSrvQueryCount and NameSrvQueryTimeout defaults as mentioned here http://
Completely turning netbios off fixed the issue, but that's clearly a no-go (not a Windows engineer, I'd have happily turned it off!).
Someone in our team came up with the idea of cutting down on the amount of resolving needed.
We went from the following:
=== from ===
if (isInNet(host, "172.31.0.0", "255.255.0.0") ||
isInNet(host, "10.0.1.0", "255.255.255.0"))
{
return "proxy1.
}
if (isInNet(host, "192.168.0.0", "255.255.0.0") ||
....
....
{
return "DIRECT"
=== to ===
var resolved_ip = dnsResolve(host);
if (isInNet(
isInNet(
{
return "proxy1.
}
if (isInNet(
....
....
{
return "DIRECT"
======
It's not a fix, but it's 1001 times better than what we had before, hope this helps someone with a similar situation.
In Mozilla Bugzilla #235853, Nickolay Ponomarev (asqueella) wrote : | #305 |
*** Bug 539922 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Nickolay Ponomarev (asqueella) wrote : | #306 |
*** Bug 491253 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, Nickolay Ponomarev (asqueella) wrote : | #307 |
*** Bug 590247 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, K3co (k3co) wrote : | #308 |
This bug is not resolved since 2004 year.
People stop chatting here and make it ALL OVER AGAIN FROM SCRATCH.
Apparently the source is a complete mess.
My proposal is to have a one thread tho handle DNS responses, and if there is proxy set then a second thread will be started to resolve the DNS through the proxy.
So the thread must work by sending the DNS request on 52 UDP/TCP ports as it is done is millions of software.
Then the thread waits for response. And the corresponding TAB in the Firefox is waiting for that response, ALL OTHER TABS ARE WORKING JUST FINE - so we can use them as nothing happend.
When the thread(s) receive a response from the DNS server they send a EVENT to the corresponding TAB with the responded information - i.e. the IP of the web server.
That is all.
There is no other matter to discuss.
There is a way to be done in the current Firefox - after all 2004 year is 7 (SEVEN) years old BUG.
Came on get in hands.
In Mozilla Bugzilla #235853, 1npr3w (1npr3w) wrote : | #309 |
Firefox 7.0 (no addons enabled) - still happening. Am actually forced to use IE because FF unusable behind this proxy. Everything in FF hangs - the About box, the proxy login, the menus etc. It's not frozen - if I wait 20 minutes, a web page will appear. Disable the proxy settings and FF is fine - except no internet of course. Very frustrating & embarrassing.
In Mozilla Bugzilla #235853, Jboutin (jboutin) wrote : | #310 |
This is ridiculous. There really shouldn't be any reason why this is still happening. I'm on a clean install of Windows 7 x64 with Firefox 6.0.1 after uninstalling my previous install, deleting every last trace of it, and cleaning my registry. This STILL Happens.
It's really strange.
I'll be browsing just fine, and then suddenly out of the blue, all of my pages that are loading will get stuck in this loading loop (as if Firefox cannot access the internet.) This is with absolutely no extensions, and just the basic plugins (Flash, Shockwave.)
The only way to get Firefox to work again is to reopen it. While Firefox is hiccuping, I can use Chrome/
In Mozilla Bugzilla #235853, Rnicoletto (rnicoletto) wrote : | #311 |
In reply to comment 220, comment 221 and comment 222: did you try to disable IPv6 via “network.
In Mozilla Bugzilla #235853, Jboutin (jboutin) wrote : | #312 |
comen(In reply to RNicoletto from comment #223)
> In reply to comment 220, comment 221 and comment 222: did you try to disable
> IPv6 via “network.
Yep.
In Mozilla Bugzilla #235853, Nlappala (nlappala) wrote : | #313 |
Problem exists with large PAC files
Test 1 - Load a dynamic server page on localhost - A PAC file with about 350 hostname resolves.
Firefox 7.0.1 with the PAC file enabled (Connection Settings --> Automatic proxy configuration URL): 3.042 s, 2.865 s, 2.892 s, 3.042 s, 3.003 s
Firefox 7.0.1 with no proxy enabled (Connection Settings --> No Proxy): 0.646 s, 0.686 s, 0.588 s, 0.699 s, 0.573 s
Internet Explorer 8 with the PAC file proxy configuration enabled: almost instant meaning < 1 s (not measured)
Firefox GUI with the tested PAC file enabled is completely frozen while loading the page.
Test 2 - Start Firefox with 20 tabs
Firefox 7.0.1 with the PAC file enabled (Connection Settings --> Automatic proxy configuration URL): 2 minutes 30 seconds
Firefox 7.0.1 with no proxy enabled (Connection Settings --> No Proxy): 30 seconds
In Mozilla Bugzilla #235853, manuj_78 (manujg) wrote : | #314 |
If this is not going to be tracked against a release, then what are the chances of this ever getting fixed?
In Mozilla Bugzilla #235853, Benjamin-scherrer (benjamin-scherrer) wrote : | #315 |
A resolution for this is crucial especially for enterprise usage where such a proxy configuration is much more common than at home. I urge you to look into this issue for the upcoming enterprise version of firefox (http://
It would be a huge improvement for us in Firefox, in fact the biggest in years. Thanks!
In Mozilla Bugzilla #235853, Mardeg (mardeg) wrote : | #316 |
(In reply to Benjamin Scherrer from comment #227)
> I urge you to look
> into this issue for the upcoming enterprise version of firefox
> (http://
> extended-
It's no longer upcoming, it has already been released.
In Mozilla Bugzilla #235853, Benjamin-scherrer (benjamin-scherrer) wrote : | #317 |
Thanks, I missed the news. So any hopes for progress here? I really hoped it would make this release.
In Mozilla Bugzilla #235853, Sworkman (sworkman) wrote : | #318 |
All, sorry for the lack of responses on this one. There have been some other higher priority tasks for various reasons, but this seems to be next on my list of bugs. I have other tasks as well, though, so I can't devote all my time to it. I hope to have a patch up sometime in the next month.
In Mozilla Bugzilla #235853, Peter-azp (peter-azp) wrote : | #319 |
Well "hopefully next month" is pretty awesome compared to the (almost exactly) 8 years that this bug has been around...
In Mozilla Bugzilla #235853, Josh Matthews (joshmatthews) wrote : | #320 |
Created attachment 594181
"[PAC] Defer proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution" [a-1.9.
I rebased this patch and I'm running it through try to see what the state of the world is.
In Mozilla Bugzilla #235853, Josh Matthews (joshmatthews) wrote : | #321 |
Created attachment 594233
Defer proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution.
In Mozilla Bugzilla #235853, Release-a (release-a) wrote : | #322 |
Try run for 5fa326c23268 is complete.
Detailed breakdown of the results available here:
https:/
Results (out of 99 total builds):
exception: 4
success: 39
warnings: 16
failure: 40
Builds (or logs if builds failed) available at:
http://<email address hidden>
In Mozilla Bugzilla #235853, Release-a (release-a) wrote : | #323 |
Try run for 55a64e81467b is complete.
Detailed breakdown of the results available here:
https:/
Results (out of 129 total builds):
success: 114
warnings: 15
Builds (or logs if builds failed) available at:
http://<email address hidden>
Timed out after 06 hours without completing.
In Mozilla Bugzilla #235853, Josh Matthews (joshmatthews) wrote : | #324 |
That try run was completely green, modulo a couple unrelated known oranges. Jason/Biesi (or Steve, for that matter), does this patch require another round of review? The rebasing I performed was mostly mechanical.
In Mozilla Bugzilla #235853, Jduell-mcbugs (jduell-mcbugs) wrote : | #325 |
Comment on attachment 594233
Defer proxy resolution for HTTP and HTTPS PAC to avoid blocking main thread during DNS resolution.
Steve is going to look the patch over.
In Mozilla Bugzilla #235853, Sworkman (sworkman) wrote : | #326 |
Jdm, thanks for cleaning up the patch and trying it out. Looks good to me - no issues.
In Mozilla Bugzilla #235853, Josh Matthews (joshmatthews) wrote : | #327 |
In Mozilla Bugzilla #235853, Covex (covex) wrote : | #328 |
Gentleman thank you. It looks like this bug really should be fixed now..? if it gets into next FF release, then it would deserve it's own release party. Is it not the oldest bug ever fixed?
In Mozilla Bugzilla #235853, Martin B. (eagle3386) wrote : | #329 |
It took Mozilla 8 (verbal: E-I-G-H-T!) years to fix it.
Fixing TNEF attachments in Thunderbird is another sad example for time-consuming bugs and hence is still not fixed.
Maybe fixing proxy resolution will get fixed soon, too?! :)
In Mozilla Bugzilla #235853, manuj_78 (manujg) wrote : | #330 |
Many thanks for looking at this issue. Much appreciated
In Mozilla Bugzilla #235853, Bmo-edmorley (bmo-edmorley) wrote : | #331 |
Changed in firefox: | |
status: | Confirmed → Fix Released |
In Mozilla Bugzilla #235853, Matti-mversen (matti-mversen) wrote : | #332 |
*** Bug 425146 has been marked as a duplicate of this bug. ***
In Mozilla Bugzilla #235853, colchaodemola (colchaodemola) wrote : | #333 |
Is this fixed in firefox 12 ? It still hangs if i try to use PAC.
In Mozilla Bugzilla #235853, Ryanvm (ryanvm) wrote : | #334 |
Per the Target Milestone field above, it is fixed for Firefox 13. You can verify that it is fixed with a current beta release.
In Mozilla Bugzilla #235853, Josh Matthews (joshmatthews) wrote : | #335 |
However, as we discovered in bug 750445, this may not actually be fixed in FF 13 either. More investigation is probably required.
In Mozilla Bugzilla #235853, Jduell-mcbugs (jduell-mcbugs) wrote : | #336 |
Yes, this is still broken. I filed bug 750445 instead of reopening this one, because the patch for this one stuck (and shouldn't be backed out: we just need to fix it). Let me know if that's the wrong approach bugzilla-
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #337 |
That's absolutely the best practice, don't let anyone tell you otherwise :)
In Mozilla Bugzilla #235853, Peter-bugzilla (peter-bugzilla) wrote : | #338 |
Making everyone who's been following this bug for the past 8 years jump through hoops. Oh well.
In Mozilla Bugzilla #235853, Gavin Sharp (gavin-sharp) wrote : | #339 |
Unfortunately it doesn't really make sense for us to optimize our Bugzilla practices for the casual bug watcher audience (Bugzilla really wasn't designed for that). Trying to track several different changes in a single bug just doesn't work very well.
I suspect that many people on the CC list have since lost interest in getting frequent updates, but those who want to track every step along the way can still CC themselves to the new bug.
In Mozilla Bugzilla #235853, Jduell-mcbugs (jduell-mcbugs) wrote : | #340 |
And apologies for this bug not getting fixed--it was an accident in the rebasing of a patch. For all we knew this was fixed until we discovered otherwise last week. I'll be looking into it very soon.
In Mozilla Bugzilla #235853, Avner-linder (avner-linder) wrote : | #341 |
No worries, we all moved to Google Chrome anyway.
But I think I'll stay at the CC list for a while: every time I get an email notification about this defect not being fixed, it reassures me that I made a good decision.
In Mozilla Bugzilla #235853, Martin B. (eagle3386) wrote : | #342 |
(In reply to Avner from comment #253)
> No worries, we all moved to Google Chrome anyway.
I have to confirm this - at least for my colleagues.
Mozilla is way too good (that video about "we believe in freedom" still makes me cry - just beautiful!) to act like this.
Come on guys, step up and get stuff like x84 builds in the release channel done; it's about time!
Remember: its not about the "under the hood", it's about what changes usability and recognizable changes to the user - everything else is just for geeks, not end-users.
And this is definitely true: Firefox is the better browser, because it respects user's privacy like no other. So get that "nerd touch" destroyed by moving faster.
In Mozilla Bugzilla #235853, Avner-linder (avner-linder) wrote : | #343 |
I don't care what goes on under the hood, and I don't care how the proxy server is being resolved technically.
As an end-user, when my browser hangs I just kill it and move to a faster browser.
In Mozilla Bugzilla #235853, Martin B. (eagle3386) wrote : | #344 |
That's what I tried to say - thanks for summing it up! :)
In Mozilla Bugzilla #235853, Artem (artem-marchenko) wrote : | #345 |
Indeed. In fact several years ago it was exactly this bug that forced me to move to Chrome. I don't work in the huge company with complex proxy server configs anymore, yet.. I am on Chrome already. Keeping Firefox only for a couple of Chrome-incompatible sites and following this bug out of nostalgia.
In Mozilla Bugzilla #235853, Ryanvm (ryanvm) wrote : | #346 |
Guys, I know this has been a source of frustration for you, but please show some courtesy to the 103 people CCed to this bug by not spamming them with your reasons for switching to Chrome.
In Mozilla Bugzilla #235853, Martin B. (eagle3386) wrote : | #347 |
This is my last comment, because I want to respect Ryans kind wish to show some courtesy:
I'm not on Chrome, I'm on Firefox (even Nightly x64 right now) - since Version 1.0, at work, too, even on Android and until it really brakes the basic rules, I guess.
So, finally: sorry to those 103 people for spamming. I did not intend to do so - I just wanted to kind of "resurrect" the spirit that once brought so many users from IE to the great and lovely fox.
In Mozilla Bugzilla #235853, Peter-bugzilla (peter-bugzilla) wrote : | #348 |
I stick with Firefox, and I really appreciate how it has kept listening to its users and stuck with a clean, native user interface... but there's a couple of old horrible bugs like this that really need to get fixed, and I keep following them in the (apparently not quite vain) hope that it will eventually happen. The biggest one is the incomplete downloads bug, where the remote end closes the connection before the download is finished and there's no indication on this end that you only got 20MB of an expected 40MB. Is that another "forgotten" one? If the download manager would just leave the expected size visible after the download ends we'd at least have a chance of catching it when it happens.
In Mozilla Bugzilla #235853, Patrick McManus (mcmanus-ducksong) wrote : | #349 |
backed out in bug 767005
In Mozilla Bugzilla #235853, Laszlo Ersek (lacos-caesar) wrote : | #350 |
Since the fix has been backed out, please consider reopening this BZ. Thanks!
In Mozilla Bugzilla #235853, Patrick McManus (mcmanus-ducksong) wrote : | #351 |
(In reply to Laszlo Ersek from comment #262)
> Since the fix has been backed out, please consider reopening this BZ. Thanks!
it would just be a dup of the work being done in bug 769764, you can follow it over there.
In Mozilla Bugzilla #235853, Mar-castelluccio (mar-castelluccio) wrote : | #352 |
*** This bug has been marked as a duplicate of bug 769764 ***
Changed in firefox: | |
status: | Fix Released → Invalid |
affects: | firefox-3.0 (Ubuntu) → firefox (Ubuntu) |
madbiologist (me-again) wrote : | #353 |
Fix for upstream 235853 was backed out.
Changed in firefox: | |
importance: | Critical → Unknown |
status: | Invalid → Unknown |
madbiologist (me-again) wrote : | #354 |
Fixed in Firefox 18.
Changed in firefox (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in firefox: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Created an attachment (id=124913)
the offending atuomatic configuration script.
Attached the automatic configuration script.