Closed
      
        Bug 1446878
      
      
        Opened 7 years ago
          Closed 7 years ago
      
        
    
  
If there's only one recipient, it can't be removed using the new delete icon button
Categories
(Thunderbird :: Message Compose Window, enhancement)
Tracking
(thunderbird60 fixed, thunderbird61 fixed)
        RESOLVED
        FIXED
        
    
  
        
            Thunderbird 61.0
        
    
  
People
(Reporter: thomas8, Assigned: aceman)
References
Details
Attachments
(1 file, 1 obsolete file)
| 1.56 KB,
          patch         | jorgk-bmo
:
              
              review+ jorgk-bmo
:
              
              approval-comm-beta+ | Details | Diff | Splinter Review | 
+++ This bug was initially created as a clone of Bug #1100103 +++
STR
1.) Write message with only one recipient (or delete all others)
2.) Try to delete that only recipient with the new delete icon (from hovering recipient type selector)
Actual result
- nothing happens
Expected result
- the email address should be removed, but the recipient input field with type selector should stay (and according to documentation of awDeleteHit(), that's exactly what should happen)
This looks like a pre-existing bug, but with Bug 1100103 it's now more exposed.
https://dxr.mozilla.org/comm-central/rev/a8eecfe6de793af00e98cb1488515199c5fb73fb/mail/components/compose/content/addressingWidgetOverlay.js#539-548
Thanks for noticing.
It is new bug, because in the added call awDeleteHit(this), 'this' isn't the inputelement of the recipient address as the function would expect. That is why it does not clear the right field.
Assignee: nobody → acelists
Status: NEW → ASSIGNED
Version: 31 Branch → 60
This works for me.
But I am not happy about hard-coding the element hierarchy in this way.
        Attachment #8960087 -
        Flags: review?(jorgk)
        Attachment #8960087 -
        Flags: feedback?(richard.marti)
This could be safer.
        Attachment #8960087 -
        Attachment is obsolete: true
        Attachment #8960087 -
        Flags: review?(jorgk)
        Attachment #8960087 -
        Flags: feedback?(richard.marti)
        Attachment #8960089 -
        Flags: review?(jorgk)
        Attachment #8960089 -
        Flags: feedback?(richard.marti)
|   | ||
| Comment 4•7 years ago
           | ||
Comment on attachment 8960089 [details] [diff] [review]
1446878.patch v2
Not super-nice but working, thanks.
        Attachment #8960089 -
        Flags: review?(jorgk) → review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/67239778cb19
bug 1100103 follow-up: pass the right input element into awDeleteHit. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
|   | ||
| Updated•7 years ago
           | 
Target Milestone: --- → Thunderbird 61.0
|   | ||
| Updated•7 years ago
           | 
        Attachment #8960089 -
        Flags: feedback?(richard.marti) → approval-comm-beta+
|   | ||
| Comment 6•7 years ago
           | ||
Beta (TB 60):
https://hg.mozilla.org/releases/comm-beta/rev/3f6164d3285b9737c65a916e8bf8c7ef71f8f4c2
          status-thunderbird60:
          --- → fixed
          status-thunderbird61:
          --- → fixed
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•