Sugar
Sugar copied to clipboard
Fix for getting global context in recent Firefox and Thunderbird
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/Sugar#627.