Brawl345/Image-Reverse-Search-WebExtension

Restoring saves icons with moz-extension: URL

Brawl345 opened this issue ยท 5 comments

This is a really strange bug... When settings are restored, saved and the page is reloaded, the icons will not be loaded with their relative URL (../icons/) but with their full moz-extension: URL

E.g.: <img src="moz-extension://5381521c-8398-4fff-951a-89213525574d/icons/google.png">

I debugged it a little and it seems it's some odd bug with saving, because the URLs are fine when restored, but change again when saved.

This only make chrome.storage will save longer string for icon but nothing wrong in extension function right?

It's rather minor, it happens for example when loading the add-on in about:debugging - the UUID will change and the icons on the options page won't show until the defaults are restored. Don't know if it also happens when the add-on is uninstalled and installed again later. Anyway it's a strange bug that I noticed.

According to official:

In section Developing and debugging

when you install it in Firefox through about:debugging. If you then reload the extension using the "Reload" button, the same ID will be used. If you then restart Firefox and load the add-on again, it will get a new ID.

And, in section Publishing

It's only at this point that the add-on will be assigned a permanent ID, which will be embedded in the signed packaged extension.

I think this bug only happens when you use about:debugging to develop. We can keep this issue until confirmed. ๐Ÿ˜‰

That's great! I'll close the issue, since it only happens in about:debugging which is just for developing anyway.