Closed Bug 598934 Opened 14 years ago Closed 14 years ago

Addon Bar should be bottom of Toolbar contextual menu, currently it's top

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 4.0b7
Tracking Status
blocking2.0 --- -

People

(Reporter: tech4pwd, Assigned: dietrich)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100923 Firefox/4.0b7pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100923 Firefox/4.0b7pre

Currently should you right click on the Navigation bar, you'll see "Addon Bar" at the top. Above Menu Bar, Navigation Bar and Bookmarks Toolbar. It should be at the bottom of that list.

Reproducible: Always
Blocks: 574688
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → dietrich
Attached patch v1 (obsolete) — Splinter Review
Attachment #479774 - Flags: review?
Attachment #479774 - Flags: review? → review?(dao)
Comment on attachment 479774 [details] [diff] [review]
v1

>+  let addonBar = null;
>   let toolbarNodes = [document.getElementById("addon-bar")];
>   for (i = 0; i < gNavToolbox.childNodes.length; ++i)
>     toolbarNodes.push(gNavToolbox.childNodes[i]);
>   toolbarNodes.forEach(function(toolbar) {

Seems like this should just be something like this:

let toolbarNodes = Array.slice(gNavToolbox.childNodes);
toolbarNodes.push(document.getElementById("addon-bar"));
Attachment #479774 - Flags: review?(dao) → review-
not sure if slice() will work there because childNodes is a nodelist not a regular js array. but i'll give it a try!
Attached patch v1.1 (obsolete) — Splinter Review
works!
Attachment #479774 - Attachment is obsolete: true
Attachment #480071 - Flags: review?(dao)
Comment on attachment 480071 [details] [diff] [review]
v1.1

With the slice/push change, why is the rest of this patch needed? r- because this doesn't seem to make sense, please re-request if I'm missing something.
Attachment #480071 - Flags: review?(dao) → review-
Attached patch v1.2Splinter Review
right, not needed
Attachment #480071 - Attachment is obsolete: true
Attachment #480117 - Flags: review?(dao)
Comment on attachment 480117 [details] [diff] [review]
v1.2

>-  var i;
>-
>   // Empty the menu
>-  for (i = popup.childNodes.length-1; i >= 0; --i) {
>+  for (var i = popup.childNodes.length-1; i >= 0; --i) {

You could replace var with let while you're at it.
Attachment #480117 - Flags: review?(dao) → review+
blocking2.0: --- → ?
Attachment #480117 - Flags: approval2.0?
blocking2.0: ? → -
Attachment #480117 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/286e78ac1ba1
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b8
Target Milestone: Firefox 4.0b8 → Firefox 4.0b7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: