Bug 858192 - Correct error in nsIContentPrefService2 documentation about callbacks and observers. r=mak

This commit is contained in:
Drew Willcoxon 2013-04-05 12:24:11 -07:00
parent 240eef7967
commit 1979581f15

View File

@ -300,8 +300,9 @@ interface nsIContentPrefService2 : nsISupports
* Registers an observer that will be notified whenever a preference with the
* given name is set or removed.
*
* When a set or remove method is called, observers are notified after the set
* or removal completes but before method's callback is called.
* When a set or remove method is called, observers are called after the set
* or removal completes and after the method's callback is called, and they
* are called in the same turn of the event loop as the callback.
*
* The service holds a strong reference to the observer, so the observer must
* be removed later to avoid leaking it.