Closed Bug 1576950 Opened 5 years ago Closed 5 years ago

Panel for applications for incoming attachment shows up empty after startup (TB 68)

Categories

(Thunderbird :: Preferences, defect)

defect
Not set
normal

Tracking

(thunderbird_esr6869+ fixed, thunderbird69 wontfix, thunderbird70 fixed)

RESOLVED FIXED
Thunderbird 70.0
Tracking Status
thunderbird_esr68 69+ fixed
thunderbird69 --- wontfix
thunderbird70 --- fixed

People

(Reporter: jorgk-bmo, Assigned: jorgk-bmo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1576825 +++

When we use "handler.json (bad)" from bug 1576825 attachment 9088366 [details] the list of incoming attachment types and actions looks empty and acts erratically when sorted.

See bug 1576825 comment #21 for details.

OK, with the bad file, we get this on trunk:

TypeError: this.mBundle is undefined general.js:2109:7
get typeDescription chrome://messenger/content/preferences/general.js:2109
sortByType chrome://messenger/content/preferences/general.js:1667
comparefn self-hosted:251
InsertionSort self-hosted:3658
MergeSort self-hosted:3723
sort self-hosted:254
_sortVisibleTypes chrome://messenger/content/preferences/general.js:1678
_delayedPaneLoad chrome://messenger/content/preferences/general.js:253

All this comes from bug 1460392 and there we read in bug 1460392 comment #4: The FX part 3 is stringbundle changes we don't need to port.
So we didn't port this:
https://hg.mozilla.org/mozilla-central/rev/d3afbfe98a71

Maybe there's a problem. Looks like the two type that upset it are TB specific, bug 1576825 comment #14: text/rfc822-headers and application/ics.

Attached patch 1576950-fix-disambiguate.patch (obsolete) — Splinter Review

This shows that the console really spits out the right location.

Something goes wrong in disambiguation. With this hack, the list is properly displayed.

This fixes it. Wrong this.

Assignee: nobody → jorgk
Attachment #9088540 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #9088545 - Flags: review?(acelists)
Target Milestone: --- → Thunderbird 70.0
Attachment #9088545 - Flags: approval-comm-esr68+
Attachment #9088545 - Flags: approval-comm-beta+
Comment on attachment 9088545 [details] [diff] [review]
1576950-fix-disambiguate.patch

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

Very nice, thank you!
Attachment #9088545 - Flags: review?(acelists) → review+
Keywords: checkin-needed

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/3f23a0fb3500
fix incoming attachment list if disambiguation is necessary. r=aceman

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Attachment #9088545 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: