Closed Bug 251100 Opened 20 years ago Closed 19 years ago

"Move" commands in EM context menu do nothing

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: robert.strong.bugs)

References

Details

Attachments

(2 files, 3 obsolete files)

1. Open Extension Manager with two extensions.
2. Right-click an extension.
3. Try "Move to top", "Move down", or "Move up" on either extension.

Result: Nothing happens.
WFM

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040825
Firefox/0.9.1+
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
I can reproduce on Linux.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040824 

I have "Focus follows mouse pointer" set.  If I move off the Extensions window,
then back, these menu items don't work.
On linux, using "Select windows when the mouse moves over them" (Gnome pref)

Open extensions window
mouse out of window
mouse back in
right click on an extension
select "move up" or "move down"
nothing happens.

Also, if you right click on a different extension than what's selected, the
menuitems aren't updated to reflect that.  i.e. select the first extension,
right click on the second, "move up" is still greyed out.  But that's probably a
separate bug.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Hmm, I wonder if there are platform differences due to Linux opening context
menus onmousedown.
A variation of this bug still exists in the 20041106 Firefox build.

I have a load of extensions.  Move one up the list from near the bottom, and
then go back down, select another extension and try to move it.  No go,  Closing
and restarting enables you to do it, though.
From Context menu: Can move extension to top,  can't move extension down, 
moving up is effective about 50% until it doesn't work at all and have to bring
up extensions (start over).    Of course the main purpose is to alphabetize the
placement of extensions and even if it were working properly from the context
menu it would still be very tedious.   Extensions can't be moved with arrow keys
alone and don't know if it is supposed to or not -- I thought that I had done it
that way before 1.0 but not sure. 
I think this will be fixed (or at least different) with Ben's EM changes.  He's
getting rid of the composite datasource.
Depends on: eminstall
(In reply to comment #6)
Since I can use "Sort Extensions" by Robert William Vesterman, I have the
alphabetized list I wanted, and since sorting doesn't occur until I ask for it,
I still have the ability to see the recent additions and check them out before
realphabetizing the extensions list --
https://addons.update.mozilla.org/extensions/moreinfo.php?application=firefox&version=1.0&os=Windows&id=460
 
This should supposedly be fixed by Bug 291572.

-> Adding 291572 to dependency tree.
Depends on: 291572
I also see this. I can always move to top but sometimes not up or down. The
harddisk says "prr" but the extension does not move.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050429
Firefox/1.0+
Attached patch patch (obsolete) — Splinter Review
Extensions and themes are in the same RDF container so it isn't sufficient to
just move up/down by one in the container since it may just be moving an
extension before/after a theme which will not change the order in the EM. This
patch adds moveToIndexOf for use by both moveUp and moveDown and removes the
methods that are no longer needed. If desired, moveTop could also use
moveToIndexOf which would simplify nsIExtensionManager.idl even further.
Assignee: bugs → moz_bugzilla
Status: REOPENED → ASSIGNED
Attachment #182886 - Flags: review?(benjamin)
Attached patch patch (obsolete) — Splinter Review
I prefer this patch with the removal of moveTop from the idl (e.g. less code)
but if that isn't acceptable perhaps the previous patch is.
Attachment #182890 - Flags: review?(benjamin)
Attachment #182886 - Flags: review?(benjamin)
Flags: blocking-aviary1.1?
Attachment #182890 - Attachment is obsolete: true
Attachment #182890 - Flags: review?(benjamin)
Attached patch cleaner patch (obsolete) — Splinter Review
Sorry about canceling the reviews... I found some more remnants from the past
to clean up. It was calling getIDFromResourceURI and then later with that same
value calling getResourceForID which returns the original value.
Attachment #182886 - Attachment is obsolete: true
Attachment #182913 - Flags: review?(benjamin)
Comment on attachment 182913 [details] [diff] [review]
cleaner patch

Please remember to rev the IID of interfaces you change. r=me with
nsIExtensionManager revved.
Attachment #182913 - Flags: review?(benjamin)
Attachment #182913 - Flags: review+
Attachment #182913 - Flags: approval-aviary1.1a1?
Thanks for the review - I'll update the patch after bug 293461 is checked in or
they can both go in at the same time if it gets an a+ in time since they both
need to rev the same IID
Attached patch patchSplinter Review
Benjamin - I noticed performance during the renumberring is terrible when there
are lots of extensions - I tested with 30+. This patch batches the remove and
insert to lessen the performance impact.
Attachment #182913 - Attachment is obsolete: true
Attachment #183367 - Flags: review?(benjamin)
Attachment #182913 - Flags: approval-aviary1.1a1?
Attachment #183367 - Flags: review?(benjamin)
Attachment #183367 - Flags: review+
Attachment #183367 - Flags: approval-aviary1.1a1?
The only change between this and the last patch is this one has the new IID
that was checked in with the patch from bug 293461 so it can be rev'd
Comment on attachment 183367 [details] [diff] [review]
patch

a=asa
Attachment #183367 - Flags: approval-aviary1.1a1? → approval-aviary1.1a1+
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050513
Firefox/1.0+ ID:2005051315

WFM after this patch landed
Fix checked in - thanks bz - resolved->fixed
Status: ASSIGNED → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
Flags: blocking-aviary1.1?
Shouldn't there be a minus (-) flag on the blocker nomination? 

I know there are people counting which were blockers, fixed blockers, etc. and
this messes up the counts.

Thanks.
(In reply to comment #21)
> Shouldn't there be a minus (-) flag on the blocker nomination? 
> 
> I know there are people counting which were blockers, fixed blockers, etc. and
> this messes up the counts.
No... that isn't the purpose for the flags. Also, minusing would mess up the
counts just as much as removing the request since the request wasn't denied.
https://bugzilla.mozilla.org/flag-help.html
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: