Closed Bug 1060747 Opened 10 years ago Closed 7 years ago

Add-on does not run after update the Add-on

Categories

(Toolkit :: Add-ons Manager, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: alice0775, Unassigned)

Details

Add-on does not run after update the Add-on and restart.
Remove the updated add-on > Restart > Re-install the updated add-on, then the add-on works again.

Steps To Reproduce:
1. Start Firefox with newly created profile
2. Install http://downloads.mozdev.org/userchromejs/userChromeJS-1.5.xpi and Restart
3. Exit Browser completely

4. Edit [the profile folder]\chrome\userChrome.js
   and add the following code and save it
//==============================================
 if (location.href == "chrome://browser/content/browser.xul") {
  var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
                          .getService(Components.interfaces.nsIPromptService);
  prompts.alert(null, "userChromeJS", "Hello!");
//==============================================
}
5. Delete startupCache folder

6. Start Firefox with the profile
  ---- an alert box(Hello!) should pop up as expected

7. Install new version of http://downloads.mozdev.org/userchromejs/userChromeJS-1.6.xpi and Restart
  ---- no alert box pops up --- this is BUG!

Actual Results:
Add-on does not run after update the Add-on.

Expected Results:
Add-on should work after update the Add-on.
Component: General → Add-ons Manager
Product: Core → Toolkit
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.