Chromium Code Reviews
DescriptionCRASH at Tab::OnMouseReleased
Some strange thing is happening that it crashes for view::HitTest, it can never
ENTER that function. It seems that the tab is being destroyed and as pkasting
stated on IRC:
"Part of this may be because our retarded Views designs can't distinguish which
buttons are being held versus clicked in these sorts of cases (I filed a bug on
this about a year and a half ago, internally)"
When a tab has ended dragging (EndDrag), if something was being dragged and you
end it, it actually cleans the TabDelegate and assigns its value to 'freed
memory' which is 0xfeeefeee. Therefore it crashes while dragging, because the
object no longer exists. I couldn't do if (delegate_) cause that always returns
true since delegate has 0xfeeefeee.
So I just changed the return type from void to bool for underlying EndDragImpl
and pumped it to tab.cc. That way, we can know if a tab is destroyed or not.
BUG=5819
(http://crbug.com/5819)
TEST=Dragging tabs around, closing while dragging, and closing tabs.
Patch Set 1 #Patch Set 2 : '' #
Total comments: 1
Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #
Total comments: 1
Patch Set 6 : '' #
Total comments: 9
Patch Set 7 : '' #Patch Set 8 : '' #
Total comments: 8
Patch Set 9 : '' #
Messages
Total messages: 16 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||