Closed Bug 128629 Opened 23 years ago Closed 22 years ago

slight personal toolbar perf gain

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
Windows 98
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.1alpha

People

(Reporter: neil, Assigned: bugs)

Details

(Keywords: polish)

Attachments

(1 file, 3 obsolete files)

1. remove document.getElementById from call to OpenBookmarkURL, use this instead 2. rename innermostBox to NC:PersonalToolbarFolder avoiding NODE_ID function 3. also fixes open in new window for the personal toolbar
Attached patch Proposed Patch (obsolete) (deleted) — Splinter Review
Keywords: patch, polish, review
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1
Attached patch updated for bitrot (obsolete) (deleted) — Splinter Review
Attachment #72244 - Attachment is obsolete: true
I am all for this very neat patch! Few nits: openFolder: function (aSelectedItem) { var mbo = aSelectedItem.boxObject.QueryInterface(Components.interfaces.nsIMenuBoxObject); - mbo.openMenu(true); + setTimeout(mbo.openMenu, 0, true); }, I would simply prefer: openFolder: function (aSelectedItem) { aSelectedItem.firstChild.showPopup(); } openMenu is not used except in popup.xml and is a low level method. The use of the timer should be set in the showPopup method in popup.xml. in navigatorDD.js, personalToolbarDNDObserver.onDrop if (aEvent.target.id == "bookmarks-button") // dropPosition is always DROP_ON parentContainer = RDFUtils.getResource("NC:BookmarksRoot"); else if (aEvent.target.id == "NC:PersonalToolbarFolder") parentContainer = RDFUtils.getResource("NC:PersonalToolbarFolder"); else if (dropPosition == this.DROP_ON) parentContainer = RDFUtils.getResource(aEvent.target.id); else { You can remove the case for NC:PersonalToolbarFolder, since we will have dropPosition == this.DROP_ON and it will be handled by the next case. With that, r=pierrechanial@netscape.net go go go!!!
fyi, bookmarksTree.js (bug 142236) and bookmarksDD.js (bug 140414) are obsolete and should be removed from the CVS repository.
Attached patch Updated as per pch's comments (obsolete) (deleted) — Splinter Review
This doesn't include the setTimeout hack, I'll address that in another bug.
Attachment #89420 - Attachment is obsolete: true
CCing pierrechanial@netscape.net for review.
Attached patch Diffed properly this time... (deleted) — Splinter Review
Attachment #90296 - Attachment is obsolete: true
Attachment #90306 - Flags: review+
Comment on attachment 90306 [details] [diff] [review] Diffed properly this time... sr=ben@netscape.com
Attachment #90306 - Flags: superreview+
Fix was checked in by bzbarsky@mit.edu
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: