Bug 1823979 - Remove strict assertion in text selection. r=morgan

I was trying to anticipate all the conditions that would bring us
to a non-text leaf text point in a text selection. But it is hard to
account for other "correct" cases so this assertion should probably just
go away.

Differential Revision: https://phabricator.services.mozilla.com/D173760
This commit is contained in:
Eitan Isaacson 2023-03-28 16:24:15 +00:00
Родитель 8bd8a6e842
Коммит 385aaab8e0
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -566,7 +566,6 @@ MOZ_CAN_RUN_SCRIPT static std::pair<nsIContent*, int32_t> DOMPointForSelection(
}
}
MOZ_ASSERT(aPoint.mAcc->IsDoc() || content->HasFlag(NODE_IS_EDITABLE));
return {content, 0};
}