Changing toolbarbutton type causes item to be repositioned, when preceded by an item of higher ordinal

NEW
Unassigned

Status

()

Core
XUL
7 years ago
7 years ago

People

(Reporter: Matthew Turnbull [Bluefang], Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20101007 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20101007 Firefox/4.0b8pre

I discovered this while working on my Status-4-Evar extension.

I was moving the statusbar element to the right end of the toolbar by setting its ordinal very high.

Users were reporting that when the AdBlock Plus toolbarbutton was on the addon-bar, it would keep moving over to the right with the statusbar. However, just opening the customization dialog would move it back to the proper location.

I discovered that ABP was programmaticly toggling the toolbarbutton's type between "menu" and "menu-button"

I've reduced this down to a fairly minimal testcase extension

Reproducible: Always

Steps to Reproduce:
1. Install Ordinal Bug extension
2. If the "Ordinal Bug" toolbar is not visible, make it visible
3. Click on the green button on the left
Actual Results:  
The green button becomes a "menu-button" and move to the right side of the toolbar

Expected Results:  
The green button should become a "menu-button" and not move
(Reporter)

Comment 1

7 years ago
Created attachment 481910 [details]
Ordinal Bug extension

Updated

7 years ago
Component: Toolbars → XUL
Product: Firefox → Core
QA Contact: toolbars → xptoolkit.widgets

Comment 2

7 years ago
I suspect because of this issue, in the add-on/status bar I can no longer position a button to the right of any icons added by extensions/add-ons.

Updated

7 years ago
OS: Linux → All

Comment 3

7 years ago
Changed to "All" OS's as I am on Win7 64-bit. If this is incorrect, please feel free to change it to whatever is appropriate.

I am leery of changing to "NEW" without others further confirmation of this issue.
Ray, you're in the wrong bug.

Comment 5

7 years ago
Sorry. Should I undo my gaff?
It's fine, I reproduced the bug on Windows with the test extension.
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 7

7 years ago
(In reply to comment #6)
> It's fine, I reproduced the bug on Windows with the test extension.

Dao,

Thanks.

Is a separate bug needed for, in the Addon Bar, not being able to position/place a button to the right of extension icons?
(Reporter)

Comment 8

7 years ago
That's the point of Bug 632022

Comment 9

7 years ago
(In reply to comment #8)
> That's the point of Bug 632022

I see. Thanks.
You need to log in before you can comment on or make changes to this bug.