Closed Bug 54392 Opened 24 years ago Closed 23 years ago

Autocomplete should try ignoring trailing '/' after hostname

Categories

(Core Graveyard :: History: Global, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: karlsm, Assigned: bugzilla)

References

Details

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16 i586; en-US; m18) Gecko/20000927
BuildID:    2000092708

If both www.mozilla.org and www.mozilla.org/ (with an ending slash) are in the
history, both will be shown in the autocompletion menu.

Reproducible: Always
Steps to Reproduce:
1. Type in a domain name in the location bar, eg www.mozilla.org.
2. Type the same domain name preceding a /, eg www.mozilla.org/.
3. Type the first letters of the name, eg www.moz.

Actual Results:  Both www.mozilla.org and www.mozilla.org/ is suggested as
complete adresses.

Expected Results: A new address should not be added to the autocompletion
history if the same address is already in the history, even if it has one slash
more or less.
This one is kinda along the lines of bug 53831
Symptoms are the same....   just a different way of getting it
The bottom line is, Mozilla needs to be a little smarter about what it includes
as an autocomplete possibility.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → M21
*** Bug 59626 has been marked as a duplicate of this bug. ***
Radha, can you put the following lines outside the while loop:

+             var uriToAdd =
Components.classes["@mozilla.org/network/standard-url;1"]
+                            .createInstance(Components.interfaces.nsIURI);

+             uriToAdd.spec = urlToAdd;
+             var rdfUri = Components.classes["@mozilla.org/network/standard-url;1"]
+                          .createInstance(Components.interfaces.nsIURI);

Don't need to do that for each element!
Nice catch! The latest patch does that.
looks good, sr=alecf
nav triage: accepting for nsbeat1 as a p2. 
Keywords: nsbeta1
Priority: P3 → P2
This got fixed a while ago.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 66773 has been marked as a duplicate of this bug. ***
According to reporter in dup bug 66773, this bug is still alive. (2001-012006)
Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
this is a URL Bar bug, reassigning appropriately
Assignee: radha → alecf
Status: REOPENED → NEW
Component: History: Session → History: URLBar
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
This bug also shows up on Windows.
OS: Linux → All
Hardware: PC → All
Summary: Autocomplete showing same domain twice → Autocomplete should try ignoring trailing '/' after hostname
*** Bug 66114 has been marked as a duplicate of this bug. ***
*** Bug 71312 has been marked as a duplicate of this bug. ***
*** Bug 71312 has been marked as a duplicate of this bug. ***
Ok, marking nsbeta1+, setting target milestone mozilla0.9
Keywords: nsbeta1nsbeta1+
Target Milestone: mozilla1.0 → mozilla0.9
ok, this bug is fixed, but if you have old entries in your history, they will
probably stick around. try it with a fresh profile

The one odd situation that this isn't fixed for is:
http://www.foo.com/
http://www.foo.com/#

these are treated as different urls, and this can be fixed by fixing nsIURL::Equals

but since users generally don't type empty anchor tags, I don't think this
warrants an nsbeta1+, so I'm moving back to nsbeta1
Keywords: nsbeta1+nsbeta1
Target Milestone: mozilla0.9 → Future
nav triage team:

Not a beta1 stopper as it currently stands, marking nsbeta1-
Keywords: nsbeta1nsbeta1-
Assignee: alecf → blakeross
Status: ASSIGNED → NEW
Target Milestone: Future → ---
reassign url bar bugs to new owner..
Joe was dying to have these bugs. Who am I to say no?
Assignee: blakeross → hewitt
Over to history, because these similar urls shouldn't even be stored.
Assignee: hewitt → blakeross
Component: URL Bar → History: Global
Status: NEW → ASSIGNED
Target Milestone: --- → Future
As Alec noted, this is fixed...
Status: ASSIGNED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: