Bug #196008. crash when dynamically creating iframe using js+DOM. Make sure that the window has been created before setting the cursor.

This commit is contained in:
blizzard%redhat.com 2003-03-05 23:17:28 +00:00
Родитель 9f2821eb58
Коммит 8a59af932a
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -746,7 +746,12 @@ nsWindow::SetCursor(nsCursor aCursor)
if (nsnull != newCursor) {
mCursor = aCursor;
if (!mContainer)
return NS_OK;
gdk_window_set_cursor(GTK_WIDGET(mContainer)->window, newCursor);
XFlush(GDK_DISPLAY());
}
}