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.
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) for_gdk_ window( ) or gdk_window_ get_children( ) just returns NULL,
> If this or any other window is destroyed,
> get_window_
> 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.