[Greasemonkey] Convert getContents to use nsIURI

Taral taralx at gmail.com
Mon Oct 10 16:17:17 EDT 2005


On 10/10/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 10/10/05, Taral <taralx at gmail.com> wrote:
> > My local copy of greasemonkey has changes to make getContents take an
> > nsIURI instead of a URL (string). It seems to avoid certain problems
> > on beta2. Anyone interested in a patch?
>
> Sure.  What problems?

On a fresh install of FF 1.5b2 with GM 0.6.2, Greasemonkey decided to
throw some kind of error (I can't remember what it was, I'm sorry),
whenever trying to read a file off local disk. Changing to this
interface solved that little problem.

I also note that nsIIOService's newChannelFromURI does proxy
processing, which is useful if getContents is ever used to retrieve
remote documents (not likely).

--
Taral <taralx at gmail.com>
"Computer science is no more about computers than astronomy is about
telescopes."
    -- Edsger Dijkstra


More information about the Greasemonkey mailing list