Commit Graph

43 Commits

Author SHA1 Message Date
Brian Grinstead
3dd68e7775 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

Differential Revision: https://phabricator.services.mozilla.com/D28559
2019-04-24 19:43:57 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Jared Wein
b5b07c1dda Bug 1474905 - Don't disable the Save button if the form is empty or not. Instead rely on form validation preventing the Save. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D14642
2018-12-20 22:10:00 +00:00
Jared Wein
6ee6f1dd90 Bug 1474905 - Use a dropdown for the state/province field when possible. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D11854
2018-12-20 22:10:00 +00:00
Cosmin Sabou
076b32a8e4 Backed out changeset c4d1729c029e (bug 1474905) for browser chrome failures on browser_editCreditCardDialog.js. CLOSED TREE 2018-12-14 21:44:32 +02:00
Jared Wein
762cc8ccca Bug 1474905 - Use a dropdown for the state/province field when possible. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D11854
2018-12-14 18:52:19 +00:00
Jared Wein
ca3c6a0324 Bug 1483412 - Make the telephone number field required on the payer form if requestPayerPhone is true. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D10597
2018-11-01 22:38:03 +00:00
Matthew Noorenberghe
691e05390d Bug 1496069 - Properly pass noValidate to EditAddress and set @novalidate. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D8808
2018-10-16 18:01:35 +00:00
Jared Wein
3ec633199f Bug 1481972 - Add remaining countries to address autofill countries list. r=MattN
Saving and filling the countries via Form Autofill will still be limited to certain countries
but this allows the storage to be useful for Web Payments in other countries.

Differential Revision: https://phabricator.services.mozilla.com/D5194
2018-09-23 23:50:03 -07:00
Matthew Noorenberghe
ae0689fbd9 Bug 1480886 - Position the form fields for the address-form and basic-card-form according to the spec. r=sfoster
Based on work by Jared Wein.

A follow-up will handle the persist checkbox and billing address.

Differential Revision: https://phabricator.services.mozilla.com/D4174
2018-08-28 15:34:50 -07:00
Matthew Noorenberghe
a968d328f1 Bug 1480886 - Move the autofill country warning message out of the <form>. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D4164
2018-08-23 14:00:25 -07:00
Dorel Luca
40abb5fca8 Backed out 2 changesets (bug 1480886) for browser-chrome failures on browser/extensions/formautofill/test/browser/browser_editAddressDialog.js. CLOSED TREE
Backed out changeset 55f933e0609f (bug 1480886)
Backed out changeset 63b68934f813 (bug 1480886)
2018-08-29 01:06:38 +03:00
Matthew Noorenberghe
ce4142b264 Bug 1480886 - Position the form fields for the address-form and basic-card-form according to the spec. r=sfoster
Based on work by Jared Wein.

A follow-up will handle the persist checkbox and billing address.

Differential Revision: https://phabricator.services.mozilla.com/D4174
2018-08-24 16:49:53 -07:00
Matthew Noorenberghe
6561733830 Bug 1480886 - Move the autofill country warning message out of the <form>. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D4164
2018-08-23 14:00:25 -07:00
Matthew Noorenberghe
bba9406216 Bug 1485473 - Combine the borders of the name fields on the address form. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D4031
2018-08-24 23:21:30 +00:00
Jared Wein
96dfeffbdd Bug 1477100 - Show the labels as placeholders inside of the fields. r=MattN
Show the labels as placeholders inside of the fields.

Differential Revision: https://phabricator.services.mozilla.com/D2955
2018-08-17 16:25:46 -07:00
Andrew Swan
55fc05863b Bug 1449055 Convert formautofill to a webextension r=MattN,kmag 2018-07-28 14:06:07 -07:00
Csoregi Natalia
8a5f107d51 Backed out 3 changesets (bug 1449055) for multiple xpcshell failures on browser/extensions/formautofill/test/ . CLOSED TREE
Backed out changeset fc97f5b5e65d (bug 1449055)
Backed out changeset 45306ff933fe (bug 1449055)
Backed out changeset da3100049ef2 (bug 1449055)
2018-08-16 00:15:19 +03:00
Matthew Noorenberghe
740d3ceb28 Bug 1476345 - Only enable relevant fields in address forms and update tests. r=jaws
MozReview-Commit-ID: KuPMHrF6jaM
2018-08-15 12:19:55 -07:00
Andrew Swan
bf11da23d1 Bug 1449055 Convert formautofill to a webextension r=MattN,kmag 2018-07-28 14:06:07 -07:00
Dorel Luca
cc2c555306 Backed out 2 changesets (bug 1449055) for xpcshell failures on browser/extensions/formautofill/test/unit/heuristics/test_de_fields.js. CLOSED TREE
Backed out changeset 644216b0ad9b (bug 1449055)
Backed out changeset ecda6532c852 (bug 1449055)
2018-08-14 05:31:58 +03:00
Andrew Swan
e983be17d7 Bug 1449055 Convert formautofill to a webextension r=MattN,kmag 2018-07-28 14:06:07 -07:00
Kris Maglione
76e74e6ca5 Bug 1474140: Don't load FormAutofillUtils.jsm at content process startup. r=MattN
MozReview-Commit-ID: 2bOyTPU9QbX
2018-07-07 17:49:34 -07:00
Jared Wein
c653c8c236 Bug 1427961 - Put the asterisk next to required fields. r=MattN
MozReview-Commit-ID: 9KMFB9bS9hD
2018-06-20 19:06:38 -04:00
Jared Wein
e0f9bc267b Bug 1427961 - Regular expression validation for zip/postal codes. r=MattN
MozReview-Commit-ID: 208vx9SBcrq
2018-06-20 17:46:05 -04:00
Matthew Noorenberghe
8cab94534a Bug 1455151 - Support subdialog sizing of HTML documents from a stylesheet and use it for autofill edit dialogs. r=jaws
MozReview-Commit-ID: GeHPhFTnCIz
2018-04-18 16:12:15 -07:00
Matthew Noorenberghe
1326bbbdf4 Bug 1427954 - Pass getFormFormat to EditAddress. r=sfoster
The point of this is to remove dependencies on privileged code from autofillEditForms.js so it can
be used in the unprivileged PaymentRequest dialog. The PaymentRequest dialog will be able to inject
the privileged APIs in a different way.

