Education/Learning/ModifyBrowser: Difference between revisions

Jump to navigation Jump to search
Line 1: Line 1:
==Introduction==
== Introduction ==


In this walkthrough, we will explore the process of making a small change to the behaviour of Firefox. The change we will make will be done directly in the Firefox source code (note: this change can also be done as an extension, which we will do in another walkthrough). In so doing, we'll learn how to go from an idea for a top-level UI feature change, to searching and studying the code, to making and testing this change.
In this walkthrough, we will explore the process of making a small change to the behaviour of Firefox. The change we will make will be done directly in the Firefox source code (note: this change can also be done as an extension, which we will do in another walkthrough). In so doing, we'll learn how to go from an idea for a top-level UI feature change, to searching and studying the code, to making and testing this change.  


The goal of this exercise is to give you confidence in order to try similar things on your own, expose you to some helpful techniques, and to highlight the importance of using existing code in open source and Mozilla.
The goal of this exercise is to give you confidence in order to try similar things on your own, expose you to some helpful techniques, and to highlight the importance of using existing code in open source and Mozilla.  


'''NOTE:''' All sample code listed in this walkthrough was taken from [http://hg.mozilla.org/mozilla-central/file/f4800de50e03 mozilla-central revision f4800de50e03]. Newer versions of these files may have changed.
=== Getting the Source ===
 
All sample code listed in this walkthrough was taken from [http://hg.mozilla.org/mozilla-central/file/f4800de50e03 mozilla-central revision f4800de50e03]. Later changes to Firefox have changed these files. So, to follow along on your computer, download the correct revision of the source:
# hg clone http://hg.mozilla.org/mozilla-central/
# hg update f4800de50e03
#* (If you have trouble building, as per {{bug|478871}}, try 4aed53dcf692 instead)
 
<br>


==The 'What': change the way new tabs get created in Firefox==  
==The 'What': change the way new tabs get created in Firefox==  
2

edits

Navigation menu