I have a blank Firefox Add-On I made using the Getting Started Tutorial. When I run my extension using jpm run
I observe the following.
If I navigate to any image it appears like this (image is displayed nicely in the centre):
However, I have the same image store in my extension under: ./data/test.jpg
. When I navigate to resource://my-addon/data/test.jpg
I get the following blank page:
The image is there, because if I hover over it in the inspector, it shows:
Am I doing something wrong, missing something in the docs about rendering images or is there a bug with how images are being rendered from the extension?