
Week 6 (Oct 6) – Bug Fixing
Lab Details
This was quite a fun lab to do. Excluding the build process, this lab did not take too long.
To be frank, the majority of my time spent doing this lab was fixing my ~/.mozconfig file. Reason being – I have never built Mozilla Thunderbird before, so some changes and learning adaptations were necessary.
For this lab, I downloaded a fresh trunk build of Mozilla Thunderbird 3.0b1pre from mercurial on Ubuntu 8.04.
Upon successful build, I confirmed the bug: improper handling of email hyper linking in e-mail messages.
My next step was to submit a bug on Bugzilla addressing the issue, which can be found here Bug #6817
Taking advantage of the nice tip posted, to peek at the code posted here:
Had this tip not been posted, I would have executed an MXR search for ‘hyperlink‘
Following that, I began to scour for the cause of this bug looking through the file and found the line, #197, with the following condition:
For this function to perform properly, the line needs to be changed to:
Next, it was time to create a patch with the updated changes:
The contents of the patch containing the solution to the problem can be found here, Bug #6817 – Patch
Lastly, I submitted my patch to my created bug on Bugzilla, asking for review from David.Humphrey.
Parts I found difficult:
- Building Mozilla Thunderbird by altering ~/.mozconfig
- Looking for the appropriate function found in mozTXTToHTMLConv.cpp file that deals with hyper linking.
Tips: Read the comments for the functions, they help identify the functionality of the succeeding code: //i.e. we want to linkify johndoe@foo.com but not “let’s meet @8pm”.
Links:
- My submitted bug: #6817 – https://landfill.bugzilla.org/bugzilla-3.0-branch/show_bug.cgi?id=6817
- My submitted patch: #980 - https://landfill.bugzilla.org/bugzilla-3.0-branch/attachment.cgi?id=980
- My Wiki details for this Lab: http://zenit.senecac.on.ca/wiki/index.php/User:AaronMT#Bug_Fixing_with_Mozilla_Thunderbird_3.0b1pre
Cheers,
Aaron


