Closed Bug 337868 Opened 18 years ago Closed 17 years ago

Implement result view for toolbar for dynamic updating

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: brettw, Assigned: enndeakin)

References

Details

Attachments

(1 file, 1 obsolete file)

The new HistoryResultView API allows the toolbar to be dynamically changed. Currently, the entire toolbar is rebuilt when anything on the toolbar changes, which can be really slow.

Bug 337855 is doing the same thing for the bookmarks menu.
Blocks: 331297
Blocks: 370099
Attached patch wip-patch (obsolete) — Splinter Review
This is a work in progress patch for incrementally updating the toolbar.  I'd like to get some feedback on whether I'm on the right track before digging in to fix the trickier bits.

Note: currently onstartupdatebatch/onendupdatebatch is still getting called way too often, meaning that the changes here won't yet make much difference, but commenting out those functions will get you basic incremental updating.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
jminta, is this patch still being worked on? What still needs to be fixed?

Neil,
    The patch doesn't actually implement the result-view interface.  Some of the changes to the internal function would probably be useful in doing that though.  At this point my schedule looks pretty crappy for the next month, so I don't see getting to this in the near future.  Anyone should feel free to jump in here.
Assignee: jminta → enndeakin
Attachment #258165 - Attachment is obsolete: true
(In reply to comment #4)
> Created an attachment (id=262682) [details]
> implement toolbar updating
> 

hi neil, is this a wip patch, or ready for review?
It can be reviewed, but I based it on your menu updating patch in bug 337855 which you asked mano about confirming the approach, so I had planned on waiting until then.
 
(In reply to comment #6)
> It can be reviewed, but I based it on your menu updating patch in bug 337855
> which you asked mano about confirming the approach, so I had planned on waiting
> until then.
> 
> 

ok, thanks neil. mano said this approach is fine. can you ask him to review this, as he's spent much time in this code.
Attachment #262682 - Flags: review?(mano)
Comment on attachment 262682 [details] [diff] [review]
implement toolbar updating

Nice, r=mano. Please file a bug on optimizing itemChanged though, it shouldn't need to re-create the DOM node.
Attachment #262682 - Flags: review?(mano) → review+
Blocks: 379591
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Warning: reference to undefined property this._anno
Source file: chrome://browser/content/places/toolbar.xml
Line: 222

-  this._anno.getAnnotationString(containerURI, "livemark/siteURI");
+  PlacesUtils._annotations.getAnnotationString(containerURI, "livemark/siteURI");
after this bug landed _viewer.itemChanged only called after the tool bar button clicked (i.e. the container opened) once

to test this try to change the title before you click the bookmark button on the toolbar > the title on the toolbar don't changed.
now click on the bookmark button once and try again to change the title.
> to test this try to change the title before you click the bookmark button on
> the toolbar the title on the toolbar don't changed.

onemen.one, can you clarify the steps to reproduce this problem?  i'm having problems reproducing what you are describing.
> Please file a bug on optimizing itemChanged though, it shouldn't
> need to re-create the DOM node.

neil logged bug #379591
(In reply to comment #11)
> > to test this try to change the title before you click the bookmark button on
> > the toolbar the title on the toolbar don't changed.
> 
> onemen.one, can you clarify the steps to reproduce this problem?  i'm having
> problems reproducing what you are describing.
> 

1. open Firefox.
2. make sure your Bookmarks Toolbar is visible.
3. open Bookmarks Manager.
4. in Bookmarks Manager change the title for folder or livemark item.

result:
the item title changed in the Bookmarks Manager but didn't changed in the Bookmarks Toolbar.

if you do step 4 after you'v open the folder from Bookmarks Toolbar its work well.
onemen.one, thanks for the steps.

i was trying this with bookmark items, and not folders or livemarks.  now I understand and I am able to reproduce this issue.

I've spun this issue off to bug #380205.
Blocks: 380205
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

Creator:
Created:
Updated:
Size: