Closed Bug 260276 Opened 20 years ago Closed 18 years ago

Updating an extension sometimes leave a dead entry in the extension manager

Categories

(Toolkit :: Add-ons Manager, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 319022

People

(Reporter: bogofilter+mozilla, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10

Every once in a while when installing an extension, the entry that shows up
while it's downloading doesn't go away when done, leaving an entry like the
following in Extensions.rdf:

  <RDF:Seq RDF:about="urn:mozilla:extension:root">
    <RDF:li RDF:resource="file:///C:/tabextensions_en.xpi"/>
    ...
  </RDF:Seq>


Reproducible: Sometimes
Steps to Reproduce:
did you close the EM window while the extension was downloading?
can you still reproduce the problem?
No, I didn't close the EM window while they were installing.  I also haven't
found a way to cause it every time.

It seems that this is part of a larger problem with the EM.  For example, with
1.0 final, I dragged multiple xpi files from explorer to the EM window.  Once it
was finished installing, each one showed up twice, once for the "real" entry and
once for the "fake" entry consisting of just the extension's file name.  Each
one also showed up in the DM as a download in progress.  When I closed Fx, it
asked me to cancel all of the downloads (even though they were never downloaded,
and even though they were done installing).  In this case, when I restarted the
"fake" entries were gone from the EM.

Note that even though this last problem occurred when installing from the local
drive, my original problem occurred when installing from a web site.
Version: unspecified → 1.0 Branch
I see this bug too, for example with an update of flashgot to 0.5.9.98 the following was added/altered in extensions.rdf

<RDF:Description RDF:about="rdf:#$01fdo2"
  NS1:id="{a463f10c-3994-11da-9945-000d60ca027b}"
  NS1:minVersion="1.0+"
  NS1:maxVersion="1.0+" />
<RDF:Description RDF:about="file:///.../flashgot-0.5.9.98-fx+fl+mz+ns+tb.xpi"
  NS1:name="flashgot-0.5.9.98-fx+fl+mz+ns+tb.xpi"
  NS1:version=" "
  NS1:iconURL="chrome://mozapps/skin/xpinstall/xpinstallItemGeneric.png"
  NS1:downloadURL="file:///.../flashgot-0.5.9.98-fx+fl+mz+ns+tb.xpi">
 <NS1:type NC:parseType="Integer">2</NS1:type>
</RDF:Description>
<RDF:Description RDF:about="urn:mozilla:item:{3d7eb24f-2740-49df-8937-200b1cc08f8a}"
  NS1:installLocation="app-profile"
  NS1:version="1.3.2"
  NS1:name="Flashblock"
  NS1:description="Replaces Flash objects with a button you ...."
  NS1:creator="The Flashblock Team"
  NS1:homepageURL="http://flashblock.mozdev.org/"
NS1:updateURL="http://flashblock.mozdev.org/update.php?item_id=%ITEM_ID%&amp; 
item_version=%ITEM_VERSION%&amp;app_id=%APP_ID%&amp;app_version=%APP_VERSION%"
  NS1:optionsURL="chrome://flashblock/content/options.xul"
  NS1:iconURL="chrome://flashblock/content/flashblock.png">
 
etc

The lines:

<RDF:Description RDF:about="file:///.../flashgot-0.5.9.98-fx+fl+mz+ns+tb.xpi"
  NS1:name="flashgot-0.5.9.98-fx+fl+mz+ns+tb.xpi"
  NS1:version=" "
  NS1:iconURL="chrome://mozapps/skin/xpinstall/xpinstallItemGeneric.png"
  NS1:downloadURL="file:///.../flashgot-0.5.9.98-fx+fl+mz+ns+tb.xpi">
 <NS1:type NC:parseType="Integer">2</NS1:type>
</RDF:Description>

should not be there. And when deleted the dead entry disappears.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051112 Firefox/1.6a1 ID:2005111205
Same problem for me. Happens after upgrading from RC2 to 1.5 final. Removing extensions leaves dead entries behind. I've checked extensions.rdf and cannot confirm left-over entries. The extensions in question are not referenced in extensions.rdf.
Any news on this one? Still keep getting dead extensions when upgrading to later version.

Thanks,
Andi
Assignee: bugs → nobody
QA Contact: bugs → extension.manager
(In reply to comment #6)
> Any news on this one? Still keep getting dead extensions when upgrading to
> later version.
You should probably track one of the same bugs that were reported for Firefox 1.5 like bug 319022 or bug 318926 and not this one.

The cause of this occurring with 1.5 is known and the symptom can be fixed by deleting the extensions.rdf in the profile directory... it will be regenerated on restart which is new with Firefox 1.5.
The patch in bug 319022 resolves what I believe is the worst case of this occurrence though there is at least one other relating to closing the app and the cancel download prompt not removing the download item from the rdf and there is another bug for that specific issue.

*** This bug has been marked as a duplicate of 319022 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: