author | Valentin Gosu <valentin.gosu@gmail.com> |
Sat, 20 Jun 2015 00:03:57 +0300 | |
changeset 249904 | 4eac2966dab77debb7f6a227f924e35451e63f48 |
parent 249903 | 026e77985e59fa57715aa30b3117091caeaba597 |
child 249905 | 5da7e1b2b6f7146eb098c9eb31332c42ebf6c990 |
push id | 61390 |
push user | cbook@mozilla.com |
push date | Mon, 22 Jun 2015 08:33:06 +0000 |
treeherder | mozilla-inbound@738e3dcf5eed [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | mcmanus |
bugs | 1142083 |
milestone | 41.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
new file mode 100644 --- /dev/null +++ b/netwerk/test/mochitests/empty.html @@ -0,0 +1,16 @@ +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> + +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> +</head> +<body> + This page does nothing. If the loading page managed to load this, the test + probably succeeded. +</body> +</html>
--- a/netwerk/test/mochitests/mochitest.ini +++ b/netwerk/test/mochitests/mochitest.ini @@ -2,21 +2,25 @@ skip-if = buildapp == 'b2g' || toolkit == 'android' # Android: Bug 1111137 & 1078267 support-files = method.sjs partial_content.sjs rel_preconnect.sjs user_agent.sjs user_agent_update.sjs + redirect_idn.html^headers^ + redirect_idn.html + empty.html [test_arraybufferinputstream.html] [test_partially_cached_content.html] [test_rel_preconnect.html] skip-if = e10s [test_uri_scheme.html] [test_user_agent_overrides.html] skip-if = e10s [test_user_agent_updates.html] skip-if = e10s [test_user_agent_updates_reset.html] [test_xhr_method_case.html] skip-if = e10s +[test_idn_redirect.html]
new file mode 100644 --- /dev/null +++ b/netwerk/test/mochitests/redirect_idn.html^headers^ @@ -0,0 +1,3 @@ +HTTP 301 Moved Permanently +Location: http://exämple.test/tests/netwerk/test/mochitests/empty.html +X-Comment: Bug 1142083 - This is a redirect to http://exämple.test
new file mode 100644 --- /dev/null +++ b/netwerk/test/mochitests/test_idn_redirect.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML> +<html> +<!-- + Bug 1142083 - IDN Unicode domain redirect is broken + This test loads redirectme.html which is redirected simple_test.html, on a different IDN domain. + A message is posted to that page, with responds with another. + Upon receiving that message, we consider that the IDN redirect has functioned properly, since the intended page was loaded. +--> +<head> + <title>Test for URI Manipulation</title> + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> +</head> +<body> + +<pre id="test"> +<script type="text/javascript"> + +SimpleTest.waitForExplicitFinish(); + +var iframe = document.createElement("iframe"); +iframe.src = "about:blank"; +iframe.addEventListener("load", finishTest); +document.body.appendChild(iframe); +iframe.src = "http://mochi.test:8888/tests/netwerk/test/mochitests/redirect_idn.html"; + +function finishTest(e) { + ok(true); + SimpleTest.finish(); +} + +</script> + +</body> +</html> +