Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add the "types" parameter to the .registerProvider() call.

Firefox 6 requires this; we keep our XUL overlay and don't pass most of the optional parameters, to maintain compatibility with 4 and 5.

Fixes #1357
  • Loading branch information...
commit b2de62d01442bcbbf3f61c32372eb4fb33ef3ff2 1 parent b676a11
arantius authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  modules/addons4.js
3  modules/addons4.js
@@ -247,7 +247,8 @@ function GM_addonsStartup(aParams) {
247 247
   _addonsStartupHasRun = true;
248 248
 
249 249
   Services.obs.addObserver(WindowObserver, 'chrome-document-global-created', false);
250  
-  AddonManagerPrivate.registerProvider(AddonProvider);
  250
+  AddonManagerPrivate.registerProvider(AddonProvider,
  251
+      [{'id': 'user-script'}]);
251 252
   WindowObserver.addToAddonsManagers();
252 253
 }
253 254
 

0 notes on commit b2de62d

Please sign in to comment.
Something went wrong with that request. Please try again.