diff --git a/embedding/browser/webBrowser/nsIWebBrowser.idl b/embedding/browser/webBrowser/nsIWebBrowser.idl index 552d6f65886..b3a4dd2d196 100644 --- a/embedding/browser/webBrowser/nsIWebBrowser.idl +++ b/embedding/browser/webBrowser/nsIWebBrowser.idl @@ -148,11 +148,13 @@ interface nsIWebBrowser : nsISupports * their own implementation if they intend to override or prevent * how certain kinds of content are loaded. * - * @note The implementation should not refcount this interface; it - * should assume that a non nsnull value is always valid. - * The embedder should explicitly set this value back to nsnull - * if the parent content listener is destroyed before the - * browser object. + * @note If this attribute is set to an object that implements + * nsISupportsWeakReference, the implementation should get the + * nsIWeakReference and hold that. Otherwise, the implementation + * should not refcount this interface; it should assume that a non + * null value is always valid. In that case, the embedder should + * explicitly set this value back to null if the parent content + * listener is destroyed before the browser object. * * @see nsIURIContentListener */ diff --git a/uriloader/base/nsIURIContentListener.idl b/uriloader/base/nsIURIContentListener.idl index 39cb25b79d3..e4c7a294057 100644 --- a/uriloader/base/nsIURIContentListener.idl +++ b/uriloader/base/nsIURIContentListener.idl @@ -153,6 +153,14 @@ interface nsIURIContentListener : nsISupports /** * The parent content listener if this particular listener is part of a chain * of content listeners (i.e. a docshell!) + * + * @note If this attribute is set to an object that implements + * nsISupportsWeakReference, the implementation should get the + * nsIWeakReference and hold that. Otherwise, the implementation + * should not refcount this interface; it should assume that a non + * null value is always valid. In that case, the caller is + * responsible for explicitly setting this value back to null if the + * parent content listener is destroyed. */ attribute nsIURIContentListener parentContentListener; };