MozReview-Commit-ID: 6Kzq94m5hnZ
2018-03-14 18:11:22 -07:00
Matthew Noorenberghe
c4094215a1 Bug 1427954 - Pass supported and default countries to EditAutofillForm and move loadInitialValues. r=sfoster
The point of this is to remove dependencies on privileged code from autofillEditForms.js so it can
be used in the unprivileged PaymentRequest dialog. The PaymentRequest dialog will be able to inject
the privileged APIs in a different way.

MozReview-Commit-ID: 4KITOMz7Uxh
2018-03-14 18:11:36 -07:00
Matthew Noorenberghe
1597ac3676 Bug 1427954 - Move autofill edit dialog l10n to mutation observers. r=sfoster
MozReview-Commit-ID: 5jSj0xPBTQj
2018-03-14 18:12:00 -07:00
Matthew Noorenberghe
447c316378 Bug 1427954 - Split autofill dialog logic from field logic. r=sfoster
We want to re-use the field/form logic but not the dialog-specific logic so this separates them out.

Custom Elements aren't enabled by default yet so we can't use them yet.

MozReview-Commit-ID: 60hMpgSOmpp
2018-03-14 18:12:38 -07:00
Matthew Noorenberghe
85cea5f35d Bug 1427954 - Don't pass child elements into the constructor. r=sfoster
MozReview-Commit-ID: 2iqHks0yD0v
2018-03-14 18:12:58 -07:00
Scott Wu
f0178cc239 Bug 1416503 - Add RTL support for Form Autofill preference dialogs. r=lchang
MozReview-Commit-ID: BgvAOxWBLf4
2018-01-10 12:09:49 +08:00
Scott Wu
7c6b72fff4 Bug 1383687 - Order edit dialog fields based on country selected. r=lchang,steveck
MozReview-Commit-ID: 1qPxvHhNGtK
2017-11-03 16:24:30 +08:00
Scott Wu
d0daefcea9 Bug 1417843 - Add supportedCountries pref to configure which countries are supported. r=lchang,steveck
MozReview-Commit-ID: 13m1ezHcR8n
2017-11-17 17:15:56 +08:00
Scott Wu
e54a496f32 Bug 1412230 - Replace the word "Company" with "Organization". r=flod,lchang
MozReview-Commit-ID: 6e8dm5QMbxk
2017-10-27 16:20:44 +08:00
Scott Wu
cb89eccec5 Bug 1407530 - Update formautofill.properties string IDs and localization notes. r=flod,lchang
MozReview-Commit-ID: uHWhQmrVgu
2017-10-11 18:19:35 +08:00
Scott Wu
c808f8d5d0 Bug 1370764 - (Part 2) Create a dialog to add/edit/view a credit card entry. r=lchang
MozReview-Commit-ID: 7d6cfcShrwc
2017-08-11 15:31:57 +08:00
Scott Wu
6d3db9462d Bug 1370764 - (Part 1) Rename editAddress files to editDialog. r=lchang
MozReview-Commit-ID: LxETrvltB2G
2017-08-22 14:28:31 +08:00
Scott Wu
93faff4436 Bug 1385813 - [Form Autofill] Set the width of edit address dialog on html markup rather than in css r=lchang
MozReview-Commit-ID: FtpIt0G76O9
2017-07-31 16:48:57 +08:00
Scott Wu
25d58d98ab Bug 1377360 - [Form Autofill] Move warning message from the manage addresses dialog to the edit address dialog. r=lchang
MozReview-Commit-ID: IuZpHQ6hyBo
2017-07-28 17:37:23 +08:00
Scott Wu
3f5f1f199b Bug 1375799 - (Part 1) [Form Autofill] Use localized strings instead of hardcoded strings. r=lchang,MattN
MozReview-Commit-ID: DgWLFN2EDc8
2017-06-29 16:23:44 -07:00
Scott Wu
558b60b49f Bug 1376642 - (Part 2) Replace "profile" with "address" in formautofill file content. r=lchang
MozReview-Commit-ID: CJF7HpGjZaQ
2017-07-26 13:59:50 +08:00
Scott Wu
bc663ba02c Bug 1376642 - (Part 1) Rename files with the word "profile" with "address" in formautofill. r=lchang
MozReview-Commit-ID: CITYezz57Et
2017-07-26 14:39:58 +08:00