зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1771740
- Do not call `removeAllRecords` in setStorage r=sgalich
In Bug 1762070, we added `setStorage` to replace `saveAddress` and `saveCreditCard`. However, adding `removeAllRecords` in `setStorage` changes the flow for testcases that don't expect `saveAddress/CreditCard` removing previous saved records. Differential Revision: https://phabricator.services.mozilla.com/D147658
This commit is contained in:
Родитель
72e77b6025
Коммит
852ff3c8d4
|
@ -770,7 +770,6 @@ async function testDialog(url, testFn, arg = undefined) {
|
|||
* @param {...Object} items Can either be credit card or address objects
|
||||
*/
|
||||
async function setStorage(...items) {
|
||||
await removeAllRecords();
|
||||
for (let item of items) {
|
||||
if (item["cc-number"]) {
|
||||
await saveCreditCard(item);
|
||||
|
|
Загрузка…
Ссылка в новой задаче