Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE HTML>
<html>
<head>
<title>Test blob URL for non-ascii domain</title>
<script 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.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>