Closed Bug 1708993 Opened 4 years ago Closed 4 years ago

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

Categories

(SeaMonkey :: MailNews: Composition, task)

Tracking

(seamonkey2.53+ fixed, seamonkey2.57esr? affected)

RESOLVED FIXED
seamonkey 2.87
Tracking Status
seamonkey2.53 + fixed
seamonkey2.57esr ? affected

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

References

Details

(Whiteboard: SM2.53.8)

Attachments

(1 file)

This ports the relevant parts of:

  • Bug 1290755 - use menulist.value instead of menulist.selectedItem.getAttribute("value") in TB compose window
  • Bug 824150 - Code cleanup in /mail/ and /mailnews/: Use new String methods like startsWith, endsWith, contains, remaining Services.jsm switches and querySelector use instead of NodeList calls - compose
  • Bug 1110166 - Port |Bug 1102219 - Rename String.prototype.contains to String.prototype.includes| to comm-central

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: none
Testing completed (on m-c, etc.): 2.53.8
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: none

Attachment #9219751 - Flags: review?(frgrahl)
Attachment #9219751 - Flags: approval-comm-release?
Attachment #9219751 - Flags: approval-comm-esr60?
Blocks: 1708999

Comment on attachment 9219751 [details] [diff] [review]
1708993-port1290755-2538.patch

LGTM

NIT as discussed:

  • if (!msgCompFields) {
  • throw new Error("Message Compose Error: msgCompFields is null (ExtractRecipients)");
  • return;
  • }

The return is imho dead code but can stay to match TB code.

Attachment #9219751 - Flags: review?(frgrahl)
Attachment #9219751 - Flags: review+
Attachment #9219751 - Flags: approval-comm-release?
Attachment #9219751 - Flags: approval-comm-release+
Attachment #9219751 - Flags: approval-comm-esr60?
Attachment #9219751 - Flags: approval-comm-esr60+

https://hg.mozilla.org/comm-central/rev/2d45461852bcb40df454e4285f4f82b788a36d3b
Use menulist.value instead of menulist.selectedItem.getAttribute("value") in compose window. r=frg

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Whiteboard: SM2.53.8
Target Milestone: --- → seamonkey 2.87

https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/de3a6d34c1af6ba5df2f6ee388a2298424b22b31
Use menulist.value instead of menulist.selectedItem.getAttribute("value") in compose window. r=frg a=frg

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: