Closed Bug 433317 Opened 16 years ago Closed 16 years ago

Renamed title of saved search folder isn't updated outside the Library until Firefox is restarted

Categories

(Firefox :: Bookmarks & History, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 3.5

People

(Reporter: whimboo, Assigned: dietrich)

References

Details

Attachments

(1 file, 3 obsolete files)

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9pre) Gecko/2008051204 Minefield/3.0pre and on Windows XP.

If you rename a saved search folder e.g. "Most Visited" its title is not updated until you restart the browser.

Steps:
1. Create a fresh profile
2. Open context menu of "Bookmarks Toolbar" and choose properties for "Most Visited"
3. Rename it to "Most" and click ok

The title doesn't change on the "Bookmarks Toolbar" until you restart the browser. Inside the Library the folder shows its new name. Same happens for search folders under the "Bookmarks Menu".
In the library, the change only shows if you refresh the view (by viewing another folder, etc, and coming back).
Assignee: nobody → dietrich
Attached patch fix v1 (obsolete) — Splinter Review
this fixes the treeview. haven't tested the menu on windows yet.
Attached patch with test (obsolete) — Splinter Review
but doesn't fix toolbar or menu, so not yet complete
Attachment #320550 - Attachment is obsolete: true
Attached patch fix v2 (obsolete) — Splinter Review
refresh contents and update node (causing views to be notified). building windows now to test menu updates there.
Attachment #320840 - Attachment is obsolete: true
Attachment #320851 - Flags: review?(mak77)
Priority: -- → P3
Target Milestone: --- → Firefox 3.1
Comment on attachment 320851 [details] [diff] [review]
fix v2

+  var histsvc = Cc["@mozilla.org/browser/nav-history-service;1"].getService(Ci.nsINavHistoryService);
+  var bmsvc = Cc["@mozilla.org/browser/nav-bookmarks-service;1"].getService(Ci.nsINavBookmarksService);
+
+  // create a query bookmark
+  var queryId = bmsvc.insertBookmark(bmsvc.toolbarFolder, uri("place:"), 0 /* first item */, "test query");

try catch for services and crop at 80
Attachment #320851 - Flags: review?(mak77) → review+
Attached patch nit fixedSplinter Review
Attachment #320851 - Attachment is obsolete: true
Attachment #320914 - Flags: review?(mano)
can Bug 433272 be considerated as a dupe of this concerning updating of *all* "special" items?
Comment on attachment 320914 [details] [diff] [review]
nit fixed

r=mano
Attachment #320914 - Flags: review?(mano) → review+
changeset:   15658:1d16c9f72c8d
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Verified with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1a1pre) Gecko/2008070402 Minefield/3.1a1pre ID:2008070402

The patch contains an unit test. I hope it's ok to set in-testsuite+.
Status: RESOLVED → VERIFIED
Flags: in-testsuite+
Hey Dietrich, the test did not got checked-in? i can't find it and the changeset log does not include it

http://hg.mozilla.org/mozilla-central/rev/1d16c9f72c8d
Reverting in-testsuite+ flag until its clear what happened with the check-in.
Flags: in-testsuite+ → in-testsuite?
pushed the test: http://hg.mozilla.org/mozilla-central/rev/c57ea0aac0d0
Flags: in-testsuite? → in-testsuite+
Target Milestone: Firefox 3.1 → Firefox 3.5
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: