bug 243809 M17rc2 mozilla crash at [@ nsHTMLEditor::CheckSelectionStateForAnonymousButtons]
r = daniel sr= jst git-svn-id: svn://10.0.0.236/trunk@156822 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -203,6 +203,7 @@ nsHTMLEditor::CheckSelectionStateForAnonymousButtons(nsISelection * aSelection)
|
||||
nsCOMPtr<nsIDOMElement> focusElement;
|
||||
// let's get the containing element of the selection
|
||||
nsresult res = GetSelectionContainer(getter_AddRefs(focusElement));
|
||||
if (!focusElement) return NS_OK;
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
||||
// what's its tag?
|
||||
|
||||
Reference in New Issue
Block a user