[Project_owners] JavaScript bug causes Mozilla crash

Karsten Düsterloh mnenhy at tprac.de
Wed Dec 31 17:17:22 EST 2003

Patrick Brunschwig aber hob zu reden an und schrieb:
> One of the extensions triggering the bug was Enigmail (and that's why I
> was quite closely involved), but there are more extensions around doing
> the same. So, make sure you don't redeclare const's, e.g. by loading a
> script more than once in the same context.

Yes, Mnenhy has had the same problem (but that should actually be solved
since the last revision), and so I have been following that bug closely.

The point with errors of this kind is that everyone developing addons
should strive to get the console clean of errors *and* warnings!
- Enable these debug options (Prefs->Debug) in your testing platform:
  * enable JavaScript debug dump
  * show JavaScript strict warnings
  * show chrome JavaScript errors and warnings
- Refrain from defining global variables, constants or functions
whenever possible! I.e. use a pseudo-namespace by defining *one* global
object for your addon, with all your functionality as member

> For details, see http://bugzilla.mozilla.org/show_bug.cgi?id=206199
> The fix is approved for the Mozilla 1.6 release.

I really do hope it works - I've never seen the problem on my machine.


¹ Yes, the current Mnenhy release does not do this. But the next will.

More information about the Project_owners mailing list