Bug 710302 - going to about: pages does a 'feeling lucky' search [r=mfinkle a=java-only]
authorMatt Brubeck <mbrubeck@mozilla.com>
Tue, 13 Dec 2011 19:17:58 -0500
changeset 84174 0c46aac6a23fb564f404153e695af9fec37ef8fe
parent 84173 96a644cb3158c5d551f645639e4061dc4166bfab
child 84175 ceffbd680e2c9122d51662f5c1a78188aee7930b
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, java-only
bugs710302
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 710302 - going to about: pages does a 'feeling lucky' search [r=mfinkle a=java-only]
mobile/android/base/AwesomeBar.java
--- a/mobile/android/base/AwesomeBar.java
+++ b/mobile/android/base/AwesomeBar.java
@@ -229,17 +229,17 @@ public class AwesomeBar extends Activity
 
         int colon = text.indexOf(':');
         int dot = text.indexOf('.');
         int space = text.indexOf(' ');
 
         // If a space is found before any dot or colon, we assume this is a search query
         boolean spacedOut = space > -1 && (space < colon || space < dot);
 
-        return spacedOut || (dot == -1);
+        return spacedOut || (dot == -1 && colon == -1);
     }
 
     private void updateGoButton(String text) {
         if (text.length() == 0) {
             mGoButton.setVisibility(View.GONE);
             return;
         }