| Index: chrome/browser/ui/browser_navigator.cc
|
| diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
|
| index 75ab0792ea2d055f39793ca172452caf3132aecf..746e8f5d06e9f8e002b2f9c3cfac95e30cad9fb2 100644
|
| --- a/chrome/browser/ui/browser_navigator.cc
|
| +++ b/chrome/browser/ui/browser_navigator.cc
|
| @@ -338,7 +338,9 @@ content::WebContents* CreateTargetContents(const chrome::NavigateParams& params,
|
| const GURL& url) {
|
| WebContents::CreateParams create_params(
|
| params.browser->profile(),
|
| - tab_util::GetSiteInstanceForNewTab(params.browser->profile(), url));
|
| + params.source_site_instance
|
| + ? params.source_site_instance
|
| + : tab_util::GetSiteInstanceForNewTab(params.browser->profile(), url));
|
| if (params.source_contents) {
|
| create_params.initial_size =
|
| params.source_contents->GetContainerBounds().size();
|
|
|