Skip to content

Commit

Permalink
Add the "types" parameter to the .registerProvider() call.
Browse files Browse the repository at this point in the history
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
arantius committed Jul 8, 2011
1 parent b676a11 commit b2de62d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/addons4.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ function GM_addonsStartup(aParams) {
_addonsStartupHasRun = true;

Services.obs.addObserver(WindowObserver, 'chrome-document-global-created', false);
AddonManagerPrivate.registerProvider(AddonProvider);
AddonManagerPrivate.registerProvider(AddonProvider,
[{'id': 'user-script'}]);
WindowObserver.addToAddonsManagers();
}

Expand Down

0 comments on commit b2de62d

Please sign in to comment.