Problem loading icons from the extension with chrome-extension://...

174 views
Skip to first unread message

Tahtu

unread,
Aug 11, 2022, 8:57:46 AM8/11/22
to Chromium Extensions
I'm developing an extension with my own icons for the extension button in the toolbar of chrome, depending on the state of my extension.

While doing this, I get sometimes a bug inside the DevTools “Laden von Abrufen beendet: GET …”, (English: “Loading fetches finished: GET ….”) followed by the URL of the icon starting with “chrome-extension://myid/path/icon_16.png”.

Inside the manifest.json file I have this:
  "manifest_version": 3,
  "web_accessible_resources": [{
    "matches": ["*://*/*"],
    "resources": ["*.*"]
  }]

Why can Chrome not access to these URLs sometime, even sometimes it works as well?

wOxxOm

unread,
Aug 11, 2022, 11:17:44 AM8/11/22
to Chromium Extensions, Tahtu
If the icon is actually shown, it's simply a bug in devtools.

Tahtu

unread,
Aug 12, 2022, 1:37:04 AM8/12/22
to Chromium Extensions, wOxxOm, Tahtu
My mistake: I've used chrome.action.setIcon with an absolute path, but it must be relative to the extension path.

Tahtu

unread,
Aug 14, 2022, 2:17:49 AM8/14/22
to Chromium Extensions, Tahtu, wOxxOm
Reply all
Reply to author
Forward
0 new messages