Closed Bug 678352 Opened 13 years ago Closed 12 years ago

'h' entered as first letter in location bar is overwritten with 'w' when browser.urlbar.autoFill is true

Categories

(Firefox :: Address Bar, defect)

7 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 12

People

(Reporter: clouserw, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached image screenshots
Mozilla/5.0 (X11; Linux i686; rv:8.0a1) Gecko/20110809 Firefox/8.0a1


My goal:

Type "https://www.paypal.com" into my awesomebar.  (Specifically, I want to specify the "https" part of a URL)

Expected results:  

I can do that.

Actual results:

Can't get to SSL sites. :(  I type "ht" and it matches on a url with "ht" in it elsewhere which starts with "ww".  When I type the third 't' the last of the "www" url is highlighted so my "htt" has turned in to "wwt" in the URL bar and it starts matching on that now.

This is totally hard to explain without a screencast and I don't have one of those, but I do have some sweet screenshots which I'm attaching.

I'm not pausing or anything when typing these letters, just a smooth h-t-t-p-s turns into w-w-t-p-s.
Thanks to James' pref skills we've determined this is because I had browser.urlbar.autoFill = True which is not the default.

So, leaving the bug open, but it's solved for me by disabling that.  Not sure how it got enabled. :-/
On Windows 7 in Nightly (2011-08-11) I can turn on browser.urlbar.autoFill and type straight through the autocomplete without running into this.
Attached video can't reproduce (obsolete) —
I spend much time on this bug and bug 690244 but can't reproduce the problem.

Mozilla/5.0 (Windows NT 6.1; rv:10.0a1) Gecko/20110928 Firefox/10.0a1
Built from http://hg.mozilla.org/mozilla-central/rev/7f4867717226
Attachment #563355 - Attachment mime type: application/octet-stream → video/webm
I was wrong in comment 2--or, I was right at the time. This appears to depend somewhat on what's in your places database.

Trying to type "how do": http://screencast.com/t/bJu3y7LZ
Trying to type "https://": http://screencast.com/t/MuZuY9XXxj
Firefox autoupdated to 7.0 and now I can no longer access my router because of this bug (unless I want to give up autocomplete altogether). The router only accepts https connections, but if I try to type "https" in the location bar, it gets overwritten as described by others. If I just type in the IP address of my router FF attempts a plain http connection.
Screenshot attached from Windows XP. Changing platform to ALL.
Jerry, as a work around, let it change the 'h' to a 'w', then once you've got a few more characters, you can go back and change the 'w' back to an 'h' manually.
Attachment #563355 - Attachment is obsolete: true
Summary: awesomebar is too greedy and eats my URLs while I type them → 'h' entered as first letter in location bar is overwritten with 'w' when browser.urlbar.autoFill is true
Version: unspecified → 7 Branch
(In reply to James Socol [:jsocol, :james] from comment #9)
> Jerry, as a work around, let it change the 'h' to a 'w', then once you've
> got a few more characters, you can go back and change the 'w' back to an 'h'
> manually.

Thank you. A better workaround allows you to turn off the silly feature of hiding the protocol (e.g., http, ftp, https, etc.). Use about:config to change browser.urlbar.trimURLs to false.
Blocks: 665580
Or set browser.urlbar.autoFill to false.
(In reply to Steffen Wilberg from comment #12)
> Or set browser.urlbar.autoFill to false.

That does work, but then autofill will still be broken - just in a different way. Why would you trade one bustage for another when you can disable protocol hiding and lose nothing?
I have the same issue. Thank you for posting a bug about this already. This issue occurs when I attempt to reach websites that begin with an "h," for example, hypem.com

To clarify, I have hulu as a search keyword saved in my favorites. 
Address: http://www.hulu.com/search?query=%s
Keyword: h
(this may be the issue, but even if it is, firefox should recognize that I am *not* searching hulu when I attempt to type in an address that starts with the same letter

How to replicate:
When I type "h" (without any following space) into the address bar, autocomplete fills in "www.hulu.com/search?query=" with the entire search term highlighted, except for the first "w." When I continue typing an address, for example, hypem.com, the address bar reads "wypem.com"

Firefox should understand that keyword searches should only be done when followed by a space and not autoreplace the url because it starts with the same letter
Instead of setting browser.urlbar.autoFill to false, you can also type a Space (press Spacebar) and then the desired text.
(In reply to bugzilla from comment #15)
> Instead of setting browser.urlbar.autoFill to false, you can also type a
> Space (press Spacebar) and then the desired text.

Cool.Nice trick.
Thanks Bugzilla, that is a good temporary workaround. Would be great if the normal functionality is fixed to avoid having to remember to hit space before all URLs that start with "h" though. By the way, I am running 7.0.1 on Windows 7 x64, unlike the OP
Also FF8 (Beta) is affected (Win7 x64). (I'm on the current beta channel)
I guess bug 566489 may fix this, so adding dependency for now.
Depends on: 566489
Is this a duplicate of Bug 559878?
Confirming this bug and yes, it looks the same behavior as 559878.

See request for help here:
https://support.mozilla.org/en-US/questions/911930
with the following description, which might help in replicating the bug:


URL inline autocomplete fails on "https:" protocol

As I type the letters h-t-t-p-s into the URL bar (a URL that only has HTTPS access), it tries to automatch them with websites I've visited. For example as I type the letter "h" it suggests matches such as "c_h_rome" or pages ending "_h_tm". As I type a second character ("ht") it narrows its suggestions and suggests pages ending "_ht_ml"...

As I type a 3rd character ("htt" -) it suddenly suggests a full URL in-line ** and overwrites what I've typed to do so **, so I can't actually type the letters "https".
This seems to be fixed by the landing of bug 566489.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
(In reply to Matt Brubeck (:mbrubeck) from comment #29)
> This seems to be fixed by the landing of bug 566489.

This is fixed in which version? I use version 10.0 and I still have the problem.
(In reply to Ibraim from comment #30)
> This is fixed in which version? I use version 10.0 and I still have the
> problem.

Fixed in version 12.
Target Milestone: --- → Firefox 12
well, due to the backout in bug 720792 this is technically untrue, will be really fixed when bug 720792 will be.
You need to log in before you can comment on or make changes to this bug.