rem: bookmarkCurTabItem.setAttribute("oncommand", "addBookmarkAs((getBrowser().mContextTab).linkedBrowser, false);"); 
add: bookmarkCurTabItem.setAttribute("oncommand", "BookmarkThisTab();"); 
context: function addBookmarkMenuitems(){  var tabbrowser = getBrowser();  var tabMenu = document.getAnonymousElementByAttribute(tabbrowser,"anonid","tabContextMenu");  var bookmarkAllTabsItem = document.createElement("menuitem");  bookmarkAllTabsItem.setAttribute("label", gNavigatorBundle.getString("bookmarkAllTabs_label"));  bookmarkAllTabsItem.setAttribute("accesskey", gNavigatorBundle.getString("bookmarkAllTabs_accesskey"));  bookmarkAllTabsItem.setAttribute("command", "Browser:BookmarkAllTabs");  var bookmarkCurTabItem = document.createElement("menuitem");  bookmarkCurTabItem.setAttribute("label", gNavigatorBundle.getString("bookmarkCurTab_label"));  bookmarkCurTabItem.setAttribute("accesskey", gNavigatorBundle.getString("bookmarkCurTab_accesskey"));  bookmarkCurTabItem.setAttribute("oncommand", "addBookmarkAs((getBrowser().mContextTab).linkedBrowser, false);");  var menuseparator = document.createElement("menuseparator");  var insertPos = tabMenu.lastChild.previousSibling;  tabMenu.insertBefore(bookmarkAllTabsItem, insertPos);  tabMenu.insertBefore(bookmarkCurTabItem, bookmarkAllTabsItem);  tabMenu.insertBefore(menuseparator, bookmarkCurTabItem);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ebdca321ca345e6700cfc0ebc84e761ffc1f4a07/browser.js/clean/browser/base/content/browser.js