Index: chrome/browser/views/tabs/tab_strip.cc |
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc |
index 52f61a9df7e1491696d8637deabece2b44bc7fa2..89097e3394c599f66ff0391153101d2fb7691d1e 100644 |
--- a/chrome/browser/views/tabs/tab_strip.cc |
+++ b/chrome/browser/views/tabs/tab_strip.cc |
@@ -739,7 +739,10 @@ void TabStrip::TabInsertedAt(TabContents* contents, |
bool foreground) { |
DCHECK(contents); |
DCHECK(index == TabStripModel::kNoTab || model_->ContainsIndex(index)); |
- |
+ // This tab may be attached to another browser window, we should notify |
+ // renderer. |
+ contents->render_view_host()->UpdateBrowserWindowId( |
+ contents->controller().window_id().id()); |
if (active_animation_.get()) |
active_animation_->Stop(); |