Open Bug 162840 Opened 22 years ago Updated 16 years ago

Numeric domains don't get fixed up

Categories

(SeaMonkey :: Location Bar, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: danb, Unassigned)

Details

Entering an all-numeric domain in the url bar doesn't work. To clarify, enter
"apple" in the bar and Chimera adds "http://" and ".com". But use "5280" --
hoping to reach "http://www.5280.com", and nothing happens.
is this possibly a dupe of 150966?

cc'ing darin who might have a clue about decimal IP address resolution
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
since this is chimera, i figure mozilla's url bar autocompletion is not involved.   

docshell does some URL fixup when the URL entered cannot be resolved.  for
example, if apple cannot be resolved, docshell will get a DNS failure error from
necko, and it will then try www.apple.com instead.  this works in many cases. 
perhaps docshell's url bar fixup code does not fixup numeric addresses.  it
would of course be very wierd to see www.123.123.123.123.com show up in the url
bar.  perhaps it could be smart and do fixup on numeric addresses when the
number doesn't contain any dots.

cc'ing docshell folks...
Target Milestone: --- → Chimera1.1
Confirmed using 2004100808 (v0.8+) NB.
Note that FireFox has the same issue. I think this bug is a browser bug and not
one that is Camino fault.
Component: Location Bar & Autocomplete → Location Bar
Product: Camino → Browser
Target Milestone: Camino1.1 → ---
Version: unspecified → Trunk
Summary: Numeric domains don't auto-complete → Numeric domains don't get fixed up
Normal URI fixup is performed (it prepends http://), but that doesn't seem to be sufficient.

nsWebShell::EndPageLoad is what normally invokes URIFixup with the flag to try appending www and such, but the status it's given is NS_ERROR_FAILURE, so it does not try (it only tries for NS_ERROR_UNKNOWN_HOST or NS_ERROR_NET_RESET).

http://lxr.mozilla.org/seamonkey/source/docshell/base/nsWebShell.cpp#628

This is consistent with the browser UI, which doesn't report any sort of failure.
Product: Core → SeaMonkey
Assignee: mikepinkerton → nobody
Status: ASSIGNED → NEW
QA Contact: bugzilla → location-bar
You need to log in before you can comment on or make changes to this bug.