Index: content/shell/browser/shell_gtk.cc |
diff --git a/content/shell/browser/shell_gtk.cc b/content/shell/browser/shell_gtk.cc |
index a06a6a036f809049ec5b3b45042d91269f008ae4..3cc71f716683492552c49ddd843d4ed2550d2ca9 100644 |
--- a/content/shell/browser/shell_gtk.cc |
+++ b/content/shell/browser/shell_gtk.cc |
@@ -281,7 +281,8 @@ void Shell::OnURLEntryActivate(GtkWidget* entry) { |
GURL url(str); |
if (!url.has_scheme()) |
url = GURL(std::string("http://") + std::string(str)); |
- LoadURL(GURL(url)); |
+ if (url.is_valid()) |
+ LoadURL(url); |
} |
// Callback for when the main window is destroyed. |