[Greasemonkey] XPCNativeWrapper watch

Aaron Boodman zboogs at gmail.com
Thu Jan 19 15:27:58 EST 2006


What are you trying to watch?

On 1/19/06, Lenny Domnitser <ldrhcp at gmail.com> wrote:
> I just spent some time struggling with a script just to remember that
> you can't watch properties on XPCNativeWrappers. Since I didn't need
> any GM functions, I was able to wrap the script like so:
>
> open('javascript:(' + uneval(function() {
>   // the script
> }) + ')();', '_self');
> // This does the same thing as GM_executeContentScript, which is in GM CVS
>
> However, does anybody know of a more sane solution that does not have
> the security problems of unsafeWindow? Is it intentional that watch
> doesn't work, or is it a Mozilla bug, and if so, is it expected to be
> fixed in upcoming Firefox releases?
>
> Thanks,
> -Lenny
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list