Closed Bug 744011 Opened 13 years ago Closed 13 years ago

TB 10.0.1: Insert image from local file does not work, TB prepends wrong protocol http: instead of file: to img src attribute

Categories

(Thunderbird :: General, defect)

10 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: anjeyelf, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20100101 Firefox/11.0 Build ID: 20120312181643 Steps to reproduce: Open Write to create signature. Click on insert icon, select Image. Click on 'Choose' and locate jpeg and 'open' enter some atternative text or not (does not make any difference to issue) change dimension to small and click Ok. Actual results: Result black outline box with broken link icon where image should be. Clicked on 'Advanced Edit' and noticed that the src line did not look correct. Save the file anyway and compared to a file I had saved under previous versions Looked at both HTML files via Firefox to view code: Image not displaying result: <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title></title> </head> <body bgcolor="#FFFFFF" text="#3333FF"> <font face="Times New Roman, Times, serif"><i><b>Regards<br> Anje<br> <img alt="" src="http://../Desktop/test%20doc%20dump/honey_the_peke.JPG" height="150" width="200"><br> </b></i><br> </font> </body> </html> This scr line does not display the image. Expected results: Image displaying the correct result: <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title></title> </head> <body bgcolor="#FFFFFF" text="#3333FF"> <font face="Times New Roman, Times, serif"><i>Regards<br> </i></font> <div class="moz-signature"><i><font color="#3333ff"><font face="Times New Roman, Times, serif"> <br> <b>Anje Yelf<br> <img alt="peke" src="file:///C:/Users/Anje/Desktop/test%20doc%20dump/honey_the_peke.JPG" height="150" width="200"><br> </b> </font></font></i> </div> </body> </html> I expected an image to appear below text in signature. The code above works but is not being generated in v.10.0.1 A fix needs to be generated for the 10.0.1 version. I do not wish to upgrade to v11. If I find other versions not working I will update the info. Please note the src line
Also note: div class='moz-signature"> line not displaying.
Tested with Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20120118 Thunderbird/10.0 as well as the esr release which is 10.0.3 With winxp (I don't have Vista for testing) I am not able to reproduce this. I have seen some reports of problems in the Vista O/S with file associations in the desktop. Does it happen if you insert an image from another folder other than the desktop. Are you sure you navigated to the sub-folder of the desktop that actually holds the image. You might also be interested in the "new" method of adding a sig on an account basis. Click on an account>>view setting for this account. You can use the box there to create a sig, or choose the option to insert the sig from a file. (Oh, and the div class="moz-signature and -- delimiter will be automatically inserted for you if you use the html box.)
I have already tested adding an image from various folders other than the desktop. Please note that I have provided two examples. The one which worked was produced when I was using v.9. and there has never been an issue prior to v.10. The one which doesn't work was produced with v.10.0.1 The method of creation was exactly the same, but the code generated is different and inaccurate. I could easily do a work around but that is not the point, just because I can write code has no bearing on what others can do. This problem was brought to my attention by others asking a question via GetSatisfaction Mozilla Messaging forum. Please note that there is also an identical issue with v.11 https://getsatisfaction.com/mozilla_messaging/topics/my_image_wont_load_in_signature?utm_content=topic_link&utm_medium=email&utm_source=reply_notification
In addition: The person at the above GetSatisfaction link is using Win7 and v.11 They have identical problem and cannot add image Also they do not have functionality to save the Write message as a File, so cannot save a file as HTML to use as a signature. This is a suppose a new bug but it is related to the same problem.
I seem to remember having seen a bug where TB messed up http: vs. file: protocol (as seen in comment 0), but I believe that has been fixed. Anje, still have this problem in recent version TB 12?
Whiteboard: dupeme
Summary: Version: 10.0.1 add image does not work. → TB 10.0.1: Insert image from local file does not work, TB prepends wrong protocol http: instead of file: to img src attribute
I've upgraded to 12.0.1 Using OS Vista and reporting no issues with adding an image.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Whiteboard: dupeme
You need to log in before you can comment on or make changes to this bug.