Closed
Bug 81695
Opened 24 years ago
Closed 24 years ago
selected entry in autocompletion box doesn't hold the value
Categories
(SeaMonkey :: MailNews: Address Book & Contacts, defect, P2)
SeaMonkey
MailNews: Address Book & Contacts
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: yulian, Assigned: hewitt)
References
Details
(Keywords: dataloss, Whiteboard: hitchhiker, warning: cause regression!)
Attachments
(1 file)
|
1.16 KB,
patch
|
Details | Diff | Splinter Review |
The selected entry in autocompletion box doesn't hold the value
in the compose window when the the focus moves to the second
addressee.
1. In compose window, type in "yu"
2. a list of matching entries displays in the autocompletion box
3. click one of them, for example, yulian@netscape.com
4. "yulian@netscape.com" is now displayed in the first entry of
address area in the compose window
5. click on the second entry of addressee
6. "yulian@netscape.com" in the first entry becomes "yu@netscape.com"
| Reporter | ||
Updated•24 years ago
|
QA Contact: esther → yulian
| Reporter | ||
Comment 1•24 years ago
|
||
It finally displays whatever you type in. Doesn't honor the selection.
Comment 2•24 years ago
|
||
wfm on MacOS 2001052115. However, when I clicked in the 2nd address field and
started typing I got a popup that had a scrollbar, but no visible elements.
Comment 3•24 years ago
|
||
Brian there is another bug on that. bug# 78771
Comment 4•24 years ago
|
||
Win98SE | N6.1 PR 0 (build id: 2001052204) | Prefs: Local (checked) | NSCP LDAP
(checked) | Do not look as LDAP if in local (checked)
WFM with the above platform/settings ... however, the following occurs:
1. in compose window, type in "yu"
2. a list of matching entries displays in the autocompletion box
3. click yulian@netscape.com
4. "yulian@netscape.com" is now displayed in the first entry of
address area in the compose window
5. click on the second entry of addressee
6. "yulian@netscape.com" in the first entry holds "yulian@netscape.com"
7. in second entry of address area, type in "je"
8. blank entries display in the autocompletion box; scroll down menu appears but
with blank / hidden entries
9. unable to add additional addresses from local or nscp ldap directories
Comment 6•24 years ago
|
||
The following code is from nsAbAutoCompleteSession.cpp:
561 {
562 status = nsIAutoCompleteStatus::matchFound;
563 if (addedDefaultItem)
564 {
565 if (nbrOfItems > 2)
566 results->SetDefaultItemIndex(-1);
567 else
568 results->SetDefaultItemIndex(nbrOfItems == 2 ? 1 : 0);
569 }
570 else
571 results->SetDefaultItemIndex(nbrOfItems > 1 ? -1 : 0);
572 }
573 }
Setting the defaultItemIndex to either 1 or 0 is causing this problem. Setting
this to -1 would fix it. Since I am not familiar with this code I am not sure if
I can do this.
ccing ducarroz for input.
Comment 9•24 years ago
|
||
One possible solution to this would be to associate any default value with the
XBL autocomplete widget itself rather than the individual autocomplete sessions.
hewitt/ducarroz/alecf: any thoughts on this?
Comment 10•24 years ago
|
||
*** Bug 84503 has been marked as a duplicate of this bug. ***
Comment 11•24 years ago
|
||
I'll add my opinion that this is pretty scary and that if we're going to have
ldap autocompletion in 0.9.1 we should fix this in 0.9.1. It's very easy to
reproduce and will lead to messages sent to the wrong people.
Comment 12•24 years ago
|
||
What I am seeing is that the problem occurs only when we have both addressbook
and ldap autocomplete enable. My guess is that we are doing something wrong when
we merge the result form both sources. I don't think it's anything to do with
the default selection, the user should be able to select whatever he wants
disregard the default item. Let me take a look...
| Assignee | ||
Comment 14•24 years ago
|
||
I'm able to reproduce with the original steps, I'm pretty sure this is an XBL
problem.
Status: NEW → ASSIGNED
Comment 15•24 years ago
|
||
i filed the bug # 84391 where it is reproducable when your address is not in
Collected Addresses: in case it is not there the autocompletion is not
happening; when you do have the address in CA the match is found and remembered
Comment 16•24 years ago
|
||
the problem is in autocomplete.xml in the function finishAutoComplete. If we
have a default item, we always use it!!!
Comment 17•24 years ago
|
||
This problem occurs also when you have only one source!
Comment 18•24 years ago
|
||
Joe, why in finishAutoComplete do you set the texbox value to the default search
result? you should take whatever the user has selected!
Comment 19•24 years ago
|
||
adding dataloss and nsbeta1 keywoards from 84503
| Assignee | ||
Comment 20•24 years ago
|
||
Comment 21•24 years ago
|
||
I've just finished to test the patch. Works great. R=ducarroz
Whiteboard: Have fix
| Reporter | ||
Comment 22•24 years ago
|
||
I notice that there's work around for this problem for now.
Append a space behind the selected name then press Enter. This way will hold.
1. Bring up a new Msg window and type in a name
2. Select a name which comes from LDAP directory
3. press space
4. press enter
5. it hold well on all platforms
Whiteboard: Have fix
Comment 23•24 years ago
|
||
per PDT, putting in 0.9.1 and adding hitchhiker to status whiteboard in case of
respin. It doesn't go in if there isn't one. we need a super review.
Whiteboard: hitchhiker
Target Milestone: mozilla0.9.2 → mozilla0.9.1
Updated•24 years ago
|
OS: Windows NT → All
Comment 24•24 years ago
|
||
*** Bug 84391 has been marked as a duplicate of this bug. ***
Comment 25•24 years ago
|
||
sr=sfraser
Comment 26•24 years ago
|
||
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Comment 27•24 years ago
|
||
Patch checked into the trunk.
Comment 28•24 years ago
|
||
looks like this patch cause a regression!
In message compose, when I type a nickname like "jfd", the widget correctly
autocomplete to "jfd >> Jean-Francois Ducarroz<ducarroz@netscape.com>" but when
I either press return or tab or set the focus in another area, the field is not
cleaned up anymore, it should become "Jean-Francois
Ducarroz<ducarroz@netscape.com>"! This could cause some send problem. Joe, can
you take a look at it?
Updated•24 years ago
|
Whiteboard: hitchhiker → hitchhiker, warning: cause regression!
| Assignee | ||
Comment 29•24 years ago
|
||
thanks for landing the patch, dmose.
fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 30•24 years ago
|
||
Oh crap. regression indeed. I'll fix that and open a separate bug for it in a
segundo.
Comment 31•24 years ago
|
||
*** Bug 84666 has been marked as a duplicate of this bug. ***
Comment 32•24 years ago
|
||
*** Bug 85826 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 33•24 years ago
|
||
Verified with trunk builds on winds, Linux and MacOS.
Status: RESOLVED → VERIFIED
Comment 34•24 years ago
|
||
*** Bug 86617 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•