diff options
-rw-r--r-- | chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm | 1 | ||||
-rw-r--r-- | chrome/browser/ui/views/omnibox/omnibox_view_win.cc | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm index a5f5f68..33402e6 100644 --- a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm +++ b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm @@ -753,7 +753,6 @@ class NotificationBridge : public content::NotificationObserver { if (url.SchemeIs(chrome::kJavaScriptScheme)) { browser_->window()->GetLocationBar()->location_entry()->SetUserText( OmniboxView::StripJavascriptSchemas(UTF8ToUTF16(url.spec()))); - return; } browser_->GetSelectedTabContents()->OpenURL(url, GURL(), CURRENT_TAB, content::PAGE_TRANSITION_TYPED); diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc index 30a1ea4..f5fe8b1 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc @@ -999,8 +999,7 @@ int OmniboxViewWin::OnPerformDropImpl(const views::DropTargetEvent& event, if (data.GetURLAndTitle(&url, &title)) { string16 text(StripJavascriptSchemas(UTF8ToUTF16(url.spec()))); SetUserText(text); - if (url.spec().length() == text.length()) - model()->AcceptInput(CURRENT_TAB, true); + model()->AcceptInput(CURRENT_TAB, true); return CopyOrLinkDragOperation(event.source_operations()); } } else if (data.HasString()) { |