Closed
Bug 562951
Opened 15 years ago
Closed 15 years ago
Unable to install Greasemonkey userscripts - Components.classes['@mozilla.org/extensions/manager;1'] is undefined
Categories
(Firefox :: Extension Compatibility, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 566072
People
(Reporter: geeknik, Unassigned)
Details
(Whiteboard: [AddonsRewriteTestday])
The latest nightly build of Minefield shows that Greasemonkey is installed and active, Greasemonkey shows it's icon in the status bar and looks active, however, none of my userscripts are installed and when I try to install a new userscript, I get this error:
Script could not be installed TypeError: Components.classes['@mozilla.org/extensions/manager;1'] is undefined
Reporter | ||
Comment 1•15 years ago
|
||
Workaround posted on http://forums.mozillazine.org/viewtopic.php?f=23&t=1875945:
In file extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}/content/config.js, around line 410 (search for "@mozilla.org/extensions/manager"), and replace the 4 lines (should be the same as the first 4 lines here only it's been commented) with the stuff below:
Code: Select all
/*var extMan = Components.classes["@mozilla.org/extensions/manager;1"]
.getService(Components.interfaces.nsIExtensionManager);
var item = extMan.getItemForID(GM_GUID);
GM_prefRoot.setValue("version", item.version);*/
Components.utils.import("resource://gre/modules/AddonManager.jsm");
AddonManager.getAddonByID("{e4a8a97b-f2ed-450b-b12d-ee082ba24781}", function(addon) {
GM_prefRoot.setValue("version", addon.version)
});
Summary: Unabled to install Greasemonkey userscripts - Components.classes['@mozilla.org/extensions/manager;1'] is undefined → Unable to install Greasemonkey userscripts - Components.classes['@mozilla.org/extensions/manager;1'] is undefined
Comment 2•15 years ago
|
||
Seeing it also on Vista, and it has broken Jetpack in addition to Greasemonkey.
OS: Windows 7 → Windows Vista
Whiteboard: [AddonsRewriteTestday]
Comment 3•15 years ago
|
||
This would be fixed by Bug 563412.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•