dropping of addresses from Address Book into a compose window address field is handled twice
Categories
(SeaMonkey :: MailNews: Composition, defect)
Tracking
(seamonkey2.53+ fixed, seamonkey2.57esr? affected)
People
(Reporter: njsg, Assigned: njsg)
Details
(Whiteboard: SM2.53.8)
Attachments
(1 file, 2 obsolete files)
|
2.32 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
As frg observed, dragging and dropping contacts from the address book into a compose window address field does not produce the expected result - if contacts abc, def and xyz are selected, and dropped in the first empty address field, the result will be something like:
To: abcabc, def, xyz
To: def
To: xyz
This is present in 2.53.9b1pre and also in 2.49.5. This appears to be caused by the drop event being handled twice. The field where the selection is dropped gets the corresponding address (in this case abc), and the whole selection as a comma-separated list. If "abc" is long enough, and depending on the drop location inside the field, the comma-separated list may appear in the middle of "abc". Using "undo" in the affected field then shows "abc".
This was bug 1267804 for Thunderbird, and adding event.preventDefault() before "if (onWidget)" inside DropOnAddressingTarget() (see bug 1708999) seems to help.
| Assignee | ||
Comment 1•4 years ago
|
||
Is something like this sufficient? Should it also call stopPropagation() somewhere?
Something like this for the stopPropagation?
| Assignee | ||
Comment 3•4 years ago
|
||
A newer version from the patch queue with the modifications discussed here and on IRC.
Comment on attachment 9223133 [details] [diff] [review]
1712002-preventDefault-v1_2-2538.patch
[Triage Comment]
Carrying forward r/a=frg
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/4b505f0c9199
Prevent repeated handling of drop event. r=frg
Updated•4 years ago
|
Updated•4 years ago
|
Comment 6•4 years ago
|
||
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/617a64886fc9c6f56f67248a3508da0c65b5f687
Prevent repeated handling of drop event. r=frg a=frg
Description
•