Closed Bug 590511 Opened 14 years ago Closed 14 years ago

Removing Jetpacks under the Recent Updates pane doesn't work

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla2.0b8
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: whimboo, Assigned: adw)

Details

Attachments

(1 file)

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b5pre) Gecko/20100825 Minefield/4.0b5pre

If you open the Recent Updates pane of the add-ons manager and click the x button to remove an installed Jetpack, it is marked as removed in that pane. But when you select the extension pane, the Jetpack is back. Looks like we do not write the correct values into the database? It works fine for old style extensions.

Steps:
1. Install a Jetpack like: https://secure.toolness.com/xpi/facebook-acquaintances.xpi
2. Select "View Recent Updates"
3. Remove the Facebook Jetpack
4. Open the Extension pane

After step 4 the Facebook Jetpack is back while it should be marked as removed.
blocking2.0: --- → ?
blocking2.0: ? → betaN+
Assignee: nobody → adw
Whiteboard: [needs update]
Huh, I wonder if this is relevant:

  1369  // This won't update any other add-on manager views (bug 582002)
  1370  this.setAttribute("pending", "uninstall");

http://hg.mozilla.org/mozilla-central/file/78df45be19d1/toolkit/mozapps/extensions/content/extensions.xml#l1369
Status: NEW → ASSIGNED
Dave, is bug 582002 related to this?
(In reply to comment #2)
> Dave, is bug 582002 related to this?

No, I suspect all you need to do is copy from the code here to the hide method on gUpdatesView.

http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/content/extensions.js#1675
Attached patch patchSplinter Review
Oh great, thanks Dave.  It does seem to work.
Attachment #494143 - Flags: review?(dtownsend)
Whiteboard: [needs update]
Attachment #494143 - Flags: review?(dtownsend) → review+
http://hg.mozilla.org/mozilla-central/rev/1bad85a23cc5
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Verified fixed with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101212 Firefox/4.0b8pre

Can we get an automated test for it?
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: