chrome://favicon2 permission for component extensions

439 views
Skip to first unread message

Arif Siddique

unread,
May 21, 2021, 11:43:21 PM5/21/21
to Chromium-dev
Hi Chromium devs,
I'm looking to access chrome://favicon2 from component extensions page.

I'm getting below error -
"Not allowed to load local resource: chrome://favicon2/https://www.google.com/"

I have added chrome://favicon2 in allowed list of CSP in the component extension manifest. It is been mentioned that component extensions get access to chrome://* scheme by default.

I would really appreciate if anybody can provide pointers.

Thanks in advance,
Arif 

Demetrios Papadopoulos

unread,
May 24, 2021, 6:51:33 AM5/24/21
to arsiddiq...@gmail.com, Chromium-dev

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/0d35b8a8-ebd6-4ec5-8c3d-711e6198de82n%40chromium.org.

warmhug

unread,
Sep 13, 2022, 1:30:03 PM9/13/22
to Chromium-dev, dpapad, Chromium-dev, arsiddiq...@gmail.com
Hey guys, is there a solution to this problem now?

Liam Bowen

unread,
Nov 4, 2022, 11:07:37 AM11/4/22
to Chromium-dev, huale...@gmail.com, dpapad, Chromium-dev, arsiddiq...@gmail.com
The solution for an extension is to use the  magical    chrome-extension://<id>/_favicon/ URL. Unfortunately the samples are wrong and the documentation is sparse, but I have a PR open right now to fix the docs: https://github.com/GoogleChrome/chrome-extensions-samples/pull/771/files
The rest of the files are correct (remember to add the _favicon path to the web accessible resources and the correct permission): https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api/favicon

Reply all
Reply to author
Forward
0 new messages