| <!DOCTYPE html> |
| <meta charset=utf-8> |
| <title>cobalt-special - xhr content length</title> |
| |
| <script src=/resources/testharness.js></script> |
| <script src=/resources/testharnessreport.js></script> |
| <script src=/common/utils.js></script> |
| <script src=resources/support.js?pipe=sub></script> |
| |
| <h1></h1> |
| |
| <div id=log></div> |
| <script> |
| var test = async_test(); |
| test.step(function() { |
| var client = new XMLHttpRequest(); |
| client.onloadstart = test.step_func(function() { |
| test.done(); |
| }); |
| // The purpose of this test is to verify that Cobalt does not crash when an |
| // erroneously long content length is specified in xhr response. |
| const too_large_buffer_size = "4987398465139"; |
| client.open("GET", "resources/content_length.py?content_length=" + too_large_buffer_size); |
| client.send(null); |
| }); |
| </script> |
| |