Open main menu

CDOT Wiki β

Changes

User:AaronMT

6,073 bytes added, 18:55, 26 January 2011
Pastebin
!Community or Communities
|-
|[http://zenit.senecac.on.ca/wiki/index.php/Potential_Projects#Contribute_to_Private_Browsing_tests Contribute_to_Private_Browsing_Tests Contribute to Private Browsing testsTests]
|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]]
== 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==
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 ====
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 ==
1
edit