Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for getting global context in recent Firefox and Thunderbird #664

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jikamens
Copy link
Contributor

If we can't get the global contest from either global or window
and Cu.getGlobalForObject exists, then use that.

See https://developer.mozilla.org/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.getGlobalForObject.

Fixes #627.

If we can't get the global contest from either `global` or `window`
and `Cu.getGlobalForObject` exists, then use that.

See https://developer.mozilla.org/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.getGlobalForObject.

Fixes andrewplummer#627.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 96.541% when pulling 1a9f4ba on jikamens:Sugar627 into 4adba2e on andrewplummer:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current SugarJS incompatible with current Thunderbird (probably also Firefox?) trunk
2 participants