mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
Bug 414338, nsFind crashes if passed a range rooted at a document, r+sr=jst
This commit is contained in:
parent
7ddb1d78b2
commit
b46aebb468
@ -363,7 +363,10 @@ nsFindContentIterator::MaybeSetupInnerIterator()
|
||||
void
|
||||
nsFindContentIterator::SetupInnerIterator(nsIContent* aContent)
|
||||
{
|
||||
NS_ASSERTION(aContent && !aContent->IsNativeAnonymous(), "invalid call");
|
||||
if (!aContent) {
|
||||
return;
|
||||
}
|
||||
NS_ASSERTION(!aContent->IsNativeAnonymous(), "invalid call");
|
||||
|
||||
nsIDocument* doc = aContent->GetDocument();
|
||||
nsIPresShell* shell = doc ? doc->GetPrimaryShell() : nsnull;
|
||||
|
Loading…
x
Reference in New Issue
Block a user