Commit graph

373 commits

Author SHA1 Message Date
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
Brindusan Cristian
70ab748bed Backed out 5 changesets (bug 1687235) for mochitest failures at test_menulist_null_value.xhtml. CLOSED TREE
Backed out changeset 638c802ca1d1 (bug 1687235)
Backed out changeset ec830b771bce (bug 1687235)
Backed out changeset a7c933ddecfd (bug 1687235)
Backed out changeset c36493fb0599 (bug 1687235)
Backed out changeset 6eb33ad5d460 (bug 1687235)
2021-01-26 10:58:43 +02:00
Mark Banner
c793c1efb7 Bug 1687235 - Enable ESLint rule no-setter-return for browser/. r=mossop,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102152
2021-01-25 22:27:19 +00:00
Itiel
87979c71a8 Bug 1684530 - Minor improvements to the Saved Addresses and Saved Credit Cards dialogs r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D100833
2021-01-06 19:48:06 +00:00
James Teh
5bb136ae5a Bug 1664086: Use Fluent to set aria-label for credit card list options in preferences. r=zbraniecki,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89696
2020-09-11 06:13:36 +00:00
James Teh
f9ca83698f Bug 1662879 part 2: Expose the credit card type via aria-label for credit card autocomplete results. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D89549
2020-09-11 05:50:25 +00:00
James Teh
743f8fb4d8 Bug 1662879 part 1: Expose the credit card type via aria-label in the credit card list in Preferences. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D89548
2020-09-11 05:47:27 +00:00
Csoregi Natalia
dfee6e2032 Backed out 2 changesets (bug 1662879) for multiple failures e.g. browser_manageCreditCardsDialog.js. CLOSED TREE
Backed out changeset 3952f1301e38 (bug 1662879)
Backed out changeset 5daec3a7ae6f (bug 1662879)
2020-09-10 10:59:01 +03:00
James Teh
7a1dc60a54 Bug 1662879 part 2: Expose the credit card type via aria-label for credit card autocomplete results. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D89549
2020-09-10 02:41:27 +00:00
James Teh
009decd190 Bug 1662879 part 1: Expose the credit card type via aria-label in the credit card list in Preferences. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D89548
2020-09-10 04:47:49 +00:00
James Teh
4e4a30b765 Bug 1662876: Use aria-labelledby on the credit card number field to avoid the value being included in the label. r=zbraniecki
Ideally, the error message would be outside of the wrapping label element, which would avoid inclusion of the value in the label.
However, I didn't want to potentially mess with the visual presentation, especially given the tight timeline.

Differential Revision: https://phabricator.services.mozilla.com/D89547
2020-09-09 23:51:50 +00:00
pbz
2a72e0a43c Bug 1661030 - Refactor SubDialog and TabDialogBox to support passing multiple window arguments. r=Gijs,preferences-reviewers
This also updates the behavior of the allowDuplicates check:
Instead of only checking if the top dialog is a duplicate, it will now check the whole stack and
skip the dialog open if a duplicate URL is found.
This fixes an issue where callers could alternate between dialogs to bypass the check.

Differential Revision: https://phabricator.services.mozilla.com/D88422
2020-09-02 14:24:47 +00:00
Christoph Kerschbaumer
a3ac9eee66 Bug 1654260: Package all formautofill css files and load them using the internal chrome: protocol. r=MattN,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D85023
2020-08-31 13:18:56 +00:00
Sonia Singla
5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
Zibi Braniecki
11395cf9ff Bug 1654167 - Add preferences telemetry for Credit Card A/B testing. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D84293
2020-07-28 00:29:50 +00:00
Zibi Braniecki
9830564143 Bug 1650222 - Verify CC number validity when editing the CC entry. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D83527
2020-07-15 01:40:32 +00:00
Itiel
50c5e799e3 Bug 1651433 - Fix the telephone number to appear correctly in the preferences and in the autofill list r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D82771
2020-07-08 19:51:14 +00:00
Zibi Braniecki
ea5b8a7d68 Bug 1642060 - Handle Credit Card Type select. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D81015
2020-07-02 15:36:44 +00:00
Itiel
8027e4ca15 Bug 1648417 - Fix the doorhanger icon for updating an autofilled form r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D81536
2020-06-29 16:38:39 +00:00
Adam Roach [:abr]
b601853466 Bug 1399356: Delay input to autofill popup r=zbraniecki,MattN
Differential Revision: https://phabricator.services.mozilla.com/D79775
2020-06-27 02:11:48 +00:00
Mihai Alexandru Michis
d0913bd05c Backed out 3 changesets (bug 1399356) for causing failures in browser_anti_clickjacking.js
CLOSED TREE

Backed out changeset 4fdb0c2beacf (bug 1399356)
Backed out changeset adabcdf04413 (bug 1399356)
Backed out changeset 468066fde214 (bug 1399356)
2020-06-27 04:59:35 +03:00
Adam Roach [:abr]
61ca11e7d7 Bug 1399356: Delay input to autofill popup r=zbraniecki,MattN
Differential Revision: https://phabricator.services.mozilla.com/D79775
2020-06-26 16:00:10 +00:00