summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 19:38:30 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 19:38:30 +0000
commita3153c47d3b5308e7a55c0924a0baa1a6e02dcd0 (patch)
treeb37c85641aef8df14c732e4b187444e040a11555 /webkit/tools
parenta93e517bfe25f11b2c4cc7d69f386424b93a2efa (diff)
downloadchromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.zip
chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.gz
chromium_src-a3153c47d3b5308e7a55c0924a0baa1a6e02dcd0.tar.bz2
This CL adds macro used to track the creation and destruction
of HWNDs, in an attempt to detect potential double-delete. A double-delete of a HWND might be responsible for the crasher http://crbug.com/4714 Note: this CL was previously committed and reverted because it broke the sandbox integration module. Review URL: http://codereview.chromium.org/21032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/webwidget_host_win.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/webwidget_host_win.cc b/webkit/tools/test_shell/webwidget_host_win.cc
index c282699..845abf3 100644
--- a/webkit/tools/test_shell/webwidget_host_win.cc
+++ b/webkit/tools/test_shell/webwidget_host_win.cc
@@ -36,7 +36,7 @@ WebWidgetHost* WebWidgetHost::Create(gfx::NativeWindow parent_window,
kWindowClassName, kWindowClassName, WS_POPUP,
0, 0, 0, 0,
parent_window, NULL, GetModuleHandle(NULL), NULL);
-
+ TRACK_HWND_CREATION(host->view_);
win_util::SetWindowUserData(host->view_, host);
host->webwidget_ = WebWidget::Create(delegate);
@@ -58,6 +58,9 @@ LRESULT CALLBACK WebWidgetHost::WndProc(HWND hwnd, UINT message, WPARAM wparam,
case WM_DESTROY:
delete host;
break;
+ case WM_NCDESTROY:
+ TRACK_HWND_DESTRUCTION(hwnd);
+ break;
case WM_PAINT: {
RECT rect;