| Index: chrome/browser/ui/cocoa/applescript/tab_applescript.mm
|
| diff --git a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
|
| index 4bc6df9793b5cb2d040386b5f809886365f1dda6..2d27712a82098d9676e2aa4ae5888013ed251fc0 100644
|
| --- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
|
| +++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
|
| @@ -113,7 +113,7 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
|
| return nil;
|
| }
|
|
|
| - NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
|
| + NavigationEntry* entry = webContents_->GetController().GetVisibleEntry();
|
| if (!entry) {
|
| return nil;
|
| }
|
| @@ -136,7 +136,7 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
|
| return;
|
| }
|
|
|
| - NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
|
| + NavigationEntry* entry = webContents_->GetController().GetVisibleEntry();
|
| if (!entry)
|
| return;
|
|
|
| @@ -150,7 +150,7 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
|
| }
|
|
|
| - (NSString*)title {
|
| - NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
|
| + NavigationEntry* entry = webContents_->GetController().GetVisibleEntry();
|
| if (!entry)
|
| return nil;
|
|
|
|
|