After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99923 - Auto proxy doesn't load at startup again
Auto proxy doesn't load at startup again
Status: RESOLVED NOTGNOME
Product: galeon
Classification: Deprecated
Component: Mozilla interaction
1.3.8
Other other
: Normal normal
: ---
Assigned To: Philip Langdale
Yanko Kaneti
: 78940 121917 130143 145535 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-11-29 22:52 UTC by Christian Krause
Modified: 2004-12-31 21:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Krause 2002-11-29 22:52:38 UTC
The old problem, that the automatic proxy configuration file isn't loaded
at startup, occurs again. :-(

conditions:
- start page or session with URLs, that the host cannot reach directly
- using the automatic proxy configuration (this URL is directly reachable)

Starting galeon brings a boxe, that the startup-site (or the URLs in the
session) could not be reached. Hitting Enter in the Location field opens
the URLs successfully. It seems, that this is a time critical race
condition, because it sometimes works as expected.

Especially when using the session feature, this is really annoying. :-(

Mozilla: 1.2
Galeon: 1.2.7
Comment 1 Philip Langdale 2002-11-29 23:56:53 UTC
I can't repro this here, even loading a session on startup. The proxy
autoconf is poked before session loading takes place and it works as
far as I can see.
Comment 2 Christian Krause 2002-11-30 00:30:17 UTC
Hm, not so good. As I wrote, the error sometimes doesn't occur. So
this could really be a race condition.

Could it be, that some relevant functions are called parallel in threads?

The problem is, that I don't know the reason for this problem, so I
don't know what information are relevant to reproduce it.
It could be the speed of the machine running galeon or the speed of
the network connection. Maybe you have a real SMP machine and the
threads are executed really parallel and so you get an other behaviour
as you would get on a single processor machine.
Comment 3 Philip Langdale 2002-11-30 00:48:19 UTC
As far as I can see, no, there is no multithreading to cause a race
condition.

The session loading is explicitly done after the synchronisation of the 
mozilla prefs. gconfd runs out of process (naturally) so you might
think that it isn't properly initialised when it comes time to read
the gconf prefs to sync over to mozilla, but if that was the case, the
gconf access functions should fail and you'd observe galeon looking
very odd indeed as the UI prefs would not be readable.
Comment 4 Christian Krause 2002-11-30 23:36:32 UTC
No, that's not completly right.

Galeon loads the mozilla prefs (prefs_load()) before the session
(session_history_load()) and there are no threads at this time. This
is correct.

The problem is, that the corresponding call into mozilla [1] doesn't
load the proxy configuration at calling time, they just create an
event [2] which  will be executed later. So the function
mozilla_reload_proxy_autoconfiguration(url) returns without really
loading the auto proxy configuration.

It seems, that the event is executed in parallel with other mozilla
operations, e.g. loading the start page. And then there is the race
condition.


regards,
christian


[1] netwerk/base/src/nsProtocolProxyService.cpp:
nsProtocolProxyService::ConfigureFromPAC 

[2] comment within the function [1]:
    /* now we need to setup a callback from the main ui thread
       in which we will load the pac file from the specified
       url. loading it now, in the current thread results in a
       browser crash */
Comment 5 now michael@endbracket.net 2003-05-02 00:11:24 UTC
This is happening for me on Red Hat Linux 9, Galeon 1.3.4,
Mozilla 1.3.
Comment 6 Tommi Komulainen 2003-09-12 21:05:17 UTC
*** Bug 121917 has been marked as a duplicate of this bug. ***
Comment 7 Tommi Komulainen 2003-09-12 21:08:05 UTC
WONTFIX for 1.2.  Updating the version to the latest release since there hasn't
been any work on it, afaik.
Comment 8 Crispin Flowerday (not receiving bugmail) 2003-10-15 22:21:16 UTC
*** Bug 78940 has been marked as a duplicate of this bug. ***
Comment 9 Tommi Komulainen 2003-12-29 13:16:04 UTC
*** Bug 130143 has been marked as a duplicate of this bug. ***
Comment 10 Crispin Flowerday (not receiving bugmail) 2004-07-06 21:51:30 UTC
*** Bug 145535 has been marked as a duplicate of this bug. ***
Comment 11 Samuel Abels 2004-11-29 13:27:52 UTC
Any news on this one? I have the same problem (still 1.2.9 though). It seems to
happen every time when I click "Recover" after an epiphany crash.
Comment 12 Samuel Abels 2004-11-29 13:30:11 UTC
Sorry about that post. I searched the bug database and didn't relize the match
was Galeon rather then Epi.
Comment 13 Crispin Flowerday (not receiving bugmail) 2004-12-31 21:21:14 UTC
Unfortunately there is nothing we can do about this, as it is a problem inside
mozilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=100022