summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/tab_strip.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/tabs/tab_strip.cc')
-rw-r--r--chrome/browser/views/tabs/tab_strip.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index 52f61a9..89097e3 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();