diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 21:45:37 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 21:45:37 +0000 |
commit | 40a20463a8334efe2a53b11dd0b83472e9b81491 (patch) | |
tree | fdc82e3d80f61b039cc6ad5c122801b29ff2a20b /chrome | |
parent | 5230d78ebea2aec0481da17de469050709f77e3f (diff) | |
download | chromium_src-40a20463a8334efe2a53b11dd0b83472e9b81491.zip chromium_src-40a20463a8334efe2a53b11dd0b83472e9b81491.tar.gz chromium_src-40a20463a8334efe2a53b11dd0b83472e9b81491.tar.bz2 |
Forbid tab drops on application windows.
Change by Chase Phillips <cmp@google.com>
http://crbug.com/9576
TEST=open a standalone GMail shortcut window, attempt to drop a tab from an existing browser window into it. It should not be added.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/tabs/dragged_tab_controller.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc index 6f97a9c..03722ff 100644 --- a/chrome/browser/views/tabs/dragged_tab_controller.cc +++ b/chrome/browser/views/tabs/dragged_tab_controller.cc @@ -655,7 +655,8 @@ TabStrip* DraggedTabController::GetTabStripForPoint( return NULL; BrowserView* browser = BrowserView::GetBrowserViewForNativeWindow(local_window); - if (!browser) + // We don't allow drops on windows that don't have tabstrips. + if (!browser || !browser->IsBrowserTypeNormal()) return NULL; TabStrip* other_tabstrip = browser->tabstrip(); |