Closed
Bug 1495698
Opened 6 years ago
Closed 6 years ago
Freeze by using HTML signatures referencing non-existent image
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr6063+ fixed, thunderbird63 fixed, thunderbird64 fixed)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: mariomey, Assigned: jorgk-bmo)
References
Details
(Keywords: hang, regression)
Attachments
(2 files, 1 obsolete file)
1.40 KB,
text/html
|
Details | |
2.98 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0
Build ID: 20180920131237
Steps to reproduce:
Debian 9 Mate 64x
I have 3 identities in my account. All of them has HTML signature. Some days ago, I could select any of them and signature worked OK. But I updated my system.
Now, the main one works... but, when I select any of the other... Thunderbirds freezes: I have to kill it.
Y have my signatures as html files, loaded by "Attach the signature from a file instead)...".
But, if I uncheck that option and paste html code in "Signature text" with "Use HTML..." checked, Thunderbird freezes.
If I uncheck "Use HTML....", it doesn't freeze... but signature appears as code.
I attach one signature HTML file.
Actual results:
Thunderbird freezes.
Expected results:
Show HTML signatures right using code or file.
Assignee | ||
Comment 1•6 years ago
|
||
If tested this with your signature. That contains:
<p class="firma"><img src="file:///home/mario/circo3d-grafica/mails-headers-firmas/firma.png" alt="" border="0" width="250" height="75"></p>
I get a hang too, and I obviously don't have the file. If I change the source to a file I have, it works fine, and then changing it to an invalid filename it hangs again.
The debug window shows and endless loop:
[9476, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file c:/mozilla-source/comm-central/comm/mailnews/compose/src/nsMsgCompose.cpp, line 4284
Hmm, I thought I had already fixed this one in bug 1477401. I'll fix it.
To get you going again, make sure that the file exists on your machine.
Assignee: nobody → jorgk
Status: UNCONFIRMED → ASSIGNED
Component: Untriaged → Message Compose Window
Ever confirmed: true
Assignee | ||
Updated•6 years ago
|
Summary: Freeze by using HTML signatures in alternative identities → Freeze by using HTML signatures in alternative identities referencing non-existent image
Assignee | ||
Updated•6 years ago
|
Summary: Freeze by using HTML signatures in alternative identities referencing non-existent image → Freeze by using HTML signatures referencing non-existent image
Assignee | ||
Comment 3•6 years ago
|
||
Looks like we broke this in bug 1477401. This restores the original code
https://hg.mozilla.org/comm-central/rev/068b782f89db#l1.70
offset = fPos - 1;
but takes care not to loop endlessly if fPos==0, which is what the other bug tried to address.
Attachment #9014342 -
Flags: review?(acelists)
Comment on attachment 9014342 [details] [diff] [review]
1495698-hang-non-existent-image.patch
Review of attachment 9014342 [details] [diff] [review]:
-----------------------------------------------------------------
OK, while there, please fix the "incompelte" at the start of that loop.
And also it is kinda unusual to have nsAutoString as argument to a function (nsMsgCompose::ReplaceFileURLs). So please change to nsAString if it compiles.
Attachment #9014342 -
Flags: review?(acelists) → review+
Assignee | ||
Comment 5•6 years ago
|
||
There is no nsAString::Rfind(). You'd need to use PromiseFlatString() on the argument. I can change it to nsString().
Assignee | ||
Comment 8•6 years ago
|
||
Thanks, fixed the typo and made it nsString.
Attachment #9014342 -
Attachment is obsolete: true
Attachment #9014596 -
Flags: review+
Comment on attachment 9014596 [details] [diff] [review]
1495698-hang-non-existent-image.patch (v2)
Review of attachment 9014596 [details] [diff] [review]:
-----------------------------------------------------------------
What is the 'hand' in the commit message? Typo?
Comment 10•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/ff185577e79d
Fix hang when HTML signature references non-existent image. r=aceman
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 64.0
Assignee | ||
Updated•6 years ago
|
Attachment #9014596 -
Flags: approval-comm-esr60+
Attachment #9014596 -
Flags: approval-comm-beta+
Assignee | ||
Comment 11•6 years ago
|
||
Beta (TB 63):
https://hg.mozilla.org/releases/comm-beta/rev/c527415f3f48f16b5ec20c2f59f4695a70fa820e
status-thunderbird63:
--- → fixed
status-thunderbird64:
--- → fixed
status-thunderbird_esr60:
--- → affected
Assignee | ||
Comment 12•6 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•