sharing resources between diff webui chrome:// pages

26 views
Skip to first unread message

Mike Frysinger

unread,
May 31, 2023, 2:37:50 PM5/31/23
to chromium-dev
(disclaimer: i'm very inexperienced in this space, so the answer might be obvious)

we have chrome://credits which has chrome://credits/credits.css.  i'm trying to reuse that css in other webui pages like chrome://os-credits (there are many such pages, like 5 currently, and prob more in the future).  if i try to include chrome://credits/credits.css directly in chrome://os-credits, it fails immediately with:
Failed to load resource: net::ERR_INVALID_URL

oddly if i visit chrome://credits first, then reload os-credits, it works.  i'm guessing there's a caching layer here that is checked first.

what i can't figure out is where to allow this cross reference.  or if there's a chrome://resources/xxx URI that i can use instead to access the credits.css as resources seems like it's allowed to be shared all the time.  i haven't quite found out how the chrome://resources namespace is gathered, and guessing at some paths has been unsuccessful.

does anyone have any docs/source tips for me to look into ?
-mike

Giovanni Ortuño

unread,
May 31, 2023, 11:10:06 PM5/31/23
to vap...@chromium.org, chromium-dev
I think you'll have more luck asking in chrome-webui@ internally.

--
--
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/CAAbOScnSHO%2B%3Dcy8%2Bx8JJm2CCjPm-ACceXu8d7iX9gaCpL8%3DKZg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages