Closed Bug 1290755 Opened 8 years ago Closed 8 years ago

use menulist.value instead of menulist.selectedItem.getAttribute("value") in TB compose window

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 51.0

People

(Reporter: aceman, Assigned: aceman)

Details

Attachments

(1 file, 2 obsolete files)

There are some cases in Tb compose window where we use menulist.selectedItem.getAttribute("value"). For menulist, the value should also be propagated from the selected item to the parent menulist. We should be able to fetch it from there as menulist.value. It should also be marginally faster, which may add up in loops iterating all recipients or on each key press (like Recipients2CompFields and awRecipientKeyPress).
Attached patch patch (obsolete) — Splinter Review
Attachment #8776408 - Flags: review?(mozilla)
Attachment #8776408 - Attachment is obsolete: true
Attachment #8776408 - Flags: review?(mozilla)
Attached patch patch v2 (obsolete) — Splinter Review
Attachment #8776425 - Flags: review?(mozilla)
Comment on attachment 8776425 [details] [diff] [review] patch v2 As discussed, refreshed patch coming.
Attachment #8776425 - Flags: review?(mozilla)
Comment on attachment 8777141 [details] [diff] [review] patch v3 Review of attachment 8777141 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the delay and the interference with other patches/bugs. ::: mail/components/compose/content/addressingWidgetOverlay.js @@ +598,5 @@ > // rather than using the real visible first row of the listbox. > // > // For now we'll just put in a hack that ensures the focused attribute > // is never copied when the node is cloned. > + input[0].removeAttribute("focused"); Sorry to have rotted this hunk ;-(
Attachment #8777141 - Flags: review?(mozilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 51.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: