Tuesday, June 17, 2014

Greasemonkey 2.0 Release

The entire list of bugs handled in this release is also available via the 2.0 milestone
on GitHub. Note that as always it takes some time for Mozilla to
review the new version. If you're interested in staying on the bleeding
edge, try installing the development channel beta release. If you are using this version and notice problems, it's best to log an issue or let us know at greasemonkey-dev (and be clear that it's with this version).

Backwards incompatible changes:

For stability, reliability, and security the privileged sandbox has been updated to match the new changes to unsafeWindow for the Add-on SDK. In order to write values to unsafeWindow you will need to use the new methodscloneInto(), exportFunction(), and/or createObjectIn().

If your script already specifies @grant none, these changes will not affect you. If your script does not interact with unsafeWindow, these changes will not affect you.

Otherwise, these changes will break some scripts. These scripts will need to be updated to work correctly again. We don't take breaking changes lightly. It's been just under two years since version 1.0 when we last introduced major changes, and it these particular changes are both important and valuable in the long run.

Enhancements:

Greasemonkey will only use explicit @grant metadata, it will no longer sniff for implicitly used APIs. (This change takes effect at install time. Currently installed scripts will continue to function as normal until they are updated/edited/reinstalled.) (#1908)