summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_nonascii_blob_url.html
blob: 89183f461357215e81630ff3fcb37e6539c224de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test blob URL for non-ascii domain</title>
</head>
<body>
  <p id="result"></p>
  <script type="application/javascript">

window.onmessage = function(e) {
  var blob = new Blob([e.data]);
  var url = URL.createObjectURL(blob);

  var xhr = new XMLHttpRequest();
  xhr.open('GET', url, false);
  xhr.send(null);

  parent.postMessage(xhr.responseText, '*');
}

  </script>
</body>
</html>