Open Bug 381350 Opened 18 years ago Updated 3 years ago

address bar keyword search does not work properly when used with @ symbol

Categories

(Core :: DOM: Navigation, defect)

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: compgeek, Unassigned)

Details

(Keywords: helpwanted)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070520 Minefield/3.0a5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070520 Minefield/3.0a5pre Typing 'SETI@home' in the address bar searches for 'home'. This is true for any search including @ without a space before or after. For example 'anything@something' would only search for 'something' while 'anything @something' would search for 'anything @something'. This is true for the default 'I'm Feeling Lucky' search as well as for several other types of searches I tried. Reproducible: Always Steps to Reproduce: 1. Type seti@home into the address bar. Actual Results: http://www.nytimes.com/ (first result for 'home' search) site opened. Expected Results: http://setiathome.berkeley.edu/ opened.
I see a dialog with: You are about to log in to the site "home" with the username "SETI", but the website does not require authentication. This may be an attempt to trick you. Is "home" the site you want to visit?
Component: Search → Embedding: Docshell
Product: Firefox → Core
QA Contact: search → docshell
Fixup fun, could be. Someone should trace this.
Keywords: helpwanted
I traced this a while ago, but forgot to comment in the bug with the results :( If I recall correctly, we're creating a valid URI, since "seti@home" is parseable by newURI. When the load fails, we use that URI's "host" as the argument to the keyword search. Maybe we could just use the spec? Need to look further.
As I know firefox now does not uses "I feel lucky" search for oneword inputting in URL bar (it uses full search if domain is not found). I inputted "seti@home" in URL bar. firefox tried to search domain home. I interrupted this and add keyword search "seti" for some search plugin. Entered "seti@home" again. Firefox immediately shows search results for "seti@home" in default search engine (google), I mean firefox-default, not search bar default. I think it was strange in immediate search, but I retried with other somename@somesitewithoutdots and adding search keyword before entering somename@somesitewithoutdots. Firefox tries to load site, failed and then show default search for somename@somesitewithoutdots. So when drop detecting domain "home", firefox think that "domain not found" and in next trying just go immediately to default search. So I think the bug is Unconfirmed or Fixed :)
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.