Changes

Jump to: navigation, search

User:AaronMT

1,090 bytes added, 14:59, 23 September 2008
Real World Mozilla Source Code Reading Lab
});</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 ==
1
edit

Navigation menu