Index: chrome/renderer/searchbox/searchbox_extension.cc |
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc |
index 5dc7ae5ac91322ffd16f8e7eede21a2f2d861a8b..7e3af7acbd56f2b31effeb1550b5b91d746680d6 100644 |
--- a/chrome/renderer/searchbox/searchbox_extension.cc |
+++ b/chrome/renderer/searchbox/searchbox_extension.cc |
@@ -1164,7 +1164,9 @@ void SearchBoxExtensionWrapper::NavigateContentWindow( |
DVLOG(1) << render_view << " NavigateContentWindow: " << destination_url; |
- // Navigate the main frame. |
+ // Navigate the main frame. Note that the security checks are enforced by the |
+ // browser process in InstantService::IsValidURLForNavigation(), but some |
+ // simple checks here are useful for avoiding unnecessary IPCs. |
if (destination_url.is_valid() && |
!destination_url.SchemeIs(url::kJavaScriptScheme)) { |
WindowOpenDisposition disposition = CURRENT_TAB; |