From 7f61c78f8431579d537ee1099a2baa3fe7b4a48b Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Tue, 3 Mar 2009 09:31:51 -0500 Subject: [PATCH] Bug 481121: Misc minor bookmark bugs, r=gavin --- mobile/chrome/content/bindings.xml | 7 ++++++- mobile/chrome/content/browser-ui.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mobile/chrome/content/bindings.xml b/mobile/chrome/content/bindings.xml index 74d472cd4c2..7e1f68b533b 100644 --- a/mobile/chrome/content/bindings.xml +++ b/mobile/chrome/content/bindings.xml @@ -325,6 +325,7 @@ + @@ -690,6 +693,8 @@ while (children.firstChild) children.removeChild(children.firstChild); + children.scrollBoxObject.scrollTo(0, 0); + let childItems = this._getChildren(aRootFolder); for (let i=0; i diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index 7bc4520d8c8..3d8d923b4bd 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -562,7 +562,7 @@ var BrowserUI = { case "cmd_star": { var bookmarkURI = browser.currentURI; - var bookmarkTitle = browser.contentDocument.title; + var bookmarkTitle = browser.contentDocument.title || bookmarkURI.spec; if (PlacesUtils.getMostRecentBookmarkForURI(bookmarkURI) == -1) { var bookmarkId = PlacesUtils.bookmarks.insertBookmark(PlacesUtils.bookmarks.bookmarksMenuFolder, bookmarkURI, PlacesUtils.bookmarks.DEFAULT_INDEX, bookmarkTitle);