Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Issue 1295683003: Remove the CHECK from the DirectManipulationHelper::Activate function as it is firing in Canary on … (Closed)

Created:
5 years, 4 months ago by ananta
Modified:
5 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, darin-cc_chromium.org, jam, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the CHECK from the DirectManipulationHelper::Activate function as it is firing in Canary on Windows 10. Crash dump analysis reveals the error code to be E_UNEXPECTED. Some disassembling into the Direct Manipulation Activate function did not reveal a code path where the above error is returned. Based on the crash dump analysis it looks like Activate is called on a window which is visible but has 0 dimensions which could possibly be triggering this. In any case it is also possible that calling Activate multiple times on a window may be triggering this. I was unable to repro the crash though. Proposed fixes include :- 1. Remove the CHECK from the DirectManipulationHelper::Activate function. 2. Add a new function DirectManipulationHelper::Deactivate which deactivates Direct manipulation processing on the window. This is called from views and content when the window is hidden. BUG=520492 Committed: https://crrev.com/ee20880b00c6381d4393fd9f1927459034871c63 Cr-Commit-Position: refs/heads/master@{#343526}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address sky review comments #

Total comments: 2

Patch Set 3 : Add SetMsgHandled to the windowpos changed handler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -7 lines) Patch
M content/browser/renderer_host/legacy_render_widget_host_win.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M ui/gfx/win/direct_manipulation.h View 1 chunk +5 lines, -1 line 0 comments Download
M ui/gfx/win/direct_manipulation.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
ananta
5 years, 4 months ago (2015-08-13 23:38:57 UTC) #2
sky
https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc#newcode2512 ui/views/win/hwnd_message_handler.cc:2512: void HWNDMessageHandler::OnWindowPosChanged(WINDOWPOS* window_pos) { Wouldn't it be safer to ...
5 years, 4 months ago (2015-08-14 14:55:26 UTC) #3
ananta
https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc#newcode2512 ui/views/win/hwnd_message_handler.cc:2512: void HWNDMessageHandler::OnWindowPosChanged(WINDOWPOS* window_pos) { On 2015/08/14 14:55:26, sky wrote: ...
5 years, 4 months ago (2015-08-14 18:39:02 UTC) #4
sky
https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc#newcode2512 ui/views/win/hwnd_message_handler.cc:2512: void HWNDMessageHandler::OnWindowPosChanged(WINDOWPOS* window_pos) { On 2015/08/14 18:39:02, ananta wrote: ...
5 years, 4 months ago (2015-08-14 20:03:36 UTC) #5
ananta
https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/1295683003/diff/1/ui/views/win/hwnd_message_handler.cc#newcode2512 ui/views/win/hwnd_message_handler.cc:2512: void HWNDMessageHandler::OnWindowPosChanged(WINDOWPOS* window_pos) { On 2015/08/14 20:03:36, sky wrote: ...
5 years, 4 months ago (2015-08-14 20:33:47 UTC) #6
sky
https://codereview.chromium.org/1295683003/diff/20001/content/browser/renderer_host/legacy_render_widget_host_win.cc File content/browser/renderer_host/legacy_render_widget_host_win.cc (right): https://codereview.chromium.org/1295683003/diff/20001/content/browser/renderer_host/legacy_render_widget_host_win.cc#newcode409 content/browser/renderer_host/legacy_render_widget_host_win.cc:409: return 0; Do you need the SetMsgHandled(FALSE); ?
5 years, 4 months ago (2015-08-14 20:56:37 UTC) #7
ananta
https://codereview.chromium.org/1295683003/diff/20001/content/browser/renderer_host/legacy_render_widget_host_win.cc File content/browser/renderer_host/legacy_render_widget_host_win.cc (right): https://codereview.chromium.org/1295683003/diff/20001/content/browser/renderer_host/legacy_render_widget_host_win.cc#newcode409 content/browser/renderer_host/legacy_render_widget_host_win.cc:409: return 0; On 2015/08/14 20:56:37, sky wrote: > Do ...
5 years, 4 months ago (2015-08-14 21:04:30 UTC) #8
sky
LGTM
5 years, 4 months ago (2015-08-14 21:11:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1295683003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1295683003/40001
5 years, 4 months ago (2015-08-14 21:54:16 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-14 23:35:45 UTC) #12
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 23:36:24 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ee20880b00c6381d4393fd9f1927459034871c63
Cr-Commit-Position: refs/heads/master@{#343526}

Powered by Google App Engine
This is Rietveld 408576698