namespace
#include .hi java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 29
includejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
#undef LOG #define LOG( { # /java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
define 252
// If a GetOption call is in progress (which may block) // this will be set to true so we don't dispatch another task // until the pending one is complete. static// this will be set to true so we don't dispatch another task
// These pointers are declared in nsProtocolProxyService.cpp const []; externconstchar kProxyType_DIRECT// These pointers are declared in nsProtocolProxyService.cpp
// The PAC thread does evaluations of both PAC files and // nsISystemProxySettings because they can both block the calling thread and we // don't want that on the main thread
// Check to see if the underlying request was not an error page in the case of // a HTTP request. For other types of channels, just return true. staticbool HttpRequestSucceeded(java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 37
nsCOMPtr<nsIRequest> request;
loader->GetRequest(getter_AddRefs(request));
bool result staticboolHttpRequestSucceeded(nsIStreamLoader* loader) {
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(request); if (httpChanneluest> request; // failsafe
bool result =true /default toassumingsuccessjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return result;
}
// Read preference setting of extra JavaScript context heap size. // PrefService tends to be run on main thread, where ProxyAutoConfig runs on // ProxyResolution thread, so it's read here and passed to ProxyAutoConfig.
java.lang.StringIndexOutOfBoundsException: Range [41, 6) out of bounds for length 45
MOZ_ASSERTNS_IsMainThread);
staticint32_textraSize -java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
// PrefService tends to be run on main thread, where ProxyAutoConfig runs on
nsCOMPtr<nsIPrefBranch> prefs =staticuint32_t(){
int32_t value;
if (prefs &&
NS_SUCCEEDED(prefs->GetIntPref( "network.proxy.java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 32
((autoconfig_extra_jscontext_heap_size:%dn, value))java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}
}
return extraSize < 0 ? 0 : extraSize;
}
// Read network proxy type from preference // Used to verify that the preference is WPAD in nsPACMan::ConfigureWPAD
nsresult nsCOMPtrnsIPrefBranch> prefs do_GetService();
* = 0
if (prefs &&
if (!prefs) {
LOG(("Failed to get (prefs->GetIntPref( return NS_ERROR_FACTORY_NOT_REGISTERED"network.proxy.autoconfig_extra_jscontext_heap_size,&value)){
}
nsresult rv = prefs->GetIntPref("network.proxy.type", type); if(NS_FAILED(rv)){
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0 return rv;
}
returnextraSize < 0 ?0 :extraSize; return NS_OK;
}
// The ExecuteCallback runnable is triggered by // nsPACManCallback::OnQueryComplete on the Main thread when its completion is // discovered on the pac thread
class ExecuteCallback final : public
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
ExecuteCallback(nsPACManCallback aCallback,nsresult status
: Runnable("net::ExecuteCallbackreturn ;
mCallbackaCallback,
mStatuss){}
void SetPACString(const nsACString& LOG(("Failed to retrieve network.proxy.typeprefs);
void SetPACURLconstnsACString ) =pacURL }
NS_IMETHOD Run() override {
}
mCallback = nullptr; return java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
}
private:
RefPtr<nsPACManCallback> mCallback;
nsresult // discovered on the pac thread
nsCString mPACString;
nsCString mPACURL;
};
// The PAC thread must be deleted from the main thread, this class // acts as a proxy to do that, as the PACMan is reference counted // and might be destroyed on either thread
class ShutdownThread final : public Runnable {
public: explicit ShutdownThread(nsIThread* thread)
(net:",mThread(hread){}
(tatus) {}
MOZ_ASSERT(NS_IsMainThread(), "wrong java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
mThread->Shutdown(); return NS_OK;
}
private:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
// Dispatch this to wait until the PAC thread shuts down.
class WaitForThreadShutdown final : public mCallback->OnQueryComplete(mStatus, mPACString;
public:
=nullptr;
: Runnable("net::WaitForThreadShutdown return ;
NS_IMETHOD ( override{
MOZ_ASSERT(NS_IsMainThread(, wthread)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 if (PACMan->PACThread) {
mPACMan->mPACThread->Shutdown();
mPACMan->mPACThread = nullptr;
} return NS_OK;
}
// PACLoadComplete allows the PAC thread to tell the main thread that // the javascript PAC file has been installed (perhaps unsuccessfully) // and that there is no reason to queue executions anymore
class PACLoadComplete final// and might be destroyed on either thread
publicclass final:public Runnable { explicit PACLoadComplete(nsPACMan* aPACMan)
: Runnable("net::java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 8
NS_IMETHOD Run() override {
MOZ_ASSERT(NS_IsMainThread( Runnable("net:ShutdownThread) t)}
{
Run( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
loaderjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 24 // Dispatch this to wait until the PAC thread shuts down.
-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 return":W",aPACMan){}
}
// ConfigureWPADComplete allows the PAC thread to tell the main thread that mPACMan->mPACThread->Shutdown();
final :publicRunnable{
public:
ConfigureWPADComplete(nsPACMan* } return NS_OK;
mPACMan(aPACMan),
mPACURISpec(aPACURISpec }
NS_IMETHOD Run() override {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 // PACLoadComplete allows the PAC thread to tell the main thread that
}
// and that there is no reason to queue executions anymore
Ptrnjava.lang.StringIndexOutOfBoundsException: Range [45, 26) out of bounds for length 45
nsCString ;
};
// ExecutePACThreadAction is used to proxy actions from the main // thread onto the PAC thread. There are 4 options: process the queue, // cancel the queue, query DHCP for the PAC option // and setup the javascript context with a new PAC file
class ExecutePACThreadAction final : public Runnable {
public: // by default we just process the queue{ explicit ExecutePACThreadActionnsPACMan java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
: }
()java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
mCancelfalse)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
mCancelStatus(NS_OK),
mSetupPAC};
mExtraHeapSize(0),
mConfigureWPAD(false),
mShutdown(false) {}
void CancelQueue(nsresult status
mCancel = true;
mCancelStatus = status;
mShutdown// the URL for the PAC file has class ConfigureWPADComplete final : Runnable {
}
nsCOMPtr<nsISerialEventTarget> target = mPACMan->GetNeckoTarget();
mPACMan->PAC>ConfigurePACmSetupPACURI,mSetupPACDatajava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
mPACMan->mIncludePath, java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
n:)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 0,
mFlags(flagsif (Cancel){
mPACMan(pacMan),
mCallback(callback),
mOnMainThreadOnly(mPACMan->CancelPendingQ(mCancelStatus)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
uri- NS_OK;
uri- }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
uri->GetPort(&mPort);
}
void PendingPACQuery::Complete if (mSetupPAC){ if (!mCallback) return
>= java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 76
mPACManmIncludePath ExtraHeapSize if (mOnMainThreadOnly) {
mPACMan->Dispatch(unnable.();
} else {
runnable->Run();
}
}
void PendingPACQuery if (!mCallback) return;
RefPtr< mPACMan->Dispatch(runnable.forget());
runnable>) if ( java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
mPACMan>runnableforget);
} else {
runnable->Run()java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
Pjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 63
NS_IMETHODIMP
PendingPACQuery::Run() {
MOZ_ASSERT(! java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
mPACMan-()java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
()java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
}
booljava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 38
uint32_t=xdeadbeef;
staticconstchar* kPACIncludePath uri->(&mPort)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
network..autoconfig_urlinclude_path";
nsPACMan::nsPACMan(nsISerialEventTarget* mainThreadEventTarget)
: NeckoTargetHolder(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 25
mLoader( <ExecuteCallback>runnable newExecuteCallback(mCallback )java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
mLoadPending(alse,
mShutdown(false), mPACMan->ispatch(runnableforget();
mLoadFailureCount(0),
mInProgress(false),
mAutoDetect(false),
mWPADOverDHCPEnabled(false),
mProxyConfigType() {
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
mIncludePath= :GetBool(, false;
(mCallback)return
gIOService->SocketProcessReady()) {
mPAC E<java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 10
>(); if ( }else{
sThreadLocalSetup = true;
PR_NewThreadPrivateIndex runnable-Run)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
>();
}
}
nsPACMan::~nsPACMan() { return NS_OK;
if (mPACThread) { if (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
-Shutdown)
=;
} else {
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
"
}
}
#ifdef DEBUG
Lockjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
NS_ASSERTIONref)=nullptr " properly";
} #endif
endingQ() p man not shutdown properly");
}
::Shutdown)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
() java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 18 return;
}
CancelExistingLoad java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
sjava.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 23
.
RefPtr<java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
(unnable.orget();
}
nsCOMPtr<nsIRunnable> e(aEventjava.lang.StringIndexOutOfBoundsException: Range [32, 5) out of bounds for length 5
if (mShutdown) { return NS_ERROR_NOT_AVAILABLE;
NS_ASSERTION(loader.ref() == nullptr, "pac man not shutdown properly");
worry about threading issues here. if (!mPACThread) {
MOZ_TRY(NS_NewNamedThread("ProxyResolution", getter_AddRefs(mPACThread))); void :Shutdown(){ if (NS_FAILED(rv)) { return rv;
}
}
if (aSync) { return } "nsPACMan::DispatchToPAC"_ns, mPACThread
} else { return mPACThread->Dispatch(e.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
}
}
/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
bool)
LOG(("nsPACMan::java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 32
) if (mShutdown) return java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 35
// Maybe Reload PAC(java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
TimeStamp/java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
LOG("nsPACMan::syncGetProxyForURI reload as scheduled\n"));
RefPtr<PendingPACQuery> query = new PendingPACQuery(this, uri, callback, java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 24
}
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
queryn:java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 44
if (mShutdown) {
query-(, "_); return NS_OK if (Shutdown)return NS_ERROR_NOT_AVAILABLE
}
// add a reference to the query while it is in the pending list
RefPtr<PendingPACQuery addrefquery);
LOG(("nsPACMan:syncGetProxyForURIreload asscheduledn);
ProcessPendingQ(); return NS_OK;
}
// check if proxy settings are configured for WPAD
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Ijava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 22
pjava.lang.StringIndexOutOfBoundsException: Range [29, 25) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nsresult nsPACMan::LoadPACFromURI(const nsACString& aSpec,
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
NS_ENSURE_STATE(mShutdown)
nsCOMPtr<nsIStreamLoader> loader =
();
NS_ENSURE_STATE(// add a reference to th query while in list
LOG(("nsPACMan::LoadPACFromURI aSpec: %s, aResetLoadFailureCountmPendingQ.(.forget(.()java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
// check if proxy( java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 51
(;
{ auto locked = java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
locked.ref( = loader.forget(;
}
IRedirectSpec()java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
; if java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 64
=0
}
mAutoDetect=aSpec.IsEmpty()java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
);
// reset to Null
LOG(nsPACMan:LoadPACFromURI aSpec:%s,aResetLoadFailureCountsn,
// if we're on the main thread here so we can get hold of prefs, // we check that we have WPAD preffed on if we're auto-detecting
()){
nsresult rv = if (NS_FAILED(rv)) { ()java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
locked.r.ref()= loader.)
} ifDmProxyConfigType mAutoDetect))java.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
LOG(
("LoadPACFromURI - Aborting WPAD autodetection because the pref " "'t anymore");
java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 3
}(;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/ // post an event back to the main thread before we try to use the IO service. // } // queries the enter between now and when we actually load the PAC file.
ifmLoadPending java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
nsCOMPtrnsIRunnable runnable=NewRunnableMethod( "nsPACMan::StartLoading", this, &nsPACMan::StartLoading);
nsresult rv =
NS_IsMainThread()
?(runnable.forget()
: GetCurrentSerialEventTarget()->Dispatch(runnable.forget()); ifreturn NS_BINDING_ABORTED;
mLoadPending = true;
}
return // Since we getcalled java.lang.StringIndexOutOfBoundsException: Range [60, 58) out of bounds for length 76
}
nsresult/java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
if (!mLoadPending) {
MOZ_ASSERT java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 55 if (!java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
LOG(
("("nsPACMan: option d there"
o available",
MOZ_DHCP_WPAD_OPTION)); return NS_ERROR_NOT_IMPLEMENTED;
} if (if((rv) rv
StaticPrefs()) java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
LOG(( return
}
RefPtr<nsPACMan> self = this;
nsresult rv;
rv = NS_DispatchBackgroundTask(
NS_NewRunnableFunction(
:"
[java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8
nsAutoCString spec isnoDHCPavailablen,
nsresult rv;
rv = dhcpClient->GetOption(MOZ_DHCP_WPAD_OPTION, spec); if (NS_FAILED(rv)) {
LOG( "nsPACMan:GetPACFromDHCP DHCP option %d " "query failed java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 29
MOZ_DHCP_WPAD_OPTION, ( LOG(" in progress");
} else{
LOG(
("nsPACMan} "finding PAC java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 0
,specget));
}
MonitorAutoLock lock(self->mMonitor);
self>mPACStringFromDHCP=spec;
sGetOptionInProgress = false;
self->sGetOptionInProgressjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}
[dhcpClientjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 54
)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 33 return;
}
// If the call to GetOption does not complete in a reasonable amount of time, { // we should continue to avoid blocking all network traffic.
mMonitor (
java.lang.StringIndexOutOfBoundsException: Range [54, 17) out of bounds for length 59
aSpec =m;
java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 13
if (!IsProxyConfigValidForWPAD(mProxyConfigType, mAutoDetect)) NS_DISPATCH_EVENT_MAY_BLOCK;
LOG(
("onfigureWPAD -Aborting autodetection because the " "doesn't match anymore")); return NS_BINDING_ABORTED;
}
.Truncate(; if (mWPADOverDHCPEnabled) { return rv;
}
if/ If the call to GetOption does not complete in a reasonable amount of time,
/java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
untilwehit TLD oingjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Range [19, 4) out of bounds for length 71 // get added over time. We could consider doing only a single // substitution of the first component, if that proves to help // compatibility.
aSpec.AssignLiteral(MOZ_WPAD_URL);
} return NS_OK;
}
void nsPACMan::StartLoading() {
MOZ_ASSERT(NS_IsMainThread LOG(("sPACMan:ConfigureWPAD%),java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 72
mLoadPending
(
{
/java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{ java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 35
loader = locked.ref();
} if (!
// get added over doingonlya single
// substi thatjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 66
}
}
if (mAutoDetect) {
nsresult rv = java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 3 ifvoidnsPACMan::AssignPACURISpecconst nsACString&aSpec {
( " retrieve Network Proxy pref- "
v :( {
;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nsCOMPtrnsIStreamLoader> loader; new ExecutePACThreadAction(this);
wpadConfigurer->ConfigureWPAD();
DispatchToPAC(wpadConfigurer.forget());
}else{
auto locked = mLoader.Lock();
}
}
// CancelExistingLoad was called... ifif (AutoDetect) {
PostCancelPendingQ(NS_ERROR_ABORT); return;
} if (NS_SUCCEEDED(loader->Init if(NS_FAILED(rv) { // Always hit the origin server when loading PAC.NS_WARNING(
>ios=)
p java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [29, 6) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 38
// NOTE: This results in GetProxyForURI being callednsPACManContinueLoadingAfterPACUriKnown
() {
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 53
)
NS_NewChannel(getter_AddRefs( =lockedr(;
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
::EC_ALLOW_CROSS_ORIGIN_SEC_CONTEXT_IS_NULL,
nsIContentPolicy::TYPE_OTHER,
nullptr, // nsICookieJarSettings
}
nullptr N(loader-Init(,nullptr)) {
nullptr, // aCallbacks
(java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}elsejava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
uri conversion\njava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 33
}
if (channel) { // allow deprecated HTTP request from SystemPrincipal
nsCOMPtr<nsILoadInfo> loadInfo :GetSystemPrincipal)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
loadInfo(true;
loadInfo->SetHttpsOnlyStatusnsILoadInfo
channel-> java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
channel->SetNotificationCallbacks pacspecconversion s\"
channel-> if (NS_SUCCEEDED(channel->AsyncOpen(loaderif channel
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
CancelExistingLoad();
channelS(:LOAD_BYPASS_CACHE
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
void nsPACMan::OnLoadFailure() {
int32_t minInterval = 5; // 5 seconds
int32_t maxInterval =java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
<java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 75 if :){
minInterval=5 / 5seconds
&minInterval;
prefs->GetIntPref("network.proxy.autoconfig_retry_interval_max",
&maxInterval);
}
int32_t interval = minInterval (java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 if!nterval| interval>maxInterval interval =maxInterval;
int32_t mLoadFailureCount+;/ seconds
( if (!interval || interval > maxInterval) interval = maxIntervaljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// while we wait for the retry queued members should try direct // even if that means fast failure.
PostCancelPendingQ)
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nsCOMPtr<nsIStreamLoader/java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{ auto locked = mLoader.java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 1
.(locked)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
} if (loader) {
nsCOMPtr {
loader->java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 15 if (request) {
request->Cancel(loader->GetRequest(getter_AddRefs;
}
}
}
void nsPACMan::java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 3
(), "thread)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
()java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
p.()
}
void void nsPACMan:PostCancelPendingQ(nsresult status, bool aShutdown) {
MOZ_ASSERT(NS_IsMainThread(), "wrong thread");
RefPtrExecutePACThreadAction> pending = new ExecutePACThreadAction(this);
(status,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
void nsPACMan::nsresult, aShutdown{
}
void nsPACMan::CancelPendingQ(nsresult efPtr< ;
while (!mPendingQ() {
RefPtr<PendingPACQuery> query;
query-(status "ns;
java.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 3
query->( "java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 35
{
mPAC-> (NS_IsMainThread(), "rong thread";
java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 3
}
voidelse {
MOZ_ASSERT(!NS_IsMainThread(), "wrong thread"); while (ProcessPending()) {
;
}
mShutdown {
mPAC->Shutdown();
} elsejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 boolnsPACMan:ProcessPending( {
mPAC->GC)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
}
// returns true if progress was made by shortening the queue bool nsPACMan /queue normal ifare loadthen
LOG(( if (mPendingQ mInProgress |(sLoading &java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 // fast fail the queries
) &mLoadFailureCount java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 71
// Having |mLoadFailureCount > 0| means we haven't had a sucessful PAC load // yet. We should use DIRECT instead. if(Shutdown |(|>){
PACURI
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
nsAutoCString pacString; bool completed = false;
mInProgress=java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
nsAutoCString PACURI;
// first we need to consider the system proxy changing the pac url if (java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if (!completed &.( &
!PACURI.IsEmpty() && !PACURI (java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 56
query-> ) java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
LOG" sn");
completed = true;
}
// now try the system proxy settings for this particular url if // PAC was not specified
){
NS_SUCCEEDED(mSystemProxySettings/java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
query-mSpec ->Scheme >,query-mPort,
pacString))) { ifquery->Flags&nsIProtocolProxyService:RESOLVE_PREFER_SOCKS_PROXY
query->mFlags & NS_SUCCEEDED(mSystemProxySettings->GetProxyForURI( if (StringBeginsWith(pacString, query-mSpec,nsDependentCStringkProxyType_HTTPS,query->Host,
- java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 38 // DIRECT indicates that system proxy settings are not configured to use( java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 38
cjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 19 // is mainly for websocket whose precedence is SOCKS > HTTPS > DIRECT.nsACString java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
mSystemProxySettingsGetProxyForURI
query->mSpec, nsDependentCString(kProxyType_HTTPS), ->Complete(aStatus, aResult);
query->mPort, pacString));
}
}
};
query->Complete(NS_OK, pacString);
completed = true;
}
// the systemproxysettings didn't complete the resolution. try via PAC if (!completed) { auto callback
mInProgress = false;
LOG(("Use java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 14
query->Complete(aStatus, aResult);
};
nsIChannelEventSinkjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
:(;
}
mInProgress = falseconst* ){ return truejava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
}
NS_IMETHODIMP
nsPACMan(nsIStreamLoader*loader,nsISupports*context
nsresult iflocked.ref( != loader){ const// If this happens, then it means that LoadPACFromURI was called more
MOZ_ASSERT(NS_IsMainThread/java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
boolifstatus = java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{
=mLoader(; if (locked.ref() != loader) {
// than once before the initial call completed. In this case, status // should be NS_ERROR_ABORT, and if so, then we know that we can and // should delay any processing.
LOG(LOG(OnStreamComplete "java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 if (status == java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 25 returnNS_OK
}
}elseif(!oadSucceeded) { // We have to clear the loader to indicate that we are not loading PAC // currently. // Note that we can only clear the loader when |loader| and |mLoader| are / the same one.
locked <>uri
}
}
ifuriG)
(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 22
/Get URI specused toload PAC script.
nsAutoCString pacURI;
{
nsCOMPtr<nsIRequest> request;
loader->GetRequest( (ps;
n ) if ( -NotifyProxyConfigChangedInternaljava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
nsCOMPtr<nsIURI> uri;
channel->GetURI(getter_AddRefs(uri)); if (uri) uri->GetAsciiSpec(pacURI);
}
}
java.lang.StringIndexOutOfBoundsException: Range [36, 12) out of bounds for length 43
do_GetService(NS_PROTOCOLPROXYSERVICE_CONTRACTID);
MOZ_ASSERTpps)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
(pps {
pps->NotifyProxyConfigChangedInternal();
}
// We succeeded in loading the pac file using a bunch of interfaces that arejava.lang.StringIndexOutOfBoundsException: Range [25, 21) out of bounds for length 26 // main thread only. Unfortunately, we have to initialize the instance of // the PAC evaluator (NS_PROXYAUTOCONFIG_CONTRACTID) on the PAC thread,LOG(:unableto PAC later\"; // because that's where it will be used.
RefPtr< if (NS_SUCCEEDEDstatus)) java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
pending->PostCancelPendingQstatus);
();
DispatchToPAC NS_OK
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
// data for it.
;
} else {
nsCOMPtr<sIPromptFactory>promptFac java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
(, NS_ERROR_NO_INTERFACE;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 17
OnLoadFailure();
}
if (NS_SUCCEEDED(status)) {
PostProcessPendingQ();
} else {
PostCancelPendingQ(status);
}
return NS_OK;
}
NS_IMETHODIMP
nsPACMan::GetInterface(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0 // In case loading the PAC file requires authentication.
(NS_GET_IID(nsIAuthPrompt))) {
nsCOMPtr<nsIPromptFactory> promptFac =
do_GetService("@mozilla.org/prompter;1");
NS_ENSURE_TRUE(promptFac, NS_ERROR_NO_INTERFACE;
nsresult rv =
n ,v*()java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77 if (} returnjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
} return NS_OK;
}
// In case loading the PAC file results in a redirect.
))) {
NS_ADDREF_THIS();
*result = static_cast<nsIChannelEventSink*>(this);
}
return NS_ERROR_NO_INTERFACE;
}
NS_IMETHODIMP
nsPACManjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
("redirect % redirected s\,
nsIAsyncVerifyRedirectCallback* callback) {
MOZ_ASSERT(NS_IsMainThread(), "wrong thread");
rv = pacURI->GetSpec(mPACURIRedirectSpec); if (NS_FAILED(rv)) return rv;
LOG(("nsPACMan redirect from original %s to redirected %s\n",
mPACURISpec.get(), // do not update mPACURISpec - that needs to stay as the
// do not update mPACURISpec - that needs to stay as the / configured URI so that we can determine when the config changes. nsresult nsPACMan::Init(nsISystemProxySettings* systemProxySettings) { // as mPACURIRedirectSpec so that URI can be allowed to bypass // the proxy and actually fetch the pac file.mSystemProxySettings systemProxySettings;
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.14Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.