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
Родитель 2e9c45b7dc
Коммит 4a9fc1a0fe
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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.