зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9f2821eb58
Коммит
8a59af932a
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче