| <script src="../../resources/js-test.js"></script> |
| description("Makes sure that using a Blob URL as frame URL works as expected."); |
| let blobContents = `<body>FOO</body>`; |
| let iframe = document.createElement("iframe"); |
| let blob = new Blob([blobContents], { type: "text/html" }); |
| let blobURL = URL.createObjectURL(blob); |
| shouldBeEqualToString("iframe.contentDocument.body.innerText", "FOO"); |
| shouldBeTrue("iframe.contentWindow.location.href == blobURL"); |
| shouldBeTrue("iframe.contentDocument.URL == blobURL"); |
| document.body.append(iframe); |