| 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..593a5f5638fe25eb184c7b0cb698697b27132690 100644
|
| --- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
|
| +++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm
|
| @@ -113,7 +113,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
|
| return nil;
|
| }
|
|
|
| - NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
|
| + NavigationEntry* entry =
|
| + webContents_->GetController().GetLastCommittedEntry();
|
| if (!entry) {
|
| return nil;
|
| }
|
| @@ -136,7 +137,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
|
| return;
|
| }
|
|
|
| - NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
|
| + NavigationEntry* entry =
|
| + webContents_->GetController().GetLastCommittedEntry();
|
| if (!entry)
|
| return;
|
|
|
| @@ -150,7 +152,8 @@ void ResumeAppleEventAndSendReply(NSAppleEventManagerSuspensionID suspension_id,
|
| }
|
|
|
| - (NSString*)title {
|
| - NavigationEntry* entry = webContents_->GetController().GetActiveEntry();
|
| + NavigationEntry* entry =
|
| + webContents_->GetController().GetLastCommittedEntry();
|
| if (!entry)
|
| return nil;
|
|
|
|
|