DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Git (74cd81b8ce)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<!doctype html>
<meta charset="utf-8">
<title>Fetch: handling different schemes in redirects</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
  // All non-HTTP(S) schemes cannot survive redirects
  var url = "../resources/redirect.py?location=";
  var tests = [
    url + "mailto:a@a.com",
    url + "data:,HI",
    url + "facetime:a@a.org",
    url + "about:blank",
    url + "about:unicorn",
    url + "blob:djfksfjs"
  ];
  tests.forEach(function(url) {
    promise_test(function(test) {
      return promise_rejects_js(test, TypeError, fetch(url))
    })
  })
</script>