Changes

Jump to: navigation, search

Localized Search in Firefox Search Box: Release v.01

2,864 bytes added, 22:41, 14 February 2008
no edit summary
= '''Main Project Page''' =
=== [http://zenit.senecac.on.ca/wiki/index.php/Localized_Search_in_Firefox_Search_Box Localized Search in Firefox Search Box]===
= '''Patch File: localsearchpatch_v01.txt''' = 
<pre>
<!-- Rebuilds the list of visible search engines in the menu. Does not remove
or update any dynamic entries (i.e., "Add this engine" items) nor the
</pre>
 
 
= '''Applying the patch''' =
 
1. Copy and paste the text from the patch file into a text file and save it in the root mozilla directory of your source tree. I suggest naming the file localsearchpatch_v01.txt.
 
* '''NOTE:''' This patch requires that you use a DEBUG build of firefox. To see the output messages from the dump() statements in the patch, you have to enable it by setting the preference '''browser.dom.window.dump.enabled''' to '''true'''. You can set this preference in [http://kb.mozillazine.org/About:config about:config] or in a [http://kb.mozillazine.org/User.js_file user.js file]. This preference is not listed in about:config by default, so you may need to create it. Enter <code>about:config</code> in the browser's address bar -> right-click the empty content area -> New -> Boolean.
* You can preview the patch here: [[Localized Search in Firefox Search Box: Release v.01]]
 
2. Apply the patch.
<pre>
$ cd mozilla
$ patch -p0 < localsearchpatch_v01.txt
</pre>
* '''NOTE:''' Use the -p0 option to strip 0 leading directories from each filename in the patch because it is being applied in the same directory where the patch was created.
 
 
3. Build your source tree.
<pre>
$ cd mozilla
$ make -f client.mk build
</pre>
 
 
4. Run the browser to test the patch.
<pre>
$ cd objdir/dist/bin
$ ./firefox --ProfileManager --no-remote
</pre>
 
 
= '''How to Use the Patch''' =
 
1. Navigate to a [http://zenit.senecac.on.ca/wiki/index.php/Localized_Search_in_Firefox_Search_Box#Web_Site_List web site] that offers a search engine plugin.
 
'''Note''' the DIAGNOSTIC MESSAGE in the terminal window.
 
 
2. Click the searchbar's dropdown menu button.
 
* '''Note''' the DIAGNOSTIC MESSAGE in the terminal window and the "Add this engine" option on the searchbar menu.
 
 
3. Click the "Add this engine" option on the searchbar menu.
 
* '''Note''' the DIAGNOSTIC MESSAGE in the terminal window and the position of the newly added search engine on the searchbar menu.
 
 
4. Select "Manage Search Engines..." from the searchbar menu and select the newly installed engine from the list. Click the "Remove" button and then click "OK".
 
* '''Note''' the DIAGNOSTIC MESSAGES in the terminal window.
 
 
5. Select "Manage Search Engines..." from the searchbar menu and select one of the installed engines on the list. Next, click the "Move Up" and "Move Down" buttons and then click "OK".
 
* '''Note''' the DIAGNOSTIC MESSAGES in the terminal window.
 
 
6. Click the searchbar's dropdown menu button and select a different search engine as the current engine.
 
* '''Note''' the DIAGNOSTIC MESSAGES in the terminal window.
 
 
= '''How to Remove the Patch''' =
 
* You can back-out a patch by using the patch command with the -R or --reverse option. This swaps the new file with the old one to reverse the patch.
 
<pre>
$ cd mozilla
$ patch -R -p0 < localsearchpatch_v01.txt
</pre>
1
edit

Navigation menu