PAC: first page load fails (b/c PAC is slower than first HTTP request)

Bug #8268 reported by Parrish Myers
6
Affects Status Importance Assigned to Milestone
mozilla (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I am behind a firewall... when tring to use epiphany, I set the automatic proxy
configuration (the one that works in firefox) in the Network Proxy Configuration
dialog box and epiphany still can't see the outside world.

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

Revision history for this message
Sebastien Bacher (seb128) wrote :

Do you know what kind of proxy do you use ? Is that a WPAD one ?
Do you use a proxy PAC url ?

Revision history for this message
Parrish Myers (monkey1s2-lists) wrote :

(In reply to comment #1)
> Do you know what kind of proxy do you use ? Is that a WPAD one ?
> Do you use a proxy PAC url ?

I believe it is the pac url. The files end in '.pac' and yes I specify a url to
the path.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, we need some details. A similar bug was opened upstream (and closed because
not reproducible), I'm going to reopen it:
http://bugzilla.gnome.org/show_bug.cgi?id=148079

Could you provide the .pac file and ~/.gnome2/epiphany/mozilla/epiphany/prefs.js ?

I'll do debug packages for mozilla and epiphany for the next tests and let you
know where to grab them and what to do.

Revision history for this message
Parrish Myers (monkey1s2-lists) wrote :
Download full text (10.1 KiB)

Here are the files requested... the only differences in the pac and preferences
file are the network addresses and network names have been changed in the pac
file though (but I did keep class A with class A and so on -- in case that had
any affect on the bug)

# Mozilla User Preferences

/* Do not edit this file.
 *
 * If you make changes to this file while the browser is running,
 * the changes will be overwritten when the browser exits.
 *
 * To make a manual change to preferences, you can visit the URL about:config
 * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
 */

user_pref("browser.display.background_color", "#ffffff");
user_pref("font.minimum-size.x-western", 7);
user_pref("font.name.monospace.x-western", "monospace");
user_pref("font.name.variable.x-western", "sans-serif");
user_pref("general.useragent.vendor", "Epiphany");
user_pref("general.useragent.vendorSub", "1.4.0");
user_pref("intl.charset.default", "ISO-8859-1");
user_pref("intl.charset.detector", "");
user_pref("keyword.URL", "http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=");
user_pref("network.cookie.cookieBehavior", 0);
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.protocol-handler.external.ftp", false);
user_pref("network.proxy.autoconfig_url", "http://proxysrv.a.bc.com/proxy");
user_pref("network.proxy.ftp", "proxy.a.bc.com");
user_pref("network.proxy.ftp_port", 80);
user_pref("network.proxy.http", "proxy.a.bc.com");
user_pref("network.proxy.http_port", 80);
user_pref("network.proxy.no_proxies_on", "localhost, 127.0.0.0/8");
user_pref("network.proxy.ssl", "proxy.a.bc.com");
user_pref("network.proxy.ssl_port", 80);
user_pref("network.proxy.type", 2);

// proxy.pac for East, Central and West regions
// use 'co -l proxy.pac' before editing
// use 'ci -u proxy.pac' after editing
//
// Contact: net@a.bc.com

function FindProxyForURL(url, host)
{
 // Use DNS to find the closest available Internet POP and set the order of
failover.
 clientIP = myIpAddress();
 proxyIP = dnsResolve("proxy.a.bc.com");
 if (shExpMatch(proxyIP, "138.125.254.200") )
    USPROXY = "PROXY bos-proxy.a.bc.com:80; PROXY a-proxy.a.bc.com:80; PROXY
gut-proxy.a.bc.com:80";

 if (shExpMatch(proxyIP, "130.126.254.200") )
    USPROXY = "PROXY dfw-proxy.a.bc.com:80; PROXY b-proxy.a.bc.com:80; PROXY
gut-proxy.a.bc.com:80";

 if (shExpMatch(proxyIP, "147.16.223.200") )
    USPROXY = "PROXY gut-proxy.a.bc.com:80; PROXY c-proxy.a.bc.com:80; PROXY
bos-proxy.a.bc.com:80";

 // Do proxy requests for these domains and networks
 // This should match allowout.hosts on internet proxies
 if (dnsDomainIs(host, "aiigsdmz.gar.esys.com") ||
     dnsDomainIs(host, "dbaiigsdmz.gar.esys.com") ||
     dnsDomainIs(host, "ftp.ftw.rsc.bcc.com") ||
     dnsDomainIs(host, "jpatsmis.rac.bcc.com") ||
     dnsDomainIs(host, "test.bcc.com.au") ||
     dnsDomainIs(host, "www.ftw.rsc.bcc.com") ||
     dnsDomainIs(host, "www.bcc.com.au") ||
     dnsDomainIs(host, "www.training.bcc.com.au") ||
     dnsDomainIs(host, ".east.hitc.com") ||
     shExpMatch(host, "20.137.253.19") ||
     shExpMatch(host, "151.168.2.6*") ||
     shExpMatch(host, "162.36.5.*") ||
     shExpMatch(host, "1...

Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Parrish Myers (monkey1s2-lists) wrote :

works with everything except for the home page right after startup. It will
fail saying it can't be found, yet I can then press "<Alt><Home>" right after
program startup and the home page comes right up.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, thanks. And if you re-install the old package you get the proxy support
broken again ?

Revision history for this message
Sebastien Bacher (seb128) wrote :

The problem for the first page is a known problem with mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=100022

Revision history for this message
Parrish Myers (monkey1s2-lists) wrote :

I'm sorry, other than the problem you mentioned about the home page being a
known mozilla problem, I can't seem to reproduce the problem anymore with either
version.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, bug automagically fixed again (it has been closed upstream in the same way
the first time).
Do you want to keep the bug open for the mozilla part ?

Revision history for this message
Parrish Myers (monkey1s2-lists) wrote :

only if necessary... the mozilla bug is annoying

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, renaming the bug, reassigning to mozilla

Revision history for this message
Jason Toffaletti (jason) wrote :

upstream bug marked as fixed:

"This fix was never checked-in into the aviary branch. It's not a security fix so
the first release where it is available is DeerPark Alpha 2."

Revision history for this message
Jason Toffaletti (jason) wrote :

dapper includes firefox 1.4.99rc3, which should have this fix. if possible, can
you test this with dapper (perhaps the livecd?) to see if the homepage bug is
fixed? thanks.

Revision history for this message
Carthik Sharma (carthik) wrote :

Thank you for reporting this bug.

Since there has been no response for over 4 months, I am marking this bug as resolved. If you still have an issue that you would like to be considered, please reopen this bug and comment appropriately.

Thanks again.

Changed in mozilla:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.