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