Commit graph

394 commits

Author SHA1 Message Date
Noemi Erli
118513ad00 Backed out 2 changesets (bug 1824473) for causing failures in test_clear_form.html CLOSED TREE
Backed out changeset b38aeb74da71 (bug 1824473)
Backed out changeset b73ead08bb19 (bug 1824473)
2023-03-31 21:51:12 +03:00
Stephanie Cunnane
3bb55d1cbe Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-31 16:45:03 +00:00
Csoregi Natalia
64c0437f97 Backed out 2 changesets (bug 1824473) for causing mochitest failures on test_address_level_1_submission.html. CLOSED TREE
Backed out changeset 8dd52b2dae6b (bug 1824473)
Backed out changeset 5fbc5b6422c7 (bug 1824473)
2023-03-30 21:14:51 +03:00
Stephanie Cunnane
660bd43791 Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-30 17:29:18 +00:00
Sandor Molnar
fa2ae22888 Backed out 2 changesets (bug 1824473) for causing failures in browser/extensions/formautofill/test/<...>.js
Backed out changeset 01046e78078c (bug 1824473)
Backed out changeset 4203fbb8f229 (bug 1824473)
2023-03-27 22:44:33 +03:00
Stephanie Cunnane
d31dfc03b2 Bug 1824473 - Update consumers of toolkit/components/formautofill to import ES modules directly. r=Standard8,geckoview-reviewers,credential-management-reviewers,sgalich,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173587
2023-03-27 18:12:17 +00:00
Lata
4ee9882811 Bug 1820284 - Use moz-button-group in the Add new address r=hjones,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D171914
2023-03-21 14:11:02 +00:00
Mark Banner
1646117163 Bug 1822556 - Update consumers of toolkit/actors to import ES modules directly. r=mossop,perftest-reviewers,credential-management-reviewers,sgalich,kshampur
Depends on D172679

Differential Revision: https://phabricator.services.mozilla.com/D172680
2023-03-16 12:50:27 +00:00
Marian-Vasile Laza
76495f054c Backed out changeset 9fe73bfccdfa (bug 1820284) for bc failures on browser_editAddressDialog.js. CLOSED TREE 2023-03-10 22:35:12 +02:00
Lata
4a0bec3609 Bug 1820284 - Use moz-button-group in the Add new address r=hjones,credential-management-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D171914
2023-03-10 16:20:41 +00:00
Dimi
5e9fc74b57 Bug 1810746 - Implement a new address update doorhanger prototype r=credential-management-reviewers,sgalich
This is only a prototype and is currently disabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D167557
2023-02-14 22:50:20 +00:00
Dimi
73e1a5d878 Bug 1801039 - P1. Share common code for Address and Credit Card r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D164351
2023-01-03 20:55:56 +00:00
Noemi Erli
03a1192480 Backed out 3 changesets (bug 1801039) for causing multiple failures CLOSED TREE
Backed out changeset 0bbe6fbc7658 (bug 1801039)
Backed out changeset 7de8b9fa5c54 (bug 1801039)
Backed out changeset fe8346f26b2d (bug 1801039)
2023-01-03 13:54:03 +02:00
Dimi
9cb94a3e8e Bug 1801039 - P1. Share common code for Address and Credit Card r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D164351
2023-01-03 10:48:42 +00:00
Dimi
4915cb3676 Bug 1667257 - Detect credit card type by examining IIN part of credit card number r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D164904
2023-01-03 08:11:54 +00:00
Marian-Vasile Laza
abf6758ed8 Backed out changeset 8fb839f5a2ba (bug 1667257) for causing xpcshell failures on test_migrateRecords.js. CLOSED TREE 2023-01-02 16:40:08 +02:00
Dimi
0847480c62 Bug 1667257 - Detect credit card type by examining IIN part of credit card number r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D164904
2023-01-02 09:57:40 +00:00
Mark Banner
c338c0398d Bug 1803757 - Automatically replace Cu.reportError with console.error (credentials). r=credential-management-reviewers,sgalich
Depends on D163701

Differential Revision: https://phabricator.services.mozilla.com/D163702
2022-12-02 18:44:44 +00:00
trickypr
84b9641650 Bug 1510561 - Part 11: Apply plugin:mozilla/valid-jsdoc to browser/extensions/formautofill. r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D161386
2022-11-07 12:33:29 +00:00
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Eemeli Aro
9e7ffeb5e0 Bug 1446164 - Migrate formautofill edit dialogs to Fluent. r=sgalich,fluent-reviewers,flod
Migrating the strings used by the edit dialogs also allows/requires for their migration elsewhere.

Some streamlining is applied to how autofillEditForms.js gets access to e.g. FormFillUtils methods, so that they are no longer routed via the XHTML files' script tags. The prior independence of this file from internal dependencies appears to have been in place to support its use as a part of the Payments API's UI, but that was dropped in bug 1721229.

The Fluent migration script included in this patch also covers changes from the immediately preceding patch.

The intl documentation change is a typo correction that was noticed while working on this patch.

Differential Revision: https://phabricator.services.mozilla.com/D155705
2022-09-01 20:35:37 +00:00
Eemeli Aro
9b52b652aa Bug 1786708 - Migrate formautofill management dialogs to Fluent. r=sgalich,fluent-reviewers,preferences-reviewers,flod,jaws
A new FTL file for the extension is added under `browser/preferences/` rather than `browser/extensions/formautofill/`, as the former is a more common location for FTL localizations, and the extension already relies on an FTL file hosted outside its own directory, `toolkit/payments/payments.ftl`.

The dialogs are not fully migrated in this patch, as some of the strings are shared with the edit dialogs and are migrated separately.

A Fluent migration for the localization changes applied here is included in the next patch after this one.

Differential Revision: https://phabricator.services.mozilla.com/D155478
2022-09-01 20:35:34 +00:00
Norisz Fay
e1a0b90205 Backed out 2 changesets (bug 1786708, bug 1446164) for causing multiple failures CLOSED TREE
Backed out changeset 469e2500f00e (bug 1446164)
Backed out changeset 0d298c6f7475 (bug 1786708)
2022-09-01 15:34:56 +03:00
Eemeli Aro
5475c4b139 Bug 1446164 - Migrate formautofill edit dialogs to Fluent. r=sgalich,fluent-reviewers,flod
Migrating the strings used by the edit dialogs also allows/requires for their migration elsewhere.

Some streamlining is applied to how autofillEditForms.js gets access to e.g. FormFillUtils methods, so that they are no longer routed via the XHTML files' script tags. The prior independence of this file from internal dependencies appears to have been in place to support its use as a part of the Payments API's UI, but that was dropped in bug 1721229.

The Fluent migration script included in this patch also covers changes from the immediately preceding patch.

The intl documentation change is a typo correction that was noticed while working on this patch.

Depends on D155478

Differential Revision: https://phabricator.services.mozilla.com/D155705
2022-09-01 08:26:47 +00:00
Eemeli Aro
107c5bf2d9 Bug 1786708 - Migrate formautofill management dialogs to Fluent. r=sgalich,fluent-reviewers,preferences-reviewers,flod,jaws
A new FTL file for the extension is added under `browser/preferences/` rather than `browser/extensions/formautofill/`, as the former is a more common location for FTL localizations, and the extension already relies on an FTL file hosted outside its own directory, `toolkit/payments/payments.ftl`.

The dialogs are not fully migrated in this patch, as some of the strings are shared with the edit dialogs and are migrated separately.

A Fluent migration for the localization changes applied here is included in the next patch after this one.

Differential Revision: https://phabricator.services.mozilla.com/D155478
2022-09-01 08:26:46 +00:00
Tooru Fujisawa
54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
47c8f80432 Bug 1667455 - Part 6: Stop importing Services.jsm from chrome-priv JS code, non-top-level or multi-line cases. r=kmag,perftest-reviewers,AlexandruIonescu,sparky
Differential Revision: https://phabricator.services.mozilla.com/D150895
2022-07-11 12:41:51 +00:00
Tooru Fujisawa
bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Kagami Sascha Rosylight
764ef75de5 Bug 1773740 - Part 4: Reapply mach -l eslint --fix with use-isInstance changes r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148939
2022-06-27 20:31:34 +00:00
Mark Banner
f3dad5a117 Bug 1771173 - Rework FormAutoFill's log creation to make it easier for linters to handle. r=sgalich
This rewrites the lazy getters, so that the lazy getter is defined at the call point, which makes it
easier for linters to understand what is being defined.
In some cases, the log is not being used, so the definition code is removed.

Differential Revision: https://phabricator.services.mozilla.com/D149716
2022-06-21 20:42:15 +00:00
Dimi
5bcb548c20 Bug 1771152 - Use documentElement.closest r=sgalich
mutation.target is HTMLDocument, which doesn't have closest function.
This patch uses mutation.target.documentElement instead.

Differential Revision: https://phabricator.services.mozilla.com/D147294
2022-05-25 18:13:51 +00:00
Cristian Tuns
e9a52cefa6 Backed out changeset 6fc99ee8219e (bug 1771152) for causing mochitest failures on browser_editAddressDialog.js CLOSED TREE 2022-05-25 13:17:13 -04:00
Dimi
23a28dbccb Bug 1771152 - Use documentElement.closest r=sgalich
mutation.target is HTMLDocument, which doesn't have closest function.
This patch uses mutation.target.documentElement instead.

Differential Revision: https://phabricator.services.mozilla.com/D147294
2022-05-25 15:01:36 +00:00
manisha27
522d600c93 Bug 1767323 - Title-text for saved addresses and credit cards readable in dark/light mode. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D146374
2022-05-16 19:45:08 +00:00
Mark Banner
8bb4667fae Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-11 16:41:29 +00:00
smolnar
e89faa903f Backed out changeset 5018856d8fee (bug 1758474) for causing node eslint failure. CLOSED TREE 2022-03-10 11:58:45 +02:00
Mark Banner
fe937b78bd Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D140517
2022-03-10 09:25:28 +00:00
Tim Giles
16af63bd61 Bug 1740527 - Show credit card logo based on captured information in save/edit panel. r=sgalich,dimi
Add logic to FormAutofillPrompter so that the specific credit card logo can be stored and loaded when needed.
Update the styling so that each credit card logo will fit appropriately and not stretch.
Add a default size for the generic credit card logo so that it will appear given the updated styling.
Move the majority CreditCardResult.getImageAt into a helper function in CreditCard so that FormAutofillPrompter can use it for showing the cc logo in the doorhanger/panel.
Remove call to deprecated CreditCard.getLabel and replace with CreditCard.getLabelInfo.
Add tests to cover new CreditCard.getCreditCardLogo function.

Differential Revision: https://phabricator.services.mozilla.com/D132835
2022-01-28 15:00:59 +00:00
Silke Hofmann
4650ab077c Bug 1481470 - Stop using xlink:href in SVG in browser/. r=nhnt11,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D117204
2021-06-13 19:01:19 +00:00
Eugen Sawin
b0aad68d81 Bug 1691821 - [1.c.3] Rename autofill paths to use the new toolkit component. r=zbraniecki,dimi
Differential Revision: https://phabricator.services.mozilla.com/D108058
2021-04-12 17:33:16 +00:00
Eugen Sawin
e79f72de71 Bug 1691821 - [1.a.3] Extract common mechanics from the form autofill extension to toolkit to enable cross-platform reuse. r=zbraniecki,dimi,tgiles,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D108057
2021-04-12 17:33:15 +00:00
Dorel Luca
96e01b8c73 Backed out 7 changesets (bug 1691821) for Browser-chrome failures in autofill/FormAutofillParent.jsm. CLOSED TREE
Backed out changeset d12aec06eedd (bug 1691821)
Backed out changeset 0affe1783697 (bug 1691821)
Backed out changeset f807e0d0d095 (bug 1691821)
Backed out changeset abdc3fede62b (bug 1691821)
Backed out changeset cea92bd86972 (bug 1691821)
Backed out changeset 1c86de8cd775 (bug 1691821)
Backed out changeset e955f7f5503c (bug 1691821)
2021-04-10 03:05:35 +03:00
Eugen Sawin
f3fbc60884 Bug 1691821 - [1.c.2] Rename autofill paths to use the new toolkit component. r=zbraniecki,dimi
Differential Revision: https://phabricator.services.mozilla.com/D108058
2021-04-09 22:12:12 +00:00
Alexandru Michis
1662cd5584 Backed out 3 changesets (bug 1681985) for causing performance issues.
CLOSED TREE

Backed out changeset 7b19f4ed5182 (bug 1681985)
Backed out changeset e77582268ce1 (bug 1681985)
Backed out changeset 386a8b11c127 (bug 1681985)
2021-04-01 17:51:47 +03:00
Erik Rose
b1265899bc Bug 1681985 - Add and call Fathom ruleset. r=zbraniecki
* We make some changes to heuristicsRegexp.js to improve accuracy. (Nothing else uses these regexps, so they're safe to change.) The commenting out of some languages in the expiration fields are because they caused a lot of false positives, according to Daniel Hertenstein's recollection. In any case, we've never preffed CC autofill on for those languages.
* Delete a few tests from test_known_strings.js and one from test_getInfo.js, which were testing for the presence of regexes we removed.
* Delete tests of CC autofill against third-party sites. These tests no longer work as xpcshell tests, since Fathom expects full layout and style information. The spirit of these tests is maintained by adding these pages to Fathom's training, validation, and testing corpora at 2bfcdf23dc. A few don't make it due to iframes which confound Fathom's capture tools, but the rest all succeed--and now improve the ML model as well as acting as tests. The training results after said integration reflect this improvement, which boosts testing precision and recall for every type.
* Add a mochitest to ensure the Fathom integration code can surface a decision that a field should not be autofilled. Decisions that go the other way are taken care of by the existing autofill tests.

Differential Revision: https://phabricator.services.mozilla.com/D100141
2021-03-23 18:31:08 +00:00
Tim Nguyen
4b8a2b71cf Bug 1698406 - Remove --in-content-box-background-{hover/active} variables. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108393
2021-03-16 16:33:00 +00:00
Mark Banner
c4afa9e9ad Bug 1687235 - Enable ESLint rule no-setter-return for browser/. r=mossop,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102152
2021-01-26 13:42:38 +00:00