diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 01:34:08 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 01:34:08 +0000 |
commit | 62bb18dc11e536437972f24b6ecd6c9e33c3f88c (patch) | |
tree | 8d94039ebee95080d4bf7d152ca53f7d412aa483 /chrome/browser/external_tab_container.cc | |
parent | 9635b9f038bae457735d7e169125919a3f24f806 (diff) | |
download | chromium_src-62bb18dc11e536437972f24b6ecd6c9e33c3f88c.zip chromium_src-62bb18dc11e536437972f24b6ecd6c9e33c3f88c.tar.gz chromium_src-62bb18dc11e536437972f24b6ecd6c9e33c3f88c.tar.bz2 |
Transfer CF downloads to the host browser.TEST=Click a download link (not via redirect) in a web page displayed by Chrome Frame. The request should be handled by the host browser.BUG=23561
Review URL: http://codereview.chromium.org/385108
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r-- | chrome/browser/external_tab_container.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index 3d9251a..ab25698 100644 --- a/chrome/browser/external_tab_container.cc +++ b/chrome/browser/external_tab_container.cc @@ -397,6 +397,9 @@ bool ExternalTabContainer::TakeFocus(bool reverse) { bool ExternalTabContainer::CanDownload(int request_id) { if (load_requests_via_automation_) { if (automation_) { + // In case the host needs to show UI that needs to take the focus. + ::AllowSetForegroundWindow(ASFW_ANY); + ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, NewRunnableMethod(automation_resource_message_filter_, &AutomationResourceMessageFilter::SendDownloadRequestToHost, |