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 a8afbb87f7add57287e2c0b4f19d0bfe7afb5547..0d7a3a349c0c808c347329f8f189c883a7ec96bd 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; |