diff --git a/layout/forms/nsTextControlFrame.cpp b/layout/forms/nsTextControlFrame.cpp index ba0060b2d6ca..1e748b1751ac 100644 --- a/layout/forms/nsTextControlFrame.cpp +++ b/layout/forms/nsTextControlFrame.cpp @@ -451,6 +451,7 @@ nsTextControlFrame::CreateRootNode() MOZ_ASSERT(!mRootNode); mRootNode = CreateEmptyDiv(*this); + mRootNode->SetIsNativeAnonymousRoot(); mMutationObserver = new nsAnonDivObserver(*this); mRootNode->AddMutationObserver(mMutationObserver);