<!DOCTYPE html>
<html>
<body>
<img src="mozilla.gif">
<script>
window.onload = () => {
    const image = document.querySelector('img');
    parent.postMessage({type: 'contentLoaded', imageSrc: image.src, imageWidth: image.width}, '*');
}
</script>
</body>
</html>
