diff --git a/dom/base/nsINode.h b/dom/base/nsINode.h index df171a1588ac..270e05f89347 100644 --- a/dom/base/nsINode.h +++ b/dom/base/nsINode.h @@ -1980,7 +1980,10 @@ private: protected: nsIContent* mNextSibling; nsIContent* mPreviousSibling; - nsIContent* mFirstChild; + // This reference is non-owning and safe, since in the case of documents, + // it is set to null when the document gets destroyed, and in the case of + // other nodes, the children keep the parents alive. + nsIContent* MOZ_NON_OWNING_REF mFirstChild; union { // Pointer to our primary frame. Might be null.