mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
![kin%netscape.com](/assets/img/avatar_default.png)
nsHTMLEditor::SetFinalSize] - A one line fix in HideResizers() which prevents the reported crash by setting mIsResizing to false. I assume we can't be resizing if the resize handles are being hidden. The assertion and null check in SetFinalSize() are just because I'm paranoid, but they should never be triggered if HideResizers() is called first. - The changes in StartResizing() makes it so that we don't create a new mouse motion listener if we already have one. We were creating a new listener each time we clicked on the handles, and never unregistering the old one ... this meant that the old listeners could be triggered if the editor were ever destroyed and the document left in tact ... allowing us to crash because the listeners keep an un-addref'd pointer to the HTMLEditor. Note that this crash is not likely to be hit in Mozilla since we always destroy the document and editor in Composer and MailCompose, but it can happen in an embedding context. r=glazman@netscape.com sr=sfraser@netscape.com