Skip to content

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

Open
jikamens wants to merge 1 commit intoandrewplummer:masterfrom
jikamens:Sugar627
Open

Fix for getting global context in recent Firefox and Thunderbird#664
jikamens wants to merge 1 commit intoandrewplummer:masterfrom
jikamens:Sugar627

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