Index: chrome/renderer/resources/neterror.js |
=================================================================== |
--- chrome/renderer/resources/neterror.js (revision 253247) |
+++ chrome/renderer/resources/neterror.js (working copy) |
@@ -53,6 +53,13 @@ |
classList['last_icon_class'] = newClass; |
} |
+// Does a search using |baseSearchUrl| and the text in the search box. |
+function search(baseSearchUrl) { |
+ var searchTextNode = document.getElementById('search-box'); |
+ document.location = baseSearchUrl + searchTextNode.value; |
+ return false; |
+} |
+ |
<if expr="is_macosx or is_ios or is_linux or is_android"> |
// Re-orders buttons. Used on Mac, Linux, and Android, where reload should go |
// on the right. |