Deletion of applications for incoming attachment not working (TB 68)
Categories
(Thunderbird :: Preferences, defect)
Tracking
(thunderbird_esr6869+ fixed, thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
5.63 KB,
application/json
|
Details | |
5.26 KB,
application/json
|
Details | |
1.43 KB,
patch
|
aceman
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
More de-XBL fun:
Panel for applications for incoming attachment shows up empty after startup and deleting not working (TB 68). The panel gets filled after clicking on the columns to sort.
That won't be so easy to fix since its working on trunk with the reworked options page.
TypeError: this._prefsBundle is undefined applications.js:202:7
get typeDescription chrome://messenger/content/preferences/applications.js:202
connectAndAppendToList chrome://messenger/content/preferences/applications.js:132
_rebuildView chrome://messenger/content/preferences/applications.js:1057
sort chrome://messenger/content/preferences/applications.js:1320
onclick about:preferences:1
On deletion:
TypeError: handlerInfo is undefined applications.js:1538:7
onDelete chrome://messenger/content/preferences/applications.js:1538
confirmDelete chrome://messenger/content/preferences/applications.js:1518
oncommand about:preferences:1
BTW, this code moved to https://searchfox.org/comm-central/source/mail/components/preferences/general.js on trunk.
Alice, I suggest you find the startup issue first. After you delete a type, it's hard to add a new one.
Assignee | ||
Comment 1•5 years ago
|
||
It's actually worse. When sorting by "Action", only part of the list shows up.
Assignee | ||
Comment 2•5 years ago
|
||
Hmm, on a different profile the list comes up OK, but deletion doesn't work.
![]() |
||
Comment 3•5 years ago
|
||
What/where is "Panel for applications for incoming attachment"?
Assignee | ||
Comment 4•5 years ago
|
||
Options, Attachments, Incoming. Similar to what FF used to have or still has.
Assignee | ||
Comment 5•5 years ago
|
||
OK, mimetypes.rdf is now handlers.json. Here is one that you can put into your profile and then try the deletion. It might be corrupt though showing the empty list.
Assignee | ||
Comment 6•5 years ago
|
||
Well, I couldn't find anything corrupt in the file. BTW, you can use https://jsonformatter.org/json-pretty-print for formatting.
![]() |
||
Comment 7•5 years ago
|
||
TB52 with new profile:
Tool > Options > Attachments > Incoming : empty
TB70 with new profile:
Tool > Options > General > File & Attachments : empty
Assignee | ||
Comment 8•5 years ago
|
||
Sure. Use the manifest.json I attached.
Assignee | ||
Comment 9•5 years ago
|
||
Reduced version, here the list looks good after a start.
![]() |
||
Comment 10•5 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #5)
Created attachment 9088366 [details]
handlers.jsonOK, mimetypes.rdf is now handlers.json. Here is one that you can put into your profile and then try the deletion. It might be corrupt though showing the empty list.
Good: The list showing up. And able to delete an action.
Bad: The list showing up. And unable to delete an action.
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=0fb460d27117da21b5ee2bb36d51ab9c321be263&tochange=253562a57fb51b675a5f7eaf163b0a1ee0f06cd8
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a44934afe25e7ac1fcccc5ca63b90406a29fbee2&tochange=895c1242462121fe44f1bcb1aa57b412eaa7a167
Assignee | ||
Comment 11•5 years ago
|
||
Thanks, you don't see "list not showing up" with the first manifest.json I attached?
Assignee | ||
Comment 12•5 years ago
|
||
Well, removing/adding
"text/rfc822-headers": {
"action": 4,
"extensions": [
"txt"
]
},
makes the difference between working and not working, maybe some others. I have to bisect it.
Assignee | ||
Comment 13•5 years ago
|
||
Comment on attachment 9088366 [details]
handlers.json (bad)
With this one, the list doesn't show for me.
Assignee | ||
Comment 14•5 years ago
|
||
With this one, the list shows. Difference: I removed:
"text/rfc822-headers": {
"action": 4,
"extensions": [
"txt"
]
},
and
"application/ics": {
"action": 2,
"ask": true,
"handlers": [
{
"name": "notepad++.exe",
"path": "C:\\Program Files\\Notepad++\\notepad++.exe"
}
],
"extensions": [
"ics"
]
},
Weird.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
Looks like this comes from bug 1519650, thanks again, Alice.
Assignee | ||
Comment 16•5 years ago
•
|
||
On trunk it also fails like this:
TypeError: this.mBundle is undefined general.js:2105:7
get typeDescription chrome://messenger/content/preferences/general.js:2105
connectAndAppendToList chrome://messenger/content/preferences/general.js:2035
_rebuildView chrome://messenger/content/preferences/general.js:1393
_delayedPaneLoad chrome://messenger/content/preferences/general.js:254
and when deleting:
TypeError: handlerInfo is undefined general.js:1874:7
onDelete chrome://messenger/content/preferences/general.js:1874
confirmDelete chrome://messenger/content/preferences/general.js:1854
oncommand about:preferences:1
![]() |
||
Comment 17•5 years ago
|
||
How do the failing operations relate to the contents of the file? Why is some handlers.json file problematic? Are the more bugs here?
Comment hidden (obsolete) |
Assignee | ||
Comment 19•5 years ago
|
||
Thanks again, Alice.
How do the failing operations relate to the contents of the file? Why is some handlers.json file problematic? Are the more bugs here?
There are two bugs here which I didn't realise at first:
- Delete not working. Once regression range.
- Some items as listed in comment #16 make the list misbehave. Another regression range. I don't know how common those items are in the wild. My profile is quite old and I have opened many attachments in the last few years.
Comment hidden (obsolete) |
![]() |
||
Comment 21•5 years ago
|
||
I can reproduce the empty problem.
STR
Create an empty folder on HDD
Copy the handlers.json (bad) to the folder
Start TB with the folder as profile folder
Observe the list
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=ea04f95d5ceb814eeb22e47d72b5e3fa5418ce46&tochange=2131ecd0173c88f2a080af5c8ce46ecbb36dd272
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=156f9442db847c065c50af78968226369f47c151&tochange=684521e3af2ff1029d60bb207ae0d75058c3ce1f
Assignee | ||
Comment 22•5 years ago
•
|
||
Looks like bug 1460392. Many thanks again, Alice!! Time to file a new bug for this issue. EDIT: Filed bug 1576950.
Comment 23•5 years ago
|
||
I looked at FX and see that they have removed the deletion of this actions. Maybe we can remove it too. Why would it be needed to remove them? They could be set to "Always Ask" which would be the same as no action.
Assignee | ||
Comment 24•5 years ago
|
||
Hmm, this is to delete the entire row. What's wrong with that for a clean-up? You don't want people to edit the JSON file in the profile.
Comment 25•5 years ago
|
||
Why a clean-up? Do many entries make it slower?
Assignee | ||
Comment 26•5 years ago
|
||
For aesthetic reasons. You clicked on a strange attachment and that recoded and action which will stay with your forever in an ever-growing list. I like some clean-up. Shouldn't be too hard to fix the bug since it shows on trunk.
Assignee | ||
Comment 27•5 years ago
|
||
Totally trivial. Some de-XBL somewhere removed .type so we get it as attribute.
![]() |
||
Comment 28•5 years ago
|
||
Comment 29•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/450cff2d0782
fix deletion of item from incoming attachment list. r=aceman
Assignee | ||
Comment 30•5 years ago
|
||
The binding was removed here: https://hg.mozilla.org/comm-central/rev/34939e75acc1#l2.13
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 31•5 years ago
|
||
Assignee | ||
Comment 32•5 years ago
|
||
TB 69 beta 4:
https://hg.mozilla.org/releases/comm-beta/rev/4b4dd99160f315c1290d49437ae219b888ab4835
Assignee | ||
Comment 33•5 years ago
|
||
TB 68.1 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/36ac3ef023e671b173677460b510f1215f693c44
Description
•