From 4381198d840e71ee89d8d27b22dcad8fa4863e6a Mon Sep 17 00:00:00 2001 From: "ananta@chromium.org" Date: Thu, 8 Apr 2010 22:17:36 +0000 Subject: The ChromeFrame tests should use IWebBrowser::Quit to quit IE. This ensures that the OnQuit notification is received correctly on IE6. Review URL: http://codereview.chromium.org/1574020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44015 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/chrome_frame_test_utils.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'chrome_frame/test') diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc index 0d9f5d2..aeedeee 100644 --- a/chrome_frame/test/chrome_frame_test_utils.cc +++ b/chrome_frame/test/chrome_frame_test_utils.cc @@ -720,11 +720,7 @@ HRESULT WebBrowserEventSink::CloseWebBrowser() { DCHECK(process_id_to_wait_for_ == 0); if (!web_browser2_) return E_FAIL; - HWND hwnd = NULL; - HRESULT hr = web_browser2_->get_HWND(reinterpret_cast(&hwnd)); - if (!::IsWindow(hwnd)) - return E_UNEXPECTED; - EXPECT_TRUE(::PostMessage(hwnd, WM_SYSCOMMAND, SC_CLOSE, 0)); + web_browser2_->Quit(); return S_OK; } -- cgit v1.1