1
edit
Changes
→Pastebin
I look forward to tinkering with the innards of Firefox, in DPS909. I also enjoy learning more about software development, open source and current/future web applications, and lastly modern programming languages.
* '''Name: '''Aaron Train
* '''Program: '''Bachelor of Software DesignDevelopment
* '''Hometown: '''Thornhill, Ontario
</td>
** '''AaronMT''' on IRC ([irc://irc.mozilla.org/seneca moznet#seneca] or [irc://irc.mozilla.org/seneca freenode#seneca])
* E-Mail
**'''Seneca E-Mail: '''amtrain@at learn.senecac.dot on.dot ca'''**'''Personal E-Mail: '''aaron.dot train@at gmail.dot com'''
== Blog ==
= DPS909A - Fall 2008 =
After reading about many projects and finding my interests, I have selected a project that stands out for me as something I'd be willing to help contribute to and sounds like fun to work with in the process. I have an interest in computer security and this seems like a fit. I can relate to this function of the browser being implemented in a sense to how people want to surf anonymously in public areas. For example, if I *must* do some online banking while on a public terminal at school - privacy is a <u>must</u>
* '''Project: [http://zenit.senecac.on.ca/wiki/index.php/Contribute_to_Private_Browsing_Tests Contribute to Private Browsing tests] '''
*'''Main Contact''' [https://wiki.mozilla.org/User:Ehsan Ehsan Akhgari]
== Project for DPS909 ==
{| class="mediawiki sortable" border="1"
|-
!Project Name
!Description
!Leader(s)
!Community or Communities
|-
|[http://zenit.senecac.on.ca/wiki/index.php/Contribute_to_Private_Browsing_Tests Contribute to Private Browsing Tests]
|The new Private Browsing feature (see [https://bugzilla.mozilla.org/show_bug.cgi?id=248970 bug 248970] and the [https://wiki.mozilla.org/User:Ehsan/PrivateBrowsingTests test plan]) needs thorough tests written in order to insure its proper functionality. This will involve collaborating with those writing the patch and tests in order to develop a full suite of tests.
|[[User:AaronMT|Aaron Train]]
|Mozilla
|}
== Project Notes ==
* To run a single unit-test use '''check-one SOLO_FILE'''
** Example
<pre>mozilla-central$ make -C obj*/netwerk/test check-one SOLO_FILE=test_bug248970.js</pre>
== Deliverance for DPS909 ==
*[http://zenit.senecac.on.ca/wiki/index.php/Contribute_to_Private_Browsing_Tests Contribute to Private Browsing Tests]
== Contributions for DPS909 ==
* '''December'''
** Tested Jason (Slokunshialgo)'s Network Manager 0.3 release - Results: Connected to home wireless network <u>without</u> WPA enabled.
* '''November'''
** Submitted bug [https://bugzilla.mozilla.org/show_bug.cgi?id=465340 #465340]
* '''October'''
** Tested out 0.1 release of [http://zenit.senecac.on.ca/wiki/index.php/Talk:Canvas3D_XUL_Runner_App_0.1 Canvas 3D XUL Runner Application Browser] of [http://zenit.senecac.on.ca/wiki/index.php/User:Vesper Leonard Lee] - posted results.
** Participated in Mozilla Test Day for Firefox Bugday, Tuesday 10/21
** Tested patches on '''[https://bugzilla.mozilla.org/show_bug.cgi?id=457110 blocker bug #457110]''' that was necessary on patch 2.12 and prior in [https://bugzilla.mozilla.org/show_bug.cgi?id=248970 #248970 - private browsing]
** Tested Songbird with libtorrent extension of Anthony's [http://zenit.senecac.on.ca/wiki/index.php/User:Ashughes/BirdTorrent/TestResults#Birdtorrent_Test_Results Birdtorrent Test Results]
** Submitted Build Times for Patrick's [[Profile the build system]]
*** <pre>real 43m14.441s user 32m21.197s sys 2m50.695s </pre>
** Participated in Mozilla Test Day for Firefox 3.0.2
*** Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=456107 bug 456107]
** Aided [[User:Kwpark1|Park Ki-Won]] with his blog posting about [http://kwpark1.wordpress.com/2008/09/23/need-contributors-for-sqlite-project/ Need contributors for SQLite Project] by downloading the tool, checking the table and e-mailing him my *.sql file
== FSOSS 2008 Report ==
[http://zenit.senecac.on.ca/wiki/index.php/User:AaronMT/FSOSS_08 Free Software and Open Source Symposium 2008 Report]
== Bugs for DPS909==
== Labs ==
===Mozilla Building Labs ===
In preparation for [http://zenit.senecac.on.ca/wiki/index.php/DPS909_and_OSD600_Fall_2008_Weekly_Schedule#Week_3_.28Sept_15.29_-_Managing_and_Building_large_source_trees DPS909 - Lab #2 (Week 3)] I will outline my intended computer/OS that I will be documenting my process through the lab on ...
name: "pb",
homepage: "http://aaronmt.wordpress.com",
author: { name: "Aaron Train", email: "aaron.train@gmail.com"},
description: "Transfers selected text to a new Pastebin.",
help: "Selected text will be sent to a new Pastebin",
},
});</pre>
==== Real World Mozilla Source Code Reading Lab ====
For this lab, I have selected the browser function, ''Bookmarks -> Bookmark This Page'' and have done a little digging in the latest Mozilla Trunk build to find out where the functionality is situated deep within the Mozilla code.
What my digging through [http://mxr.mozilla.org Mozilla Cross Reference] has uncovered:
An initial search for ''Bookmark This Page'' revealed..
* [http://mxr.mozilla.org/mozilla-central/source/browser/locales/en-US/chrome/browser/browser.dtd#62 browser.dtd]
** <pre><!ENTITY bookmarkThisPageCmd.label "Bookmark This Page"></pre>
* [http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-menubar.inc#409 browser-menubar.inc]
** <pre> <menuitem label="&bookmarkThisPageCmd.label;" command="Browser:AddBookmarkAs" key="addBookmarkAsKb"/></pre>
* [http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#1240 browser.js]
**<pre>// Disable inappropriate commands / submenus var disabledItems = [''Browser:AddBookmarkAs'];</pre>
My search led me to browser.js but I could not find anything related to AddBookmarkAs.
==== Bugs, Bugzilla, and Debugging ====
For this lab, I will look at the primary bug associated with my project: [https://bugzilla.mozilla.org/show_bug.cgi?id=248970 Bug #248970]
Bug associated with [https://bugzilla.mozilla.org/show_bug.cgi?id=248970 Bug #248970]
* '''Depends On'''
** [https://bugzilla.mozilla.org/show_bug.cgi?id=456884 Bug #456884] - Provide a way to open a link to Private Browsing Mode
** [https://bugzilla.mozilla.org/show_bug.cgi?id=457110 Bug #457110] - Support in-memory DB for the downloads manager back-end
* '''Blocker'''
** [https://bugzilla.mozilla.org/show_bug.cgi?id=454792 Bug #454792] - Should safe browsing code react to private browsing mode?
==== Bug Fixing with Mozilla Thunderbird 3.0b1pre ====
[[Image:Tbshredder.png]]
*For this lab, I downloaded a fresh trunk build of Mozilla Thunderbird 3.0b1pre from mercurial.
<pre>hg clone http://hg.mozilla.org/comm-central/ src</pre>
*Once the repository had been cloned, I updated
<pre>python client.py checkout</pre>
*This essentially, pulls the core mozilla-central codebase (Firefox 3.1/xulrunner 1.9.1) into mozilla/
and pulls the following directories from cvs (the directories prefixed by extensions/ go into mozilla/extensions):
** calendar
** extensions/irc (Chatzilla)
** extensions/typeaheadfind
** extensions/venkman
** extensions/wallet
** directory/c-sdk
*Using the following ~/.mozconfig, I built Mozilla Thunderbird / Shredder 3.01b1pre
<pre>
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --disable static --enable-shared
ac_add_options --enable-application=mail
</pre>
*Next, I tested the bug
** Notice the mishandling of proper hyper linking. The text that <u>is</u> hyper linked should not be.
[[Image:Tbshredderbug.png ]]
*Next, I submitted a bug on Bugzilla
** [https://landfill.bugzilla.org/bugzilla-3.0-branch/show_bug.cgi?id=6817 Bug #6817]
*Following that, I began to scour for the cause of this bug looking through the hinted '''mozilla/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp'''
and found the line, [http://mxr.mozilla.org/mozilla-central/source/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#197 #197], with the following condition
<pre>
if (inString.FindChar('.', pos) != kNotFound) // if we have a '.' after the @ sign....
</pre>
*For this function to perform properly, the line needs to be changed to
<pre>
if ((inString.FindChar('.', pos) != kNotFound) && (inString.Find("..",0)==kNotFound))
</pre>
*Next, I created a patch for the solution by executing the following
<pre>
hg diff -p -U 8 > patch.txt
</pre>
The contents of the patch containing the solution to the problem can be found here, [https://landfill.bugzilla.org/bugzilla-3.0-branch/attachment.cgi?id=980 Bug #6817 - Patch]
*Lastly, I submitted my patch to my created bug on Bugzilla, asking for review from David.Humphrey.
==== Dive into Mozilla Modifying Firefox using an Extension Lab ====
Experience + Code Used found here
http://aaronmt.wordpress.com/2008/10/28/lab-7-modifying-mozilla-firefoxs-tab-behaviour/
==== Modify the Browser - Extensions ====
The following is an extension written in November 2008, Week 8 of DPS909.
'''addtabbrowser.xpi''' - 'Add Tab Browser' is a very minimalistic extension that modifies the behavior of the placement of tabs after they open. Behavior of tabs is altered in that new tabs are placed after the currently selected tab, rather than placed at the very end of the tab list. This extension was written as an introduction into the world of writing extensions and modifying behavior of Mozilla Firefox.
<font color="green">'''Download link here:'''</font> [http://zenit.senecac.on.ca/wiki/imgs/Addtabbeside.xpi Addtabbeside.xpi] (file size: 2 KB, MIME type: application/x-xpinstall)
File contents contained within
<font color="green">'''addtabbeside.xpi'''</font>
* '''addtabbeside@senecac.on.ca'''
** '''chrome.manifest'''
** '''install.rdf'''
***'''chrome'''
****'''content'''
*****'''addtabbeside.js'''
*****'''overlay.xul'''
<font color="green">'''Install instructions:'''</font> Drag addtabbeside.xpi into your main browser. The addons install manager will detect and properly install the extension.
<font color="red">'''Removal instructions:'''</font> Tools -> Addons -> Uninstall -> Restart the browser
==== XPCOM - Extension ====
[[Image:Xpcom_success.png]]
*Download the *.xpi here: [http://zenit.senecac.on.ca/wiki/imgs/Firstxpcom_AaronMT.xpi http://zenit.senecac.on.ca/wiki/imgs/Firstxpcom_AaronMT.xpi]
**http://aaronmt.wordpress.com/2008/11/15/my-first-xpcom-extension-lab/
==== XPCOM - Chrome ====
[[Image:Chrome_aaronmt.jpg|10p]]
* firstxpcomchrome.zip [http://zenit.senecac.on.ca/wiki/imgs/Firstxpcomchrome.zip http://zenit.senecac.on.ca/wiki/imgs/Firstxpcomchrome.zip]
== Bugs ==