diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 12f68d53db77..552c622ebe5e 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -266,13 +266,8 @@ function SetClickAndHoldHandlers() } #endif -function BookmarkThisTab() -{ - var tab = gBrowser.mContextTab; - if (tab.localName != "tab") - tab = gBrowser.mCurrentTab; - - PlacesCommandHook.bookmarkPage(tab.linkedBrowser, +function BookmarkThisTab() { + PlacesCommandHook.bookmarkPage(gBrowser.mContextTab.linkedBrowser, PlacesUtils.bookmarksMenuFolderId, true); }