Closed Bug 600565 Opened 14 years ago Closed 9 years ago

AddonManager is not working on first startup after install/update of extension

Categories

(Firefox :: Extension Compatibility, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: volodymyr.mykhailyk, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
Build Identifier: Mozilla/5.0 (Windows NT 6.0; rv:2.0b6) Gecko/20100101 Firefox/4.0b6

Extension Using new FF4 AddonManager module on startup to retrive current version and check if install/update was performed. 

On first startup after install/update (FF requested restart) AddonManager is accessible (object and funciton can be dumped to log) but not returning extension by id and all installed extension at all (callback funciton never called).

After next restart of FF - everything is working correcting. 

Note: this problem is not reproducible when extension installed via link in profile. Can be reproduced using drag&drop of xpi file to the FF window. 

Didn't tested installation/update from url.

Reproducible: Always

Steps to Reproduce:
1. Create simple extension that importing AddonManager module (resource://gre/modules/AddonManager.jsm) and dump all installed extensions to the log or using alerts. 
2. Pack xpi file
3. Install it by dragging into FF4 window
4. Restart FF as requested

Actual Results:  
After restart extension is not dumping list of installed addons

Expected Results:  
After restart extension can retrive information about itself and other addons.

Such behaviour breaks install/update logic (creating preferences, modifying state, etc).
Volodymyr, can you still reproduce this?
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.