Bug 520294: Search Disabled State is Persistent even after Uninstallation [r=gavin.sharp]
authorVivien Nicolas <21@vingtetun.org>
Wed, 21 Oct 2009 01:15:56 -0400
changeset 1002 33119772b8728597a3cad5317f75f0bacff74c6c
parent 1001 446d640a996d2924911413564860c642709c2bca
child 1003 d7623fd1ad70637c291a6f0e6ee289c07d2afcc5
push id872
push usermfinkle@mozilla.com
push dateWed, 21 Oct 2009 05:16:16 +0000
reviewersgavin.sharp
bugs520294
Bug 520294: Search Disabled State is Persistent even after Uninstallation [r=gavin.sharp]
chrome/content/extensions.js
--- a/chrome/content/extensions.js
+++ b/chrome/content/extensions.js
@@ -388,16 +388,19 @@ var ExtensionsView = {
     }
     
     aItem.setAttribute("opType", opType);
   },
 
   uninstall: function ev_uninstall(aItem) {
     let opType;
     if (aItem.getAttribute("type") == "1024") {
+      // Make sure the engine isn't hidden before removing it, to make sure it's
+      // visible if the user later re-adds it (works around bug 341833)
+      aItem._engine.hidden = false;
       this._search.removeEngine(aItem._engine);
       // the search-engine-modified observer in browser.js will take care of
       // updating the list
     } else {
       let id = this._getIDFromURI(aItem.id);
       this._extmgr.uninstallItem(id);
       opType = this._getRDFProperty(id, "opType");