[Project_owners] privileged and unprivileged javascript prototypes

Neil neil at parkwaycc.co.uk
Mon Nov 7 00:36:17 EST 2005


Eric Jung wrote:

>In my extension, I write:
>
>  String.prototype.foo = "foo";
>
>The foo property/attribute is then accessible in my extension on all String objects, but not on String objects created in javascript from remote websites (i.e., outside my extension). Is there any way to make this property/attribute available to them, as well?
>  
>
Each window has its own String prototype (theWindow.String.prototype).


More information about the Project_owners mailing list