Created attachment 409160 [details] [diff] [review]
This would be nice instead of hacking around with nsIComponentReistrar.
The topic name would be better described as 'common-dialog-loaded'
Created attachment 409163 [details] [diff] [review]
This is needed for the test in bug 498648.
Comment on attachment 409163 [details] [diff] [review]
The patch for this bug has landed on 1.9.1 as part of bug 498648, but that patch did not work because the observerService variable was undeclared in 1.9.1. This patch fixes the issue:
This patch also fixes the perma-orange in bug 543071.