Switch to async login search APIs to support GeckoView storage queries
Categories
(Toolkit :: Password Manager, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox72 | --- | fixed |
People
(Reporter: MattN, Assigned: MattN)
References
Details
(Whiteboard: [passwords:storage])
Attachments
(6 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Most nsILoginManagerStorage APIs are synchronous (except for initialize, terminate, & getAllLoginsAsync) for legacy reasons but we need to switch the APIs used for capture/fill (not management) to be async to support async queries to GeckoView.
searchLogins is the main issue, maybe findLogins if the one consumer can't switch to the async searchLogins API.
We will need to keep the sync APIs for Thunderbird so the storage-json.js backend for desktop apps can simply delegate from the async to the sync API to preserve compatibility. The GeckoView backend would simply not implement the synchronous API as it should never be called.
| Assignee | ||
Comment 1•5 years ago
|
||
We need to switch the APIs used for capture/fill (not management) to be async to support async queries a GeckoView login storage provider.
| Assignee | ||
Comment 2•5 years ago
|
||
Update callers to await on the result.
Depends on D53149
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D53150
| Assignee | ||
Comment 4•5 years ago
|
||
| Assignee | ||
Comment 5•5 years ago
|
||
The Promise type wasn't available to XPIDL when these were added.
Depends on D54138
| Assignee | ||
Comment 6•5 years ago
|
||
Depends on D54779
Comment 8•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a3d9094fbb28
https://hg.mozilla.org/mozilla-central/rev/c11b9109664e
https://hg.mozilla.org/mozilla-central/rev/8d7dab582ae4
https://hg.mozilla.org/mozilla-central/rev/7aef5a5252b1
https://hg.mozilla.org/mozilla-central/rev/acb67bbe1545
https://hg.mozilla.org/mozilla-central/rev/8264925bfb7d
Description
•