4 https://bugzilla.mozilla.org/show_bug.cgi?id=393968
7 <title>Test for Bug
393968</title>
8 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=393968">Mozilla Bug
393968</a>
15 <div id=
"content" style=
"display: none">
19 <script class=
"testbody" type=
"text/javascript">
21 /** Test for Bug
393968 **/
22 var req = new XMLHttpRequest();
23 req.open(
"POST", window.location.href);
24 req.setRequestHeader(
"Content-Type",
"text/plain; charset=us-ascii; boundary=01234567890");
25 req.send(
"Some text");
27 netscape.security.PrivilegeManager.enablePrivilege(
"UniversalXPConnect");
29 .QueryInterface(Components.interfaces.nsIHttpChannel)
30 .getRequestHeader(
"Content-Type"),
31 "text/plain; charset=UTF-8; boundary=01234567890",
32 "Headers should match");