/* This Source Code Form is subject to the terms of the Mozilla Public *License,v. a ofthewasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsPACManjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#include"mozilla/Preferences.h" #include"nsContentUtils.h"
include.java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 #include." #includei"mozilla/.java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 #include"nsIDHCPClient.h" #include"nsIHttpChannel.h" "nsIPrefBranch." #nclude"nsIPromptFactory.h" #include"nsIProtocolProxyService.h" #include"nsISystemProxySettings.h" #include"nsIOService.h" #include"nsNetUtil.h" #include"nsThreadUtils.h" #include"mozilla/StaticPrefs_network.h" # "mozilla/Try.h"
// 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. staticexternconstcharkProxyType_HTTPS;
// These pointers are declared in nsProtocolProxyService.cpp externconstchar // nsISystemProxySettings because they can both block the calling thread and we
// 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.
java.lang.StringIndexOutOfBoundsException: Range [48, 32) out of bounds for length 59
request
result=;//default
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if (httpChannel) { // failsafe
(void)httpChannel->static uint32_t GetExtraJSContextHeapSize() {
(();
static =-;
}
// 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.
GetExtraJSContextHeapSize java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
MOZ_ASSERT(NS_IsMainThread() LOG" \" ;
static
if (extraSize < 0) java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
< =do_GetServiceNS_PREFSERVICE_CONTRACTID
int32_t valuetype= ;
java.lang.StringIndexOutOfBoundsException: Range [7, 4) out of bounds for length 16
NS_SUCCEEDEDprefs>java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
proxy" value) java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
LOG(
extraSize = value;
< java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
}
// Read network proxy type from preference // Used to verify that the preference is WPAD in nsPACMan::ConfigureWPAD
nsresult // discovered on the pac thread
*type = 0;
nsCOMPtr<java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
if (!prefs) public:
LOG(("Failed to get a preference service object")n*aCallback )
NS_ERROR_FACTORY_NOT_REGISTERED
}
()
(tatus {java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
from prefs") return rv;
}
LOG( void(onst &pacURL){mPACURL ;java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
// The ExecuteCallback runnable is triggered by // nsPACManCallback::OnQueryComplete on the Main thread when its completion is // discovered on the pac thread
class mPACStringjava.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
public// The PAC thread must be deleted from the main thread, this class
ExecuteCallbacke/ and might be java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
: java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
mCallback:Runnable":ShutdownThread) mThread( }
mStatuss){java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
void SetPACString(const nsACString& java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 24
void SetPACURL(const nsACString&;
NS_IMETHOD Runjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
, mPACURL)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
mCallback java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
NS_OK
}
privateRun) {
MOZ_ASSERTNS_IsMainThread) "rong ";
nsresult mStatus;
nsCStringmmjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 20
}
// 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
ShutdownThread java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
public: explicit ShutdownThread(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
:(":",mThread(hread){java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
// Dispatch this to wait until the PAC thread shuts down.
class mPACMan>PostProcessPendingQ(();
public: explicit WaitForThreadShutdown(nsPACMan* aPACMan)
: Runnable(net:aitForThreadShutdown) mPACMan( java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
//---------------------------java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if (mPACMan->mPACThread) {
mPACMan->mPACThread->Shutdown();
mPACManclass ConfigureWPADComplete: java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
}
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// 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
NS_IMETHOD Run() override {
MOZ_ASSERT(NS_IsMainThread(), "wrong // cancel the queue, query // and setup the javascript context with ajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ autoexplicit (*aPACMan)
loader.ref() = nullptr;
}
mPACManaPACMan, return NS_OK;
}
(,
RefPtr<nsPACMan,
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
// ConfigureWPADComplete allows the PAC thread to tell the main thread that // the URL for the PAC file has been found
publicjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
publicjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
mSetupPACjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
(:C,
mPACMan(}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
NS_IMETHOD)
MOZ_ASSERT!java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 51
mPACMan>mPACURISpec;
mCancel java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 return NS_OK;
}
private:
RefPtr<nsPACMan> mPACMan;
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 72
m-( ,
// 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 ExecutePACThreadAction(nsPACMan* aPACMan)
: RefPtr<PACLoadComplete runnable = new()
mPACMan-.);
mCancel(false),
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
mSetupPACfalsejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 26
)
mShutdown(specjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
void-(java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
;
=java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}
void SetupPAC(constchar* data, uint32_t dataLen, const nsACString& pacURI,
uint32_t
mSetupPAC = bool mShutdownjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
(data,dataLen;
nsPACManCallback callback, uint32_t flags,
mExtraHeapSize = extraHeapSize;
}
NS_IMETHOD Run() override {
MOZ_ASSERT(!NS_IsMainThread(), "wrong mPort(0), if ( java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
, mShutdown;
mCancel = false; return;
}
( java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
SetupPAC=false;
nsCOMPtr< RefPtr<ExecuteCallback runnable newExecuteCallback(mCallback, status);
mPACMan->mPAC->ConfigurePAC(mSetupPACURI, mSetupPACData,
->,m,
mPACManrforget)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
if ( !java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [23, 6) out of bounds for length 43 return -SetPACURL(pacURL;
}
if (mConfigureWPAD) {
nsAutoCString spec;
mConfigureWPAD = false;
mPACMan->ConfigureWPAD( ->ispatch(.())java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
RefPtr<ConfigureWPADComplete> runnable = new ConfigureWPADComplete(mPACMan, spec);
mPACMan->Dispatch(runnable.forget()); return NS_OK;
}
endingPACQuery::PendingPACQuery(nsPACMan* pacMan, nsIURI* uri,
nsPACManCallback* callbackjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 boolmainThreadResponse)
: Runnable("net::PendingPACQuery"),
mPort(0) -PostQuerythis;
mFlags(flags),
mPACManpacMan,
mCallback(callback),
mOnMainThreadOnly(mainThreadResponsejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
uri->static sThreadLocalSetup = false;
uri->GetAsciiHost(mHost); static uint32_t sThreadLocalIndex =0// out of range
GetPort;
}
void PendingPACQuery: "proxy.java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 48 if (!mCallback) return;
RefPtr = mCallback,status;
runnable->SetPACString(pacString); if ( mLoadPendingf)
>(.()
} elsejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 27
runnable0{
}
}
void =Preferences:(kPACIncludePath) if! ;
RefPtrExecuteCallback> runnable = new ExecuteCallback(mCallback, NS_OK);
runnable->SetPACURL(pacURL); if (mOnMainThreadOnly) { } else {
mPACMan->Dispatch(runnable. mPAC = MakeUnique<ProxyAutoConfig
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
runnable-(;
}
}
NS_IMETHODIMP
PendingPACQuery::Run() {
MOZ_ASSERT( }
mPAC-SetThreadLocalIndex(ThreadLocalIndex)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
}
nsPACMan::java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 3
: {
autoloader=mLoader.();
mLoadPending(false),
mShutdown(false),
mLoadFailureCount(0),
(loader.()= ,pac mannotshutdown)java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
mAutoDetect.isEmpty,"ac manjava.lang.StringIndexOutOfBoundsException: Range [48, 45) out of bounds for length 69
void nsPACMan( {
mProxyConfigType(0) {
MOZ_ASSERTNS_IsMainThread(, "pacman must be created on main thread");
mIncludePath = Preferences::GetBool if (mShutdown) { if (StaticPrefs::network_proxy_parse_pac_on_socket_process() &&
gIOService->java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 else {
mPAC = MakeUnique<ProxyAutoConfig>(); if (!sThreadLocalSetup) {
ThreadLocalSetup = true;
PR_NewThreadPrivateIndex(&sThreadLocalIndex, nullptr);
}
mPAC->SetThreadLocalIndex(sThreadLocalIndex);
}
}
nsPACMan::~nsPACMan() {
MOZ_ASSERT(mShutdown, "Shutdown // will run after we return instead
if (mPACThread) { if ( Dispatchrunnable.)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
mPACThread java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
} java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
RefPtr<ShutdownThread> ((nsPACMan:DispatchToPAC);
.)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
}
}
#ifdef DEBUG
{
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 75
} #endif
// have to
}
nsPACMan:Shutdown()java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 return; if
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
CancelExistingLoad elsejava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
if (mPACThread) {
PostCancelPendingQ(NS_ERROR_ABORT, /*aShutdown =*/true);
/ observer service on thread shutdown so we post a shutdown runnable that // will run after we return instead.
RefPtr<WaitForThreadShutdown> runnable mainThreadResponse {
Dispatch(runnable.forget());
}
// Lazily create the PAC thread. This method is main-thread only so we don't / have to worry about threading issues here. if (!mPACThread) (Ajava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 65
MOZ_TRY(NS_NewNamedThread
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0 if (NS_FAILED(rv)) { return
}
}
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
flagsjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
mainThreadResponse{
(":java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 31
-CompleteNS_ERROR_NOT_AVAILABLE"ns;
m NS_ERROR_NOT_AVAILABLE;
// Maybe Reload PAC if
TimeStamp>(;
:: \")java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
LoadPACFromURI(mAutoDetect // check if proxy settings are configured for WPAD
}
RefPtr<PendingPACQuery> query = new PendingPACQuery(this, uri, callback, flags, mainThreadResponse);
if(sPACURI(uri)) { // deal with this directly instead of queueing it
query->Complete(NS_OK, ""_ns (roxyConfigType == nsIProtocolProxyService::PROXYCONFIG_SYSTEM && return NS_OK;
}
return DispatchToPAC(query.forget());
}
nsresult nsPACMan::PostQuery(PendingPACQuery* query) java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MOZ_ASSERT(,true;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (mShutdown) {
query->Complete NS_ENSURE_STATE!)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
do_CreateInstanceNS_STREAMLOADER_CONTRACTID
e it is thependinglist
RefPtr<PendingPACQuery> java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 0
insertBackaddref.(take);
ProcessPendingQ(); return NS_OK;
}
// check if proxy settings are configured for WPAD
gValidForWPAD(nt proxyConfigType, bool wpadSystemSettings) { return proxyConfigType == nsIProtocolProxyService::PROXYCONFIG_WPAD ||
(proxyConfigType == nsIProtocolProxyService: aResetLoadFailureCount ? "true" : "false"));
CancelExistingLoad()java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
}
nsresult nsPACMan:)=) return.Truncate;
}
nsresult mNormalPACURISpec.Truncate(); // set at load time boolaResetLoadFailureCount) {
NS_ENSURE_STATE(!mShutdown);
(":aSpec : %\"java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
PromiseFlatCString(if (mAutoDetect && NS_IsMainThread java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
aResetLoadFailureCount ? "true" : "false"));
CancelExistingLoad;
{ auto locked = mLoader.Lock();
locked)forget(;
}
(!IsProxyConfigValidForWPA(,mAutoDetect){
mNormalPACURISpec.Truncate(); // set at load time if (java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 10
mLoadFailureCount doesnmatch )
}
mAutoDetect = aSpec.IsEmpty();
mPACURISpec.AssignaSpec)
// reset to Null
mScheduledReload = TimeStamp();
// 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 if (mAutoDetect && NS_IsMainThread()) {
nsresult rv = GetNetworkProxyTypeFromPref(&mProxyConfigType); if// Since we might get called from nsProtocolProxyService::Init, we need to return rv;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 5 if ( if (!mLoadPending) {
LOG(
( <> java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 55 " Dispatchforget)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
}
}
might calledfrom nsProtocolProxyService::Init, we need to // post an event back to the main thread before we try to use the IO service. // // But, we need to flag ourselves as loading, so that we queue up any PAC / queries the enter between now and when we actually load the PAC file.
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 22
nsCOMPtr<nsIRunnable> runnable =NewRunnableMethod( "nsPACMan::StartLoading", this, &nsPACMan::StartLoading);
nsresult rv =
:GetPACFromDHCPDHCP%queryfailedbecause "
? "is n DHCP client\njava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
: }
NS_FAILED() return;
StaticPrefs::network_proxy_dhcp_wpad_only_one_outstanding{
}
return NS_OK;
nsresult java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [13, 10) out of bounds for length 14
MOZ_ASSERT"nsPACMan:GetPACFromDHCP, if (!mDHCPClient) {
LOG(
("nsPACMan::GetPACFromDHCP DHCP option %d query failed because there " " DHCP client \n",
MOZ_DHCP_WPAD_OPTIONjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 24 return
(:java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 61 if (sGetOptionInProgress &&
StaticPrefs::network_proxy_dhcp_wpad_only_one_outstanding()) {
LOG(GetPACFromDHCPtaskalreadyin") return NS_ERROR_IN_PROGRESSelse java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
MonitorAutoLock lock(mMonitor);
mPACStringFromDHCP.Truncate() MOZ_DHCP_WPAD_OPTION .())java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
-> java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
= true;
rv = NS_DispatchBackgroundTask(
NS_NewRunnableFunction( "nsPACMan },
[= nsCOMPtr{mDHCPClient}, self] {
nsAutoCString spec;
nsresult rv;
}elsejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
LOG
("nsPACMan::StaticPrefs::network_proxy_dhcp_wpad_timeout_sec())); "finding PAC URL %s\n",
MOZ_DHCP_WPAD_OPTION, spec. = PACStringFromDHCP
}
MonitorAutoLock lock(self->mMonitor);
self->java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 15
sGetOptionInProgress
(nsPACManC%),(aSpec.et);
!() wrong)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
);
if" - WPAD theprefjava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
aSpec) return
}
/java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79 / we should continue to avoid blocking all network traffic.
mMonitor.Wait(TimeDuration::// hosts's FQDN, stripping components a .D so
StaticPrefs::network_proxy_dhcp_wpad_timeout_sec()));
aSpec = // is dangerous in the face of an incomplete list of TLDs, and
mPACStringFromDHCP.Truncatejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
:java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 53 ":(s" PromiseFlatCString(aSpec).get()));
MOZ_ASSERT(!NS_IsMainThread(), "wrong thread");
if = false;
LOGjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
("ConfigureWPAD / CancelExistingLoad was called... "doesn't match anymore")); return NS_BINDING_ABORTED;
}
if (aSpec.IsEmpty()) { auto locked=mLoader.Lock(); // hosts's FQDN, stripping components until we hit a TLD. Doing so // is dangerous in the face of an incomplete list of TLDs, and TLDs
time.Wecouldconsider a single
tutionofthe first component,ifthat proves to help // compatibility.
aSpec.AssignLiteral(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 5
} return NS_OK;
}
( )
NS_WARNING
Couldnot Type when autodetecting"
}
{ // CancelExistingLoad was called...
<java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 37
{
java.lang.StringIndexOutOfBoundsException: Range [17, 6) out of bounds for length 35
loader
voidnsPACMan:( java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 if (! LOG(("nsPACMan")
()java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
turnjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
}
m{
nsresult rv = java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 11
NS_FAILEDrv)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
nsCOMPtr<nsIIOService> ios do_GetIOService(; "roxy. Halting."); return;
}
RefPtr<ExecutePACThreadAction> wpadConfigurer =
nsCOMPtr<nsIChannel> channel;
wpadConfigurer->ConfigureWPAD();
DispatchToPAC( nsCOMPtr<nsIURI> pacURI;
} else {
ContinueLoadingAfterPACUriKnown();
}
}
nsCOMPtr<nsIStreamLoader> loader;
{ auto locked= mLoader.Lock()java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
loader .ef);
}
// CancelExistingLoad was called... if (!loader) {
PostCancelPendingQnsILoadInfo:java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 78 return;
} if(S_SUCCEEDED>nitthis )) java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 // Always hit the origin server when loading PAC.
nsCOMPtr<nsIIOService>ios= do_GetIOService); if (ios) {
nsCOMPtr<nsIChannel> channel;
nsCOMPtr<nsIURI> } else {
NS_NewURI(getter_AddRefs(pacURI), LOG(("nsPACMan::StartLoading Failed pacspec %s",
// NOTE: This results in GetProxyForURI being called if (pacURI) {
nsresult rvjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MOZ_RELEASE_ASSERT(NS_SUCCEEDED(rv));
NS_NewChannel(getter_AddRefs(channel), pacURI,
nsContentUtils:(),
nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_SEC_CONTEXT_IS_NULL,
->SetAllowDeprecatedSystemRequests);
nullptr >(nsILoadInfo::HTTPS_ONLY_EXEMPT);
nullptr, // PerformanceStorage
nullptr, // aLoadGroup
nullptr, // aCallbacks
nsIRequest::LOAD_NORMAL, ios);
} else {
edpacspec uri %n,
mPACURISpec.get()));
}
(){ // allow deprecated HTTP request from SystemPrincipal
nsCOMPtr }
loadInfo->SetAllowDeprecatedSystemRequests(true);
loadInfo->SetHttpsOnlyStatus(java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 3
->etLoadFlagsnsIRequest:);
channel}
channel->SetTRRMode(nsIRequest::TRR_DISABLED_MODE); if (NS_SUCCEEDED(channel->java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
}
}
voidnsPACMan:OnLoadFailure( {
int32_t ;//
int32_t )java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0 ifprefs) {
prefs->GetIntPref("network.proxy.autoconfig_retry_interval_min",
& (! | ) java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
refs-GetIntPref"p"
&maxInterval);
}
int32_tinterval = minInterval << ++; /seconds
java.lang.StringIndexOutOfBoundsException: Range [16, 2) out of bounds for length 66
mScheduledReload = TimeStamp::Now() + TimeDuration::java.lang.StringIndexOutOfBoundsException: Index 64 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 24 out of bounds for length 3
}
void nsPACMan::CancelExistingLoad() { loaderswap*locked;
nsCOMPtr<nsIStreamLoader> java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3 auto locked = mLoader.Lock();
loader.swap(*locked);
} if (loader) {
nsCOMPtr<nsIRequest> request;
(request))java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 if
}
}
}
void nsPACMan::PostProcessPendingQ() {
MOZ_ASSERT( MOZ_ASSERT(NS_IsMainThread"wrong thread";
RefPtr<ExecutePACThreadAction> RefPtr<ExecutePACThreadAction> pending =newExecutePACThreadActionthis;
DispatchToPACDispatchToPAC(endingforget);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
::java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 68
<java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 76
RefPtr<pending->CancelQueue aShutdown);
pending->CancelQueue(status, aShutdown);
DispatchToPAC(pending.forget());
}
CancelPendingQ( status,bool) {
MOZ_ASSERT(!java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
RPendingPACQuery>query
.isEmpty)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
-Completestatus,"_);
}
if (aShutdownl query->ompletestatus,"_ns);
mPAC->Shutdown();
}
}
void nsPACMan if(aShutdown) {
MOZ_ASSERT!) w); while
;
}
if (mShutdown) {
mPAC-
} java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
mPAC->if() java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
}
}
// returns true if progress was made by shortening the queue
nsPACMan:){
LOG((">(; if (
/ during load,but we are retrying a failed // fast fail the queries if(| IsLoading()&& mLoadFailureCount)) returnfalse;
// Having |mLoadFailureCount > 0| means we haven't had a sucessful PAC load // yet. We should use DIRECT instead. if (mShutdown || IsLoading() || mLoadFailureCount > 0) {
query->Complete( if (mInProgress || (IsLoading(&&!mLoadFailureCount))returnfalse; return true;
}
RefPtr<>java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 bool completed
mInProgress (| IsLoading) | mLoadFailureCount >0){
nsAutoCString;
// first we need to consider the system proxy changing the pac url if (mSystemProxySettings
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
!PACURI.IsEmpty() & mInProgress true;
query->UseAlternatePACFile(PACURI);
LOG(("Use PAC from java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
completed = true;
}
// now try the system proxy settings for this particular url if // PAC was not specified
&&mSystemProxySettings && PACURI.sEmpty)&java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
NS_SUCCEEDEDmSystemProxySettings->GetProxyForURI(
query->mSpec, query->mScheme, query->mHost, query->mPort,
pacString)){ if (query->mFlags & nsIProtocolProxyService ((UsePACfromsystem settings: %\n, PACURI.get())java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
query->mFlags &java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if (StringBeginsWith(pacString, nsDependentCString(java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 26
nsCaseInsensitiveUTF8StringComparator) { / DIRECT indicates that system proxy settings are not configured to use // SOCKS proxy. Try https proxy as a secondary preferrable proxy. Thisquery-,query->,query-mHost -, // is mainly for websocket whose precedence is SOCKS > HTTPS > DIRECT. (-> :: &&
java.lang.StringIndexOutOfBoundsException: Range [57, 20) out of bounds for length 58
query> (),->Hostjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
query>mPort,pacString));
}
}
LOG(("Use proxy from system settings: %s\n", pacString.get()));
query->CompleteNS_OK,pacString);
completed = true;
}
// the systemproxysettings didn't complete the resolution. try via PAC if (!ompleted) { auto callback = [query(query)](nsresult aStatus, const nsACString& aResult) {
LOG(("Use proxy from PAC: NS_SUCCEEDED(mSystemProxySettings->GetProxyForURI(
queryjava.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
std::move(callback));
}
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 return true;
}
NS_IMPL_ISUPPORTS(nsPACMan, java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
)
NS_IMETHODIMP
nsPACMan:: std:movecallback));
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
uint8_tdata java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
MOZ_ASSERT(NS_IsMainThread() ;
bool loadSucceeded = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 auto ::OnStreamComplete* *,
(ref)!= java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 // If this happens, then it means that LoadPACFromURI was called more // 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(
(= NS_ERROR_ABORT) { return NS_OK;
}
} auto locked .Lock)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 // We have to clear the loader to indicate that we are not loading PAC// If this happens, then it means that LoadPACFromURI was called more // currently. // Note that we can only clear the loader when |loader| and |mLoader| are // the same one.
locked.ref() = nullptr;
}
}
(": entry\n));
if (loadSucceeded) { // Get the URI spec used to load this PAC script.
nsAutoCString pacURI;
{ return NS_OK;
loader- }
!java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 32
/
nsCOMPtrnsIURI ;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5 if (ri) uri->etAsciiSpec(pacURI)
} if loadSucceeded) {
nsCOMPtr</ the to this.
do_GetService(java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 5
MOZ_ASSERTp)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
nsCOMPtr<sIChannel>channel =do_QueryInterface(request)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
pps>();
}
// We succeeded in loading the pac file using a bunch of interfaces that are // main thread only. Unfortunately, we have to initialize the instance of // the PAC evaluator (NS_PROXYAUTOCONFIG_CONTRACTID) on the PAC thread, // because that's where it will be used.
RefPtr}
pending->SetupPAC(nsCOMPtr<nsIProtocolProxyService> pps =
GetExtraJSContextHeapSize());
DispatchToPAC(pending.forget();
if pps){
// Even if the PAC file could not be parsed, we did succeed in loading the // data for it.
mLoadFailureCount = 0;
} else { // We were unable to load the PAC file (presumably because of a network // failure). Try again a little later.
((OnStreamComplete load,retrylatern))
OnLoadFailure();
}
NS_IMETHODIMP
nsPACMan::GetInterface(const nsIID& iid, void** result) { // Even if the PAC file could not be parsed, we did succeed in loading the if (iid.Equals mLoadFailureCount =0;
<> =
do_GetService("@mozilla.org/prompter;1");
NS_ENSURE_TRUEpromptFacNS_ERROR_NO_INTERFACE)
nsresult rv =
promptFac->GetPrompt(nullptr, iid, reinterpret_cast<void**>(result)); ifjava.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 31
} return
}
// In case loading the PAC file results in a redirect. if (iid.if (iid.Equalsjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 46
)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
*result promptFac->GetPrompt(ullptr,iid reinterpret_cast<oid*>result); return NS_OK;
}
nsresult rv = NS_OK;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 0
rv = pacURI->GetSpec(mPACURIRedirectSpec); if (NS_FAILED(rv)) return rv;
LOG("nsPACMan redirect from original sto %\n"
mPACURISpec.get() java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 76
// configured URI so that we can determine when the config changes. // However do track the most recent URI in the redirect change // as mPACURIRedirectSpec so that URI can be allowed to bypass // the proxy and actually fetch the pac file.
callback return NS_OK/
}
java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
mSystemProxySettings=;
mDHCPClient = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 return NS_OK;
}
}nsPACMan:Init(nsISystemProxySettingssystemProxySettings java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70 // namespace mozilla
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.33 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.