Bug 359210 Firefox hangs when loading the attached page

temporary fix by aaronleventhal r=ginn.chen
This commit is contained in:
ginn.chen%sun.com 2006-11-09 02:26:34 +00:00
Родитель ec8d1d8cb7
Коммит f9e1037f37
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -277,6 +277,9 @@ void nsAccessibleTreeWalker::UpdateFrame(PRBool aTryFirstChild)
}
if (aTryFirstChild) {
mState.frame = mState.frame->GetFirstChild(nsnull);
// temporary workaround for Bug 359210. We never want to walk frames.
// Aaron Leventhal will refix :before and :after content later without walking frames.
#if 0
if (mState.frame && mState.siblingIndex < 0) {
// Container frames can contain generated content frames from
// :before and :after style rules, so we walk their frame trees
@ -295,6 +298,7 @@ void nsAccessibleTreeWalker::UpdateFrame(PRBool aTryFirstChild)
mState.domNode = do_QueryInterface(mState.frame->GetContent());
mState.siblingIndex = eSiblingsWalkFrames;
}
#endif
}
else {
mState.frame = mState.frame->GetNextSibling();