Ah, nevermind. I know what the problem here is. We need to teach the IOService + HTTP protocol handler how to use nsIProtocolProxyService::AsyncResolve. If we do that, then the code in nsPACMan.cpp that pre-resolves the URL's hostname will help eliminate this bug for cases where the given hostname is resolved by the PAC script.
Ah, nevermind. I know what the problem here is. We need to teach the IOService + HTTP protocol handler how to use nsIProtocolProx yService: :AsyncResolve. If we do that, then the code in nsPACMan.cpp that pre-resolves the URL's hostname will help eliminate this bug for cases where the given hostname is resolved by the PAC script.