Chromium Code Reviews
DescriptionFix crash/leak issue in native_view_host_gtk.cc.
* There are two path to NativeViewDetaching and we need to handle them differently.
1) Via gtk destroy signal. In this case, we should not try to remove the native view from parent because it's being deleted.
2) Through NativeViewHost::Detach(). In this case we need to remove the native view from parent because we added it to parent in NativeViewAttached().
* Fix NativeControlGtk not to destroy the native view because it's now destoryed by NativeViewHostGtk.
* Fixed TabContentViewGtk so that it owns the nativew view. The native view was destroyed when Detached.
* Added more checks so that test can catch regression.
BUG=26154
TEST=The same procedure in bug should now pass. I added several checks that lead tests to fail if this problem exists.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35220
Patch Set 1 #
Total comments: 8
Patch Set 2 : " #Messages
Total messages: 5 (0 generated)
|