[Project_owners] Scoping of Javascript identifiers

Julian Reschke julian.reschke at gmx.de
Fri Mar 17 12:08:05 EST 2006


Hi,

I recently noticed that my "openwebfolder" extension causes GreaseMonkey 
to fail loading user scripts (see 
<http://bugzilla.mozdev.org/show_bug.cgi?id=13476>).

This is apparently caused by the fact that identifiers used by both 
extensions live in the same namespace, and "openwebfolder" happens to 
define a function "getContents", which is invoked by GM.

Question: am I doing something wrong, that is, is there a way to avoid 
collisions like that?

Best regards, Julian


More information about the Project_owners mailing list