mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
Backed out changeset df6b25262c65 (bug 1244474) for timeouts in automation.py
This commit is contained in:
1 parent
3fc03cc623
commit
139240309c
5 files changed
+4
-40
No files matched your search
@@ -1956,8 +1956,6 @@ pref("network.cookie.lifetime.days", 90); // Ignored unless network.cooki
|
||||
|
||||
// The PAC file to load. Ignored unless network.proxy.type is 2.
|
||||
pref("network.proxy.autoconfig_url", "");
|
||||
// Strip off paths when sending URLs to PAC scripts
|
||||
pref("network.proxy.autoconfig_url.include_path", false);
|
||||
|
||||
// If we cannot load the PAC file, then try again (doubling from interval_min
|
||||
// until we reach interval_max or the PAC file is successfully loaded).
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "nsIDNSService.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "nsIConsoleService.h"
|
||||
#include "nsIURLParser.h"
|
||||
#include "nsJSUtils.h"
|
||||
#include "jsfriendapi.h"
|
||||
#include "prnetdb.h"
|
||||
@@ -736,8 +735,7 @@ ProxyAutoConfig::SetThreadLocalIndex(uint32_t index)
|
||||
|
||||
nsresult
|
||||
ProxyAutoConfig::Init(const nsCString &aPACURI,
|
||||
const nsCString &aPACScript,
|
||||
bool aIncludePath)
|
||||
const nsCString &aPACScript)
|
||||
{
|
||||
mPACURI = aPACURI;
|
||||
mPACScript = sPacUtils;
|
||||
@@ -746,7 +744,6 @@ ProxyAutoConfig::Init(const nsCString &aPACURI,
|
||||
if (!GetRunning())
|
||||
return SetupJS();
|
||||
|
||||
mIncludePath = aIncludePath;
|
||||
mJSNeedsSetup = true;
|
||||
return NS_OK;
|
||||
}
|
||||
@@ -844,29 +841,7 @@ ProxyAutoConfig::GetProxyForURI(const nsCString &aTestURI,
|
||||
mRunningIsInIsolatedMozBrowser = aIsInIsolatedMozBrowser;
|
||||
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
uint32_t schemePos;
|
||||
int32_t schemeLen;
|
||||
uint32_t authorityPos;
|
||||
int32_t authorityLen;
|
||||
uint32_t pathPos;
|
||||
int32_t pathLen;
|
||||
|
||||
nsCString clensedURI = aTestURI;
|
||||
|
||||
if (!mIncludePath) {
|
||||
nsCOMPtr<nsIURLParser> urlParser =
|
||||
do_GetService(NS_STDURLPARSER_CONTRACTID, &rv);
|
||||
rv = urlParser->ParseURL(aTestURI.get(), aTestURI.Length(),
|
||||
&schemePos, &schemeLen,
|
||||
&authorityPos, &authorityLen,
|
||||
&pathPos, &pathLen);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// cut off the path
|
||||
aTestURI.Left(clensedURI, aTestURI.Length() - pathLen);
|
||||
}
|
||||
}
|
||||
|
||||
JS::RootedString uriString(cx, JS_NewStringCopyZ(cx, clensedURI.get()));
|
||||
JS::RootedString uriString(cx, JS_NewStringCopyZ(cx, aTestURI.get()));
|
||||
JS::RootedString hostString(cx, JS_NewStringCopyZ(cx, aTestHost.get()));
|
||||
|
||||
if (uriString && hostString) {
|
||||
|
||||
@@ -30,8 +30,7 @@ public:
|
||||
~ProxyAutoConfig();
|
||||
|
||||
nsresult Init(const nsCString &aPACURI,
|
||||
const nsCString &aPACScript,
|
||||
bool aIncludePath);
|
||||
const nsCString &aPACScript);
|
||||
void SetThreadLocalIndex(uint32_t index);
|
||||
void Shutdown();
|
||||
void GC();
|
||||
@@ -109,7 +108,6 @@ private:
|
||||
bool mShutdown;
|
||||
nsCString mPACScript;
|
||||
nsCString mPACURI;
|
||||
bool mIncludePath;
|
||||
nsCString mRunningHost;
|
||||
uint32_t mRunningAppId;
|
||||
nsString mRunningAppOrigin;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "nsIAsyncVerifyRedirectCallback.h"
|
||||
#include "nsISystemProxySettings.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
#include "ipc/Nuwa.h"
|
||||
#endif
|
||||
@@ -211,8 +210,7 @@ public:
|
||||
mSetupPAC = false;
|
||||
|
||||
mPACMan->mPAC.Init(mSetupPACURI,
|
||||
mSetupPACData,
|
||||
mPACMan->mIncludePath);
|
||||
mSetupPACData);
|
||||
|
||||
RefPtr<PACLoadComplete> runnable = new PACLoadComplete(mPACMan);
|
||||
NS_DispatchToMainThread(runnable);
|
||||
@@ -304,9 +302,6 @@ PendingPACQuery::Run()
|
||||
static bool sThreadLocalSetup = false;
|
||||
static uint32_t sThreadLocalIndex = 0xdeadbeef; // out of range
|
||||
|
||||
static const char *kPACIncludePath =
|
||||
"network.proxy.autoconfig_url.include_path";
|
||||
|
||||
nsPACMan::nsPACMan()
|
||||
: mLoadPending(false)
|
||||
, mShutdown(false)
|
||||
@@ -319,7 +314,6 @@ nsPACMan::nsPACMan()
|
||||
PR_NewThreadPrivateIndex(&sThreadLocalIndex, nullptr);
|
||||
}
|
||||
mPAC.SetThreadLocalIndex(sThreadLocalIndex);
|
||||
mIncludePath = Preferences::GetBool(kPACIncludePath, false);
|
||||
}
|
||||
|
||||
nsPACMan::~nsPACMan()
|
||||
|
||||
@@ -242,7 +242,6 @@ private:
|
||||
uint32_t mLoadFailureCount;
|
||||
|
||||
bool mInProgress;
|
||||
bool mIncludePath;
|
||||
};
|
||||
|
||||
extern LazyLogModule gProxyLog;
|
||||
|
||||
Reference in new issue
Block a user