Bug 858192 - Correct error in nsIContentPrefService2 documentation about callbacks and observers. r=mak
authorDrew Willcoxon <adw@mozilla.com>
Fri, 05 Apr 2013 12:24:11 -0700
changeset 127860 a9aa417015a441837d2b6647eba0560c7d97d25e
parent 127859 50725df22b056deaa8242ae90c5774e74e6dae44
child 127861 6be07c836e6d8bcfb5ef1aac5821558c02ef06de
push id24513
push userphilringnalda@gmail.com
push dateSat, 06 Apr 2013 03:53:52 +0000
treeherdermozilla-central@768af8d8fad4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs858192
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 858192 - Correct error in nsIContentPrefService2 documentation about callbacks and observers. r=mak
dom/interfaces/base/nsIContentPrefService2.idl
--- a/dom/interfaces/base/nsIContentPrefService2.idl
+++ b/dom/interfaces/base/nsIContentPrefService2.idl
@@ -295,18 +295,19 @@ interface nsIContentPrefService2 : nsISu
    */
   void removeAllGlobals(in nsILoadContext context,
                         [optional] in nsIContentPrefCallback2 callback);
 
   /**
    * 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.
    *
    * @param name      The name of the preferences to observe.  Pass null to
    *                  observe all preference changes regardless of name.
    * @param observer  The observer.
    */