mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
70dd88b7d0
This should have been added in https://hg.mozilla.org/mozilla-central/rev/745c0c2aa1fe (bug 464339). Furthermore, the image being missing was the result of using checkin-needed on a non-GIT-style diff "containing" an image. --HG-- rename : layout/reftests/view-source/reftests.list => layout/reftests/view-source/reftest.list
9 lines
286 B
HTML
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>
|
|
|