Comment 104 for bug 219385

Revision history for this message
In , Karlt (karlt) wrote :

Comment on attachment 561682
nsWindow.cpp, v4

I think this can land for mozilla-central now
(but please check it passes try server).

(In reply to Martin Stránský from comment #83)
> If this or any other window is destroyed,
> get_window_for_gdk_window() or gdk_window_get_children() just returns NULL,
> right?

Yes, provided their GdkWindow parameter still exists.

> Or are you concerned with already obtained list of windows from
> children list?

Yes, and gdk_window_get_children() is called after dispatching the event.

Even events dispatched for painting can flush layout, causing JS notifications, and so anything can happen.