Thanks I'll give that a go. I am using it to check that the user's date
has not been set back in time.

Benjamin Smedberg wrote:
> James Newell wrote:
> > 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?
>
> 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

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to