Closed
Bug 128629
Opened 23 years ago
Closed 22 years ago
slight personal toolbar perf gain
Categories
(SeaMonkey :: Bookmarks & History, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.1alpha
People
(Reporter: neil, Assigned: bugs)
Details
(Keywords: polish)
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
p_ch
:
review+
bugs
:
superreview+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Updated•23 years ago
|
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1
Reporter | ||
Comment 2•22 years ago
|
||
Attachment #72244 -
Attachment is obsolete: true
Comment 3•22 years ago
|
||
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!!!
Comment 4•22 years ago
|
||
fyi, bookmarksTree.js (bug 142236) and bookmarksDD.js (bug 140414) are obsolete
and should be removed from the CVS repository.
Reporter | ||
Comment 5•22 years ago
|
||
This doesn't include the setTimeout hack, I'll address that in another bug.
Attachment #89420 -
Attachment is obsolete: true
Reporter | ||
Comment 6•22 years ago
|
||
CCing pierrechanial@netscape.net for review.
Reporter | ||
Comment 7•22 years ago
|
||
Attachment #90296 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
Comment on attachment 90306 [details] [diff] [review]
Diffed properly this time...
r=pierrechanial@netscape.net
Attachment #90306 -
Flags: review+
Assignee | ||
Comment 9•22 years ago
|
||
Comment on attachment 90306 [details] [diff] [review]
Diffed properly this time...
sr=ben@netscape.com
Attachment #90306 -
Flags: superreview+
Reporter | ||
Comment 10•22 years ago
|
||
Fix was checked in by bzbarsky@mit.edu
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•