diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 13:54:11 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 13:54:11 +0000 |
commit | 7484a05d5c4d11ec8583ea5feffc509d3de2957f (patch) | |
tree | 7a5da832e008033442c725fc4f57c6224b7d3391 /chrome | |
parent | 005e167721aec481a35386873be146ba116e3714 (diff) | |
download | chromium_src-7484a05d5c4d11ec8583ea5feffc509d3de2957f.zip chromium_src-7484a05d5c4d11ec8583ea5feffc509d3de2957f.tar.gz chromium_src-7484a05d5c4d11ec8583ea5feffc509d3de2957f.tar.bz2 |
DevTools: Preserve WebInspector window while switching RenderViewHost.
Review URL: http://codereview.chromium.org/115082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/debugger/devtools_manager.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_manager.cc b/chrome/browser/debugger/devtools_manager.cc index 193cb0a..d1a1da3 100644 --- a/chrome/browser/debugger/devtools_manager.cc +++ b/chrome/browser/debugger/devtools_manager.cc @@ -142,6 +142,9 @@ void DevToolsManager::OnNavigatingToPendingEntry(RenderViewHost* inspected_rvh, GetDevToolsClientHostFor(inspected_rvh); if (client_host) { client_host->SetInspectedTabUrl(gurl.possibly_invalid_spec()); + inspected_rvh_to_client_host_.erase(inspected_rvh); + inspected_rvh_to_client_host_[dest_rvh] = client_host; + client_host_to_inspected_rvh_[client_host] = dest_rvh; SendAttachToAgent(dest_rvh); } } |