Bug 187759 opening menu with full-page (quicktime, flash) plugin crashes in [@ nsMenuBarFrame::SetActive ]

r=aaronl sr=bz
This commit is contained in:
timeless%mozdev.org 2003-01-06 20:12:04 +00:00
Родитель 9087ad5288
Коммит 04734d6ae4
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -235,7 +235,9 @@ nsMenuBarFrame::SetActive(PRBool aActiveFlag)
document->GetShellAt(0, getter_AddRefs(presShell));
nsCOMPtr<nsISelectionController> selCon(do_QueryInterface(presShell));
NS_ASSERTION(selCon, "No selection controller for presShell");
// there is no selection controller for full page plugins
if (!selCon)
break;
if (mIsActive) {// store whether caret was visible so that we can restore that state when menu is closed
PRBool isCaretVisible;