diff --git a/editor/libeditor/HTMLEditor.cpp b/editor/libeditor/HTMLEditor.cpp index 496d056327de..416fb8482130 100644 --- a/editor/libeditor/HTMLEditor.cpp +++ b/editor/libeditor/HTMLEditor.cpp @@ -5845,12 +5845,14 @@ Element* HTMLEditor::GetActiveEditingHost( } nsIContent* content = focusNode->AsContent(); - // If the active content isn't editable, or it has independent selection, - // we're not active. - if (!content->HasFlag(NODE_IS_EDITABLE) || - content->HasIndependentSelection()) { + // If the active content isn't editable, we're not active. + if (!content->HasFlag(NODE_IS_EDITABLE)) { return nullptr; } + // Note that `Selection` shouldn't be in the native anonymous subtree of + // /