[Greasemonkey] GM-TNG - several bugs fixed

Mark Rickerby coretxt at gmail.com
Thu Jul 28 20:51:22 EDT 2005

Well, I still think from a usable API perspective, contentWindow is
the best name for what it is... As has already been pointed out, there
are valid uses for it to make changes to javascript running in the
page context.

More than ever, script authors really have to understand the
constraints and risks of the environment they are working in. GM (nor
it's developers) can't be expected to take responsibility too much
further than what has already been done to wrap the unsafe window
objects, and I'm not sure that
is going to be _that_ useful in the longer term.

Assumably, this will change when GM 0.4... becomes a proper release.

- Mark

On 7/28/05, John Plsek <gm at plsek.id.au> wrote:
> Mark Rickerby wrote:
> >>>>I named it "unsafeWindow" to make it clear that the functions and
> >>>>properties in this window are not to be trusted. But maybe it would
> >>>>make more sense - and be less scary - to just call it "contentWindow".
> >>>>
> >>>>
> >>"contentWindow" does seem like a more descriptive name to me than
> >>"unsafeWindow". Maybe it's not too late to change this?
> >>
> >>
> >>
> >
> >Yes, unsafeWindow does sound quite paranoid - but completely
> >understandable, given the very real feelings of shock I experienced
> >last week when seeing Mr Pilgrim's page reading out information about
> >files on my C drive...
> >
> >- Mark
> >_______________________________________________
> >Greasemonkey mailing list
> >Greasemonkey at mozdev.org
> >http://mozdev.org/mailman/listinfo/greasemonkey
> >
> >
> >
> >
> Why not. unsafeContentWindow ... or better still,
> unsafeContentOnlyUseIfYouKnowWhatYouAreDoingWindow ... the sheer length
> of that will deter people from using it too much ;)
> personally, from an "author of a script" point of view, I think
> unsafeWindow is more appropriate (built in early warning system in that
> name)
> from an "end user of a script" point of view (i.e., with no knowledge of
> the innards of greasemonkey), I can imagine looking through some
> scripts, seeing "unsafeWindow" ... and backing away from the script
> slowly, avoiding all eye contact!!!
> John
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey

mark rickerby                                        coretxt
http://maetl.coretxt.net.nz    http://coretxt.net.nz

More information about the Greasemonkey mailing list