Commit 876931e2 authored by aaronleventhal@moonset.net's avatar aaronleventhal@moonset.net
Browse files

bug 402686. Crashes @CheckVisibilityInParent. r=ginn.chen, a=schrep

parent ef14ee78
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3265,6 +3265,9 @@ PRBool nsAccessible::CheckVisibilityInParentChain(nsIDocument* aDocument, nsIVie
      nsIContent* content = parentDoc->FindContentForSubDocument(document);
      if (content != nsnull) {
        nsIPresShell* shell = parentDoc->GetPrimaryShell();
        if (!shell) {
          return PR_FALSE;
        }
        nsIFrame* frame = shell->GetPrimaryFrameFor(content);
        while (frame != nsnull && !frame->HasView()) {
          frame = frame->GetParent();