dom/file/tests/test_nonascii_blob_url.html
author Nicolas Silva <nsilva@mozilla.com>
Mon, 20 Aug 2018 15:23:54 +0200
changeset 432446 202fb9c610d07d734245e8b621eda8f80e3d2250
parent 386807 750a63c052d521d2577761be4bc9f24eb31cba96
child 469641 ba6f655fd68963530c866d0d4a48c3db3d307777
permissions -rw-r--r--
Bug 1482109 - Hook the memory pressure observer up with WebRender. r=sotaro

<!DOCTYPE HTML>
<html>
<head>
  <title>Test blob URL for non-ascii domain</title>
  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<div id="content"></div>
<script class="testbody" type="text/javascript">

var iframe = document.createElement('iframe');
iframe.src = 'http://xn--exmple-cua.test/tests/dom/file/tests/file_nonascii_blob_url.html';
iframe.onload = function() {
  iframe.contentWindow.postMessage('hello world', '*');
  onmessage = function(e) {
    is(e.data, 'hello world', "Blob URL for non-ascii domain works");
    SimpleTest.finish();
  }
}

document.getElementById('content').appendChild(iframe);
SimpleTest.waitForExplicitFinish();

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