GonkHal tries to register a weak reference for the xpcom shutdown event, but it the VibratorRunnable doesn't implement weak references. If you try to add weak reference support to VibratorRunnable, then you can't use it NS_NewThread. There is also some issues with shutdown where it may try to reinstantiate a new runnable if Vibrate or CancelVibrate is called after shutdown is initiated.
Created attachment 662827 [details] [diff] [review] Cleanup shutdown code - remove weak reference
5 years ago