Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE HTML>
<title>test behavior of PROXY configuration (PAC)</title>
<meta name="pac" content="resources/proxy.sub.pac">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
const text = await response.text();
assert_equals(text, 'OK');
}, 'test that PAC metadata is respected for HTTP requests');
promise_test(async t => {
// This uses the normal host on a "wrong" port, to avoid issues
// with TLS certificate domain mismatches.
const response = await fetch('https://{{host}}:99/infrastructure/resources/ok.txt');
const text = await response.text();
assert_equals(text, 'OK');
}, 'test that PAC metadata is respected for HTTPS requests');
</script>