Address auto-complete click no longer accepts the address and moves to the next line
Categories
(Thunderbird :: Message Compose Window, defect, P2)
Tracking
(thunderbird_esr6869+ fixed, thunderbird70 fixed, thunderbird71 fixed)
People
(Reporter: jorgk-bmo, Assigned: aleca)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 5 obsolete files)
|
5.52 KB,
patch
|
jorgk-bmo
:
review+
aceman
:
feedback+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1569492 +++
I've just landed a snipped of bug 1569492 onto TB 68 here:
https://hg.mozilla.org/releases/comm--esr68/rev/1f74906fee2f0980ec552146596f5bee261fb4d2
In the resulting version, clicking onto an auto-complete result no longer accepts that address.
So that's broken on TB 70, trunk and now TB 68.
| Reporter | ||
Comment 1•6 years ago
|
||
BTW, clicking on a auto-complete suggestion also doesn't work for mailing lists. I have't tried invitees, but it's most likely the same.
| Reporter | ||
Comment 2•6 years ago
|
||
Looking at bug 1569492 again, couldn't that have been fixed much simpler using what bug 1569492 comment #4 suggested?
| Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #2)
Looking at bug 1569492 again, couldn't that have been fixed much simpler using what bug 1569492 comment #4 suggested?
The notifylegacyevents="true" attribute is the first thing that I tried but never worked. It was completely ignored.
The decision to move to native attributes like oninput and onkeypress was also due to the upcoming conversion of those fields to native html input.
I'm compiling 68 and taking a look at why the snipped patch is not working properly.
How come is broken on trunk and 70?
We tested it and it was working properly when it landed.
| Assignee | ||
Comment 4•6 years ago
|
||
This seems to work fine for me.
| Reporter | ||
Comment 5•6 years ago
|
||
This seems to work fine for me.
Well, I believe I see this in the video. You click on an auto-complete suggestion, and that is accepted into the input field. Then you hit return to move to the next field. But that's wrong. Clicking should automatically move to the next field, no hitting return required.
As I said on IRC: "20:08:15 - jorgk: that auto-complete is terribly tricky and sensitive".
| Assignee | ||
Comment 6•6 years ago
|
||
What do you guys think about this solution?
Detecting the click event and forcing the return only if the target is not the textbox itself.
It's currently applied only to the messenger compose.
If you think it's a good solution I'll applied it everywhere where needed.
| Assignee | ||
Updated•6 years ago
|
| Reporter | ||
Comment 7•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Comment 8•6 years ago
|
||
Patch for trunk.
I just noticed that this issue doesn't happen for the Attendees invite in the calendar.
That textbox handles this problem by catching the blur event.
A similar solution to mine, but different.
| Assignee | ||
Comment 9•6 years ago
|
||
Patch updated for 68 with the Mailing List dialogs.
| Reporter | ||
Comment 10•6 years ago
|
||
| Reporter | ||
Comment 11•6 years ago
|
||
| Assignee | ||
Comment 12•6 years ago
•
|
||
I don't understand why clicking onto an auto-complete suggestion triggers this, well, maybe "text entered", but enter, which is what we processed:
https://dxr.mozilla.org/comm-esr60/source/mail/components/compose/content/addressingWidgetOverlay.js#846
The ontextentered method was used to deal with selecting a result from the autocomplete.
From the documentation: "This event handler is called when a result is selected for the textbox."
What about this stuff, this can just go?
That method was used to create an empty row on click in the Mailing List dialog if the last row had any value in it.
I replaced it with my method, which it also creates an extra empty row and also moves the focus on it.
If one day that throws up a div, we're hosed
I'm sure I will have to rework this whole thing once bug 1534455 lands and I'll have to convert those elements to html input.
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
What about this? Check for a <panel> element to see if a suggestion from the autocomplete list was clicked.
Yes, it will fail again if m-c rewrites autocomplete, but this is probably more indicative. If we see they touched <panel> we grep c-c for occurrences of panel and find this. With just "textbox" or "div" checks, we never find this place.
Comment 15•6 years ago
|
||
(In reply to Jorg K (GMT+2) (reduced availability 14-19 of Sept.) from comment #11)
-function awNotAnEmptyArea(event) {
What about this stuff, this can just go?
In the mailing list editor, if you delete the last empty row of recipients and then click ANY of the existing ones (whether the first or last), a new empty row appears on the END. That looks weird and this patch drops this if we remove awNotAnEmptyArea().
| Assignee | ||
Comment 16•6 years ago
|
||
Looking for the panel parent might be a bit more solid than my solution.
I'm good with it.
Do you want me to update the 2 patches with the suggested solution?
| Reporter | ||
Comment 17•6 years ago
|
||
We'll handle it.
| Reporter | ||
Comment 18•6 years ago
|
||
Discussed with Aceman over IRC. Let's return early if we're certainly not on the popup.
Comment 19•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Updated•6 years ago
|
Comment 20•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/43f3705dfb3b
Make click onto auto-complete results popup accept suggestion and move to the next line again. r=jorgk DONTBUILD
| Reporter | ||
Comment 21•6 years ago
|
||
TB 68.1.1 or TB 68.2:
https://hg.mozilla.org/releases/comm-esr68/rev/736b5db8c01e6c8fae1ca001ce459532253b4bb8
| Reporter | ||
Comment 22•6 years ago
|
||
TB 70 beta 2:
https://hg.mozilla.org/releases/comm-beta/rev/12980836e3bce0e5a1636680784339d582382d7b
| Assignee | ||
Comment 23•6 years ago
|
||
Does anyone know why this patch seems to not be present on trunk, but the click works?
| Reporter | ||
Comment 24•6 years ago
|
||
You know :-) - The trunk version was ripped out when auto-complete was de-XBL'ed and you actually implemented the new version here: Bug 1565075 comment #57.
| Assignee | ||
Comment 25•6 years ago
|
||
Oh man, I completely forgot about it...uff, thanks for the reminder.
Description
•