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 7602e394b3a7d32b147fe47170e2db11fbff3836..9a2fa9c69ab56711e91968229797bf07fef077aa 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,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id, |
return; |
} |
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry(); |
+ NavigationEntry* entry = |
+ webContents_->GetController().GetLastCommittedEntry(); |
if (!entry) |
return; |
@@ -150,7 +151,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id, |
} |
- (NSString*)title { |
- NavigationEntry* entry = webContents_->GetController().GetActiveEntry(); |
+ NavigationEntry* entry = |
+ webContents_->GetController().GetVisibleEntry(); |
if (!entry) |
return nil; |