tenfourfox/layout/reftests/view-source/view-source-image.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

9 lines
286 B
HTML

<script>
var url = document.location.href;
var imageUrl = url.replace(/[/][^/]*$/, "/blue-circle-16x16.png");
var viewSourceImageUrl = "view-source:" + imageUrl;
var html = "<iframe src='#url#'></iframe>".replace(/#url#/, viewSourceImageUrl);
document.write(html);
</script>