Subj : Re: Method added into Object.prototype: can't call directly inside XUL context. To : netscape.public.mozilla.jseng From : zwetan Date : Tue Oct 11 2005 04:20 pm > > Sorry, this is the bug Martin Honnen points out: > https://bugzilla.mozilla.org/show_bug.cgi?id=300079 > > It's due to how XUL scripts are precompiled. It should be possible to > fix with some work. Let me write a comment in that bug. > is this behaviour only with Function.prototype members or also with all the others core objects ? ex: if I define something as String.prototype.endsWith = function() {....} I will be able to acces it in the HTML document but not in a XUL document, am I right here ? zwetan .