blob: 843339583c49e367dd6828528683be7ae6f69a90 [file] [log] [blame]
Anne van Kesteren66b54172010-08-11 18:02:171<!DOCTYPE html>
2<html>
3 <head>
4 <title>XMLHttpRequest: open() - "insecure" methods</title>
5 <script src="/resources/testharness.js"></script>
Ms2ger6f083e72012-08-05 08:38:146 <script src="/resources/testharnessreport.js"></script>
Hallvord R. M. Steen903154b2013-05-09 20:15:037 <link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-open()-method" data-tested-assertations="following::ol/li[5] following::ol/li[6]" />
Anne van Kesteren66b54172010-08-11 18:02:178 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 function method(method) {
13 test(function() {
14 var client = new XMLHttpRequest()
15 assert_throws("SECURITY_ERR", function() { client.open(method, "...") })
16 }, document.title + " (" + method + ")")
17 }
18 method("track")
19 method("TRACK")
20 method("trAck")
21 method("TRACE")
22 method("trace")
23 method("traCE")
24 method("connect")
25 method("CONNECT")
26 method("connECT")
27 </script>
28 </body>
29</html>