Fix for the crasher part of 7801: don't use nsAutoSelectionReset in InsertList
git-svn-id: svn://10.0.0.236/trunk@35501 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
33bd604dc3
commit
e12a8361e4
@ -1727,7 +1727,9 @@ nsHTMLEditor::InsertList(const nsString& aListType)
|
||||
// Find out if the selection is collapsed:
|
||||
if (NS_FAILED(res) || !selection) return res;
|
||||
|
||||
nsAutoSelectionReset selectionResetter(selection);
|
||||
// Using nsAutoSelectionReset isn't appropriate here, can cause a crash
|
||||
// http://bugzilla.mozilla.org/show_bug.cgi?id=7801
|
||||
// nsAutoSelectionReset selectionResetter(selection);
|
||||
|
||||
PRBool isCollapsed;
|
||||
res = selection->GetIsCollapsed(&isCollapsed);
|
||||
|
||||
@ -1727,7 +1727,9 @@ nsHTMLEditor::InsertList(const nsString& aListType)
|
||||
// Find out if the selection is collapsed:
|
||||
if (NS_FAILED(res) || !selection) return res;
|
||||
|
||||
nsAutoSelectionReset selectionResetter(selection);
|
||||
// Using nsAutoSelectionReset isn't appropriate here, can cause a crash
|
||||
// http://bugzilla.mozilla.org/show_bug.cgi?id=7801
|
||||
// nsAutoSelectionReset selectionResetter(selection);
|
||||
|
||||
PRBool isCollapsed;
|
||||
res = selection->GetIsCollapsed(&isCollapsed);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user