summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 22:17:36 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 22:17:36 +0000
commit4381198d840e71ee89d8d27b22dcad8fa4863e6a (patch)
treed68f51553e42aa7a3927e4d479ac5b6a1b089a3f /chrome_frame/test
parentd19ee3444d4c8042a97bd653e57c775206a04bed (diff)
downloadchromium_src-4381198d840e71ee89d8d27b22dcad8fa4863e6a.zip
chromium_src-4381198d840e71ee89d8d27b22dcad8fa4863e6a.tar.gz
chromium_src-4381198d840e71ee89d8d27b22dcad8fa4863e6a.tar.bz2
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
Diffstat (limited to 'chrome_frame/test')
-rw-r--r--chrome_frame/test/chrome_frame_test_utils.cc6
1 files changed, 1 insertions, 5 deletions
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<SHANDLE_PTR*>(&hwnd));
- if (!::IsWindow(hwnd))
- return E_UNEXPECTED;
- EXPECT_TRUE(::PostMessage(hwnd, WM_SYSCOMMAND, SC_CLOSE, 0));
+ web_browser2_->Quit();
return S_OK;
}