[Greasemonkey] Inspecting / Modifying global in-page variables in 0.6

Gareth Andrew freega at freegarethandrew.org
Thu Sep 15 19:34:42 EDT 2005


Hi Jeremy

I have to admit I really don't fully understand the XPCNativeWrapper
docs.  My understanding (seemingly wrong) was that unsafeWindow isn't an
XPCNativeWrapper, its the wrapped object underneath [1].   I also
thought that the window object in regular javascript was not wrapped (or
a lot of dhtml code will be broken by ff1.5).  My conclusion based on
these probably faulty assumptions is that there are no XPCNativeWrappers
involved. Where did I go wrong?



[1]http://developer.mozilla.org/en/docs/XPCNativeWrapper#Accessing_unsafe_properties

On Thu, 2005-09-15 at 11:30 -0500, Jeremy Dunck wrote:
> On 9/15/05, Gareth Andrew <freega at freegarethandrew.org> wrote:
> > Anthony,
> > 
> > This doesn't appear to be a greasemonkey problem, unsafeWindow should
> > behave exactly as window does in regular javascript.  It seems to be a
> > firefox 1.5 bug/feature.  The bug can be seen in the attached html page
> > without using Greasemonkey.
> 
> Yes, that's what the d'oh was about.
> 
> And now, for the most-linked article on this list.  ;-)
> http://developer.mozilla.org/en/docs/XPCNativeWrapper
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey



More information about the Greasemonkey mailing list