Fix the browser crash caused by releasing other window's capture while dragging a MODAL_TYPE_CHILD window.
When a modal child window becomes visible, it tries to release the current capture window, which will trigger a END_DRAG_CAPTURE_LOST event to end the current dragging, which will cause the browser crash. We should disable this capture releasing behavior for a modal child window.
Simpler repro steps:
1) Open 3 tabs (say T1, T2, T3)
2) Open Print preview on T1
3) Press and hold Shift key and click on T1 and T2 in order
4) Release Shift key and press on T1 to drag the tabs T1 and T2 out
BUG=573451
Review URL: https://codereview.chromium.org/1643243003
Cr-Commit-Position: refs/heads/master@{#374458}
3 files changed