Bug 1909789 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Google is, so I'm told, going to enable [OAuth2 granular permissions](https://developers.google.com/identity/protocols/oauth2/resources/granular-permissions) for Thunderbird. Our code can sort-of handle these, but we record the scopes we requested, not the ones we got. This shouldn't happen. If we save an access token and claim it has (e.g.) the CardDAV permission, but it doesn't, the CardDAV code gets confused and is unable to find any address books.

I've written a patch to fix this. To be thorough, here's what we need to test:

- When setting up a mail account, and
  - granting all permissions,
    - does the mail account work?
    - can address books and calendars be set up in the mail setup wizard?
    - can address books and calendars be set up separately *after* the mail setup wizard?
  - granting only the mail permission,
    - does the mail account work?
    - can address books and calendars be set up in the mail setup wizard?
    - can address books and calendars be set up separately *after* the mail setup wizard?
  - granting no permissions but accepting the prompt
    - do we handle this like a cancellation of the prompt?
- If we set up an address book or calendar first, can we still set up mail?

In all cases, these things should work after a restart, with no additional prompts.
Google is, so I'm told, going to enable [OAuth2 granular permissions](https://developers.google.com/identity/protocols/oauth2/resources/granular-permissions) for Thunderbird. Our code can sort-of handle these, but we record the scopes we requested, not the ones we got. This shouldn't happen. If we save an access token and claim it has (e.g.) the CardDAV permission, but it doesn't, the CardDAV code gets confused and is unable to find any address books.

I've written a patch to fix this. To be thorough, here's what we need to test:

- When setting up a mail account, and
  - granting all permissions,
    - does the mail account work?
    - can address books and calendars be set up in the mail setup wizard?
    - can address books and calendars be set up separately *after* the mail setup wizard?
  - granting only the mail permission,
    - does the mail account work?
    - can address books and calendars be set up in the mail setup wizard? (no automatic attempt should be made)
    - can address books and calendars be set up separately *after* the mail setup wizard?
  - not granting the mail permission,
    - do we handle this like a cancellation of the prompt?
  - not granting any permissions but accepting the prompt,
    - do we handle this like a cancellation of the prompt?
- If we set up an address book or calendar first, can we still set up mail?

In all cases, these things should work after a restart, with no additional prompts.

Back to Bug 1909789 Comment 0