When replying to a saved message with embedded image, a blocked image notification comes up
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr6869+ fixed, thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(1 file)
1.71 KB,
patch
|
aceman
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
When replying to a saved message with embedded image, a blocked image notification comes up.
Test message for example
https://searchfox.org/comm-central/source/mailnews/test/data/05-HTML+embedded-image.eml
When forwarding the same message, no blocked image notification comes up.
Found while looking at bug 1575330.
Assignee | ||
Comment 1•5 years ago
|
||
Add
dump(`=== ${src}\n`);
dump(`=== ${originalMsgNeckoURI.value.spec}\n`);
And you'll see this:
Forward:
=== mailbox:///C:/mozilla-source/comm-central/comm/mailnews/test/data/05-HTML+embedded-image.eml?fetchCompleteMessage=true&number=0&part=1.2&filename=kigaaldcbanejcbi.png
=== mailbox:///C:/mozilla-source/comm-central/comm/mailnews/test/data/05-HTML+embedded-image.eml?type=application/x-message-display&fetchCompleteMessage=true&number=0
The code strips type=application/x-message-display
so src
starts with the Necko spec.
Reply:
=== mailbox:///C:/mozilla-source/comm-central/comm/mailnews/test/data/05-HTML+embedded-image.eml?number=0&header=quotebody&part=1.2&filename=kigaaldcbanejcbi.png
=== file:///C:/mozilla-source/comm-central/comm/mailnews/test/data/05-HTML+embedded-image.eml?type=application/x-message-display
So they don't match. Uff. I though this would be easy to fix, but no.
Assignee | ||
Comment 2•5 years ago
|
||
Total hack, but works ;-) - We forgot this case when fixing bug 1412639.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/a255e8f77470
Handle saved message with embedded images better on reply. r=aceman
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
TB 69 beta 4:
https://hg.mozilla.org/releases/comm-beta/rev/07ec429a494851508d76355c3337e03a28c07adc
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
TB 68.1 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/b2b2bbb98ea41f452ecf3df3281c7c56f9f01b1d
Description
•