summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/external_tab_container.cc6
-rw-r--r--chrome/test/automation/automation_proxy_uitest.cc2
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 9527e97..e80a01b 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -93,7 +93,11 @@ bool ExternalTabContainer::Init(Profile* profile, HWND parent,
// Now apply the parenting and style
if (parent)
SetParent(parent);
- ModifyStyle(0, style, 0);
+
+ // We need WS_POPUP to be on the window during initialization, but
+ // once initialized and parent-ed, we apply the requested style which
+ // may or may not include the popup bit.
+ ModifyStyle(WS_POPUP, style, 0);
::ShowWindow(tab_contents_->GetContainerHWND(), SW_SHOW);
return true;
diff --git a/chrome/test/automation/automation_proxy_uitest.cc b/chrome/test/automation/automation_proxy_uitest.cc
index 212100a..acdf819 100644
--- a/chrome/test/automation/automation_proxy_uitest.cc
+++ b/chrome/test/automation/automation_proxy_uitest.cc
@@ -749,7 +749,7 @@ bool ExternalTabHandler(HWND external_tab_window) {
TEST_F(AutomationProxyVisibleTest, CreateExternalTab) {
HWND external_tab_container = NULL;
scoped_ptr<TabProxy> tab(automation()->CreateExternalTab(
- NULL, gfx::Rect(), 0, &external_tab_container));
+ NULL, gfx::Rect(), WS_POPUP, &external_tab_container));
EXPECT_TRUE(tab != NULL);
EXPECT_NE(FALSE, ::IsWindow(external_tab_container));
if (tab != NULL) {