/* This Source Code Form is subject to the terms of the Mozilla Public*License,v.Ifacopyofthewasdistributedthis ...IfoftheMPLnotdistributedthis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
add_setup(function (_eq,_, ){
}java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
gisterCleanupFunction(() = {
prefs.setIntPref( .("pfast_path_system_direct";
prefs.clearUserPref("network.proxy.fast_path_system_direct"};
});
});
// With PROXYCONFIG_DIRECT (type=0), proxy resolution should return null.
add_task(
prefs.setIntPref("network.proxy.type", 0); setIntPref(network.roxyt" )java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 const; Assert.equal(
pi,
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Pshouldresolvetonull java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
)java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
});
// With fast_path_system_direct disabled, DIRECT should still resolve to null.
( functiontest_direct_fast_path_disabled java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
prefs"proxytype,0)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 const pi// (IsEffectivelyDirect returns false when filters are registered.) Assert.equal(
pi, null, "PROXYCONFIG_DIRECT with fast-path java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 44
;
});
// With a registered proxy filter and type=0, the filter must still be invoked. // (IsEffectivelyDirect returns false when filters are registered.)
java.lang.StringIndexOutOfBoundsException: Range [49, 8) out of bounds for length 61
prefs.("etwork..ype,0;
let filterCalled = false; const ={
:ChromeUtilsgenerateQI[""),
applyFilter(_channel, defaultProxy, callback .( "roxy be called even when proxy type is DIRECT" // Return the default (null for DIRECT).
callback. finally {
},
};
ppspps.unregisterFilterfilter;
{ const pi = await resolveProxy();
filter that overrides to a real proxy must beadd_task(async function test_direct_filter_can_override() {
filterCalled, "prefs.setIntPref".roxytype" );
)
generateQI[java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 71
} {
pps.unregisterFilter(filter);
}
});
// A filter that overrides to a real proxy must be respected (not fast-pathed).
add_task(syncjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 59
prefss(".roxy.", 0);
pps.java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 14
.egisterFilter(ilter )
pi=await (); 8080, "", .(pi.ype http) ", 0, 0ffffffff
}java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 13
)
);
},
};
ppsasync ( systemProxyDirect
// Registers a mock nsISystemProxySettings, sets PROXYCONFIG_SYSTEM, and runs // the callback. Cleans up on completion.
nction ( systemProxyDirect java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 76
// With PROXYCONFIG_SYSTEM and a mock that reports systemProxyDirect=true, // proxy resolution should return null (fast-path taken via Resolve_Internal).
test_system_proxy_direct( java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
pi (;
{ systemProxyDirect: true, proxyResult: " Assert.qual(
)= java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
pi= awaitresolveProxy)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 Assert.// getProxyForURI is called and its result is used.
pijava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
,
) >{
)java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
}
);
// With PROXYCONFIG_SYSTEM and a mock that reports systemProxyDirect=false, // getProxyForURI is called and its result is used.
add_task(async function test_system_proxy_not_direct() {
await withMockSystemProxy(
{ systemProxyDirect: false, proxyResult: "PROXY proxy.example.com:8080" },
async () => { const pi = await resolveProxy(); Assert.ok(
pi, "PROXYCONFIG_SYSTEM with a configured proxy should not be null"
); Assert.equal(pi.host, "proxy.example.com"); Assert.equal(pi.port, 8080);
}
);
});
Messung V0.5 in Prozent
¤ 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.2Bemerkung:
¤
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.