Comment 38 for bug 1850651

Pushed by <email address hidden>:
https://hg.mozilla.org/comm-central/rev/57532519642e
Port OAuth2 decoding fix from gData add-on. r=mkmelin DONTBUILD