GNOME Bugzilla – Bug 760225
Assume that API may return deferred object
Last modified: 2016-09-25 11:42:21 UTC
Currently "https://extensions.gnome.org/static/js/versions/common/common.js" script wraps return values for most of API's methods to deferred object with "_makePromise" method. In Google Chrome extensions there is no possibility to use synchronous calls to dbus and return something other than deferred/promise. To make things easier for developing Chrome extension please assume that API may return Deferred values. For example by checking returning value for "promise" property.
Could you provide a patch with the suggested change? Git repository is at https://git.gnome.org/browse/extensions-web/.
Created attachment 318380 [details] [review] Suggested patch Here is patch. Also available at github: https://github.com/nE0sIghT/extensions-web/commit/59970d0cb9d4fd474cad7a7bca30757271073360
Any feedback? It would be nice to drop this overrided code from chrome-gnome-shell: https://git.gnome.org/browse/chrome-gnome-shell/tree/extension/include/sweettooth-api.js#n157
As you seem to know what you're doing I've committed the fix.
Thanks! When this change will be deployed to extensions.gnome.org (do I need to ask infra team or this is some periodical action)?
That's been done now.