Closed Bug 1498606 Opened 6 years ago Closed 6 years ago

[de-xbl] Remove mail-messageid binding.

Categories

(Thunderbird :: Mail Window Front End, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 64.0

People

(Reporter: arshad, Assigned: arshad)

References

Details

Attachments

(1 file, 4 obsolete files)

Attached patch mail-messageid.patch (obsolete) — Splinter Review
Assignee: nobody → arshdkhn1
Status: NEW → ASSIGNED
Assignee: arshdkhn1 → nobody
Status: ASSIGNED → NEW
Assignee: nobody → arshdkhn1
Status: NEW → ASSIGNED
Attachment #9016932 - Flags: review?(mkmelin+mozilla)
Blocks: 1498792
No longer blocks: 1498792
Comment on attachment 9016932 [details] [diff] [review]
mail-messageid.patch

Review of attachment 9016932 [details] [diff] [review]:
-----------------------------------------------------------------

You lost the context menu, which is the main reason for this binding to exits. 

Also, looks like messageIdDisplayImage is just used for padding so we can drop that and inline the label text instead, leading to quite a bit of simplification
Attachment #9016932 - Flags: review?(mkmelin+mozilla) → review-
Attached patch mail-messageid.patch (obsolete) — Splinter Review
Attachment #9016932 - Attachment is obsolete: true
Attachment #9017144 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9017144 [details] [diff] [review]
mail-messageid.patch

Review of attachment 9017144 [details] [diff] [review]:
-----------------------------------------------------------------

Please test your patches.
This one is not working, apparently since the message id fields have < and > in them and then probably some escaping needs to take place. With the patch, all the fields are invisible

::: mail/base/content/mailWidgets.js
@@ +130,5 @@
> +    this._updateAttributes();
> +  }
> +
> +  _updateAttributes() {
> +    this.textContent =  this.label || "";

there's a double space here

@@ +134,5 @@
> +    this.textContent =  this.label || "";
> +  }
> +
> +  set label(val) {
> +    this.setAttribute("label", val);

for val null, please remove attribute
Attachment #9017144 - Flags: review?(mkmelin+mozilla) → review-
Attached patch mail-messageid.patch (obsolete) — Splinter Review
Attachment #9017144 - Attachment is obsolete: true
Attachment #9017833 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9017833 [details] [diff] [review]
mail-messageid.patch

Review of attachment 9017833 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/base/content/mailWidgets.js
@@ +124,5 @@
> +    this.classList.add("messageIdDisplayButton");
> +    this.setAttribute("context", "messageIdContext");
> +    this._updateAttributes();
> +
> +    this.addEventListener("click", (event) => {

Should we remove the event listener? can i case arise where we want to do this?
Comment on attachment 9017833 [details] [diff] [review]
mail-messageid.patch

Review of attachment 9017833 [details] [diff] [review]:
-----------------------------------------------------------------

This is working now. r=mkmelin with the small change below

The event listener should be kept. Clicking on message ids is fairly useful for instance for References, so you can go and open the original message this message was a reply to.

::: mail/base/content/mailWidgets.js
@@ +138,5 @@
> +    this.textContent = this.label || "";
> +  }
> +
> +  set label(val) {
> +    if (val === null || val === undefined) {

use

if (val == null)

instead. this will match both null and undefined
Attachment #9017833 - Flags: review?(mkmelin+mozilla) → review+
Attached patch mail-messageid.patch (obsolete) — Splinter Review
Attachment #9017833 - Attachment is obsolete: true
Attachment #9018591 - Flags: review+
Attachment #9018591 - Attachment is obsolete: true
Attachment #9018592 - Flags: review+
Keywords: checkin-needed
Yes, things have been bumpy today :-(
https://hg.mozilla.org/comm-central/rev/baf2d45077353ff89255ffedcfea660bda226e4d
Bug 1498606 - Migrate mail-messageid binding to custom element. r=mkmelin DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 64.0
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: