blob: 9d45eee61479cfddf3c8e3608b656b8603b3552b [file] [log] [blame]
<html>
<head>
<title>Regression test for bug 20795 and 100445</title>
</head>
<body>
<p>
This is a test for https://bugs.webkit.org/show_bug.cgi?id=191046, it makes sure that
forms POSTed with a content-type of text/plain actually send data in text/plain when cross-site.
</p>
<form enctype="text/plain" method="post" action="http://localhost:8000/misc/resources/form-post-textplain.php" name="f">
<input type="hidden" name="f1" value="This is field #1 &!@$%&#10;='<>">
<input type="hidden" name="f2" value='This is field #2 ""'>
<input type="submit" value="press me">
</form>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
document.f.submit();
</script>
</body>
</html>