Support browser.identity
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(thunderbird78+ fixed)
People
(Reporter: kam193, Assigned: darktrojan)
References
Details
Attachments
(1 file)
|
4.68 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Steps to reproduce:
I want to authorize user in an extension using OAuth2
Actual results:
Thunderbird MailExtension doesn't implement standard browser.identity (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/identity)
Expected results:
I would like to see browser.identity support in MailExtension
| Assignee | ||
Comment 1•5 years ago
|
||
I didn't know this was a thing! I wish I had known a long time ago now.
I found it last time, but it looks like crucial feature to easily authenticate with OAuth2 in extensions. I hope we can implement it :)
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
This is easy enough to enable, but we'll need bug 1644083 first. All of the code is in toolkit, we just need to link to it from ext-mail.js (it's not linked from ext-toolkit.js because Android Firefox doesn't have it).
The API itself opens a new window with the URL of BROWSER_CHROME_URL, which is for some bizarre reason pointing at messengercompose.xhtml now. I've looked into removing BROWSER_CHROME_URL altogether before, so I know it's okay to change it.
| Assignee | ||
Comment 4•5 years ago
|
||
I tested this with the google-userinfo sample extension. Getting the automated tests for it running isn't possible at the moment because they're mochitest-plain, and we can't run that suite.
Nice to see it! I'm pleased that it looks doable, I spent a few hours working on a workaround unsuccessfully.
Updated•5 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/3e9b60644f25
Enable browser.identity API. r=mkmelin
| Assignee | ||
Updated•5 years ago
|
Thank you so much! Now in a 0.5h I built draft of the extension I'm working on.
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
| Assignee | ||
Comment 10•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 78.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/8e1be3cfb3bf
| Assignee | ||
Updated•5 years ago
|
Description
•