summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 19:10:50 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-17 19:10:50 +0000
commitb3300dc30deee1992729a78bc5c053c7a136d6a7 (patch)
tree1fc29ccffe3b5b6b231f86b62bcd5f8a9e6c904e /chrome/browser/external_tab_container.cc
parent0cae1e7affb7fddafa062b452e555039e38a051e (diff)
downloadchromium_src-b3300dc30deee1992729a78bc5c053c7a136d6a7.zip
chromium_src-b3300dc30deee1992729a78bc5c053c7a136d6a7.tar.gz
chromium_src-b3300dc30deee1992729a78bc5c053c7a136d6a7.tar.bz2
Fix a crash in ChromeFrame caused by incorrectly instantiating the automation url request context used
by the host network stack implementation with a NULL AutomationResourceMessageFilter pointer. Fixes bug http://code.google.com/p/chromium/issues/detail?id=29025 Will add a test for this in a subsequent CL. Bug=29025 Review URL: http://codereview.chromium.org/505033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 2775960..716b8ef 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -187,6 +187,8 @@ bool ExternalTabContainer::Reinitialize(
automation_resource_message_filter_ = filter;
if (load_requests_via_automation_) {
+ InitializeAutomationRequestContext(tab_handle_);
+
RenderViewHost* rvh = tab_contents_->render_view_host();
if (rvh) {
AutomationResourceMessageFilter::RegisterRenderView(
@@ -206,9 +208,6 @@ bool ExternalTabContainer::Reinitialize(
void ExternalTabContainer::SetTabHandle(int handle) {
tab_handle_ = handle;
- if (load_requests_via_automation_) {
- InitializeAutomationRequestContext(handle);
- }
}
void ExternalTabContainer::ProcessUnhandledAccelerator(const MSG& msg) {