Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

chrome files + last modified date

4 views
Skip to first unread message

James Newell

unread,
Oct 23, 2006, 10:24:33 PM10/23/06
to
Hi,
Is there any way to retrieve the last modified date of a chrome file
(not neccessarily js) that may be in a jar or on the file system. Does
chrome support anything like http headers that it could be retrieved
from?

Thanks,
James

Benjamin Smedberg

unread,
Oct 24, 2006, 9:25:28 AM10/24/06
to

It's not readily supported, but you could hack it.
nsIChromeRegistry.convertChromeURL will convert a chrome URI into its
underlying URI. You can typically then QI this URI to nsIFileURL or
nsIJARURI and get the information you need from that. But as you can see,
that's a little hacky.

What in particular are you trying to do that you need to get the
last-modified date of chrome?

--BDS

Followups to the better newsgroup mozilla.dev.tech.network

0 new messages