Bug 164928. Crash in type ahead find. Patch by Akkana. r=aaronl, sr=bz
git-svn-id: svn://10.0.0.236/trunk@128521 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1161,6 +1161,10 @@ nsTypeAheadFind::RangeStartsInsideLink(nsIDOMRange *aRange,
|
||||
PRBool canContainChildren;
|
||||
|
||||
startContent = do_QueryInterface(startNode);
|
||||
if (!startContent) {
|
||||
NS_NOTREACHED("startContent should never be null");
|
||||
return;
|
||||
}
|
||||
origContent = startContent;
|
||||
|
||||
if (NS_SUCCEEDED(startContent->CanContainChildren(canContainChildren)) &&
|
||||
|
||||
Reference in New Issue
Block a user