5 <title>Test for blobURL in location
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
10 <script type=
"application/javascript">
12 var expectedData = null;
13 onmessage = function(e) {
14 if (expectedData === null) {
15 expectedData = e.data;
17 is(e.data, expectedData,
"Pathname should be not be changed");
23 var ifr = document.createElement(
"iframe");
24 document.body.appendChild(ifr);
26 ifr.src =
"data:text/html,<script>location=URL.createObjectURL(new%20Blob(['<script>parent.postMessage(location.pathname,\"*\");location.pathname=\"foo\";parent.postMessage(location.pathname,\"*\");<\/s' +'cript>'], {type:\"text/html\"}));<\/script>";
28 SimpleTest
.waitForExplicitFinish();