DescriptionFix crash in the HWNDMessageHandler::HandleMouseInputForCaption function.
Crash occurs because we are referencing a member variable left_button_down_on_caption_ after the DefWindowProc call for WM_NCLBUTTONDOWN, which could destroy the window and in
turn the HWNDMessageHandler instance.
Fix is to reset the left_button_down_on_caption_ member before the DefWindowProc call.
BUG=581341
TEST=Covered by views_unittest WidgetTest.DestroyInSysCommandNCLButtonDownOnCaption
Committed: https://crrev.com/a54e6c0cb503d67d3eb086f936bc0429825d0c3b
Cr-Commit-Position: refs/heads/master@{#371892}
Patch Set 1 #Patch Set 2 : Added views_unittest DestroyInSysCommandNCLButtonDownOnCaption, which verifies that we don't crash … #
Total comments: 4
Patch Set 3 : Address review comments #
Messages
Total messages: 17 (9 generated)
|