Wrong/no proxy selection on Firefox start/session restore

Using FoxyProxy Standard 2.22.1 with Firefox 3.6.12 on Linux x86_64 I'm having a really annoying issue.

Generally FoxyProxy works really well, and I can swap between multiple PAC file configurations, and also "direct" proxy configurations. I don't use any URL patterns, and just switch between different proxies with the menu.

However, when I start Firefox with session restoration turned on (as I always do), it starts up and tries to fetch my many windows and tabs without _any_ proxy. This doesn't work through our corporate firewall, and I'm left with dozens of "Problem loading page" tabs.

After Firefox has started, Foxyproxy is apparently configured for the right proxy, i.e. the one it was set to last time Firefox was running, but still new fetches happen without any proxy. I can fix the issue by switching to another proxy and then back to the one I actually want to use.

Any idea what's going wrong?

I can send my foxyproxy.xml, but won't make it available publicly online as it contains potentially confidential information.

Cheers,

John.

Hi John, There is a similar

Hi John,

There is a similar issue described in our FAQ http://getfoxyproxy.org/faq.html#pac :

***

Why does QuickAdd automatically disable itself?

This happens when the proxy to which you've assigned QuickAdd is deleted or disabled. Proxies are deleted when you click FoxyProxy's delete button. Proxies are disabled on Firefox startup if (1) they use a PAC file and (2) the PAC file can't load. If you don't want such proxies automatically disabled, follow these instructions.

***

When the PAC file isn't found, I don't want the proxy to be automatically disabled.

Close Firefox. In foxyproxy.xml, change the new "disableOnBadPAC" attribute from its default of "true" to "false". This can be set on a per-proxy basis so you will see "disableOnBadPAC" listed more than once.

Thanks but that doesn't

Thanks but that doesn't help. Firefox still starts up and tries to restore the session without a proxy. This leads to the dozens of failed tabs I described initially.

Loading PAC files can take

Loading PAC files can take some time, especially if they are located on a network instead of local drive (http:// versus file://). Firefox tries to load pages but FoxyProxy hasn't yet retrieved and processed the PAC file(s). If the PAC files load fast enough, you won't notice a problem. But if they don't, then the pages on session restore won't load - just as you describe.

Our suggestion is to copy the PAC files to your local hard drive (wecan explain how to do this if you don't know how to get them). Then point FoxyProxy to the local PAC files. This might fix it.