Commit Graph

181 Commits

Author SHA1 Message Date
Matthew Noorenberghe
5935ff8bf3 Bug 1432952 - Add a billing address picker to the credit card add/edit form. r=jaws
MozReview-Commit-ID: 9tquQ0C7D96
2018-04-10 18:31:05 -07:00
Matthew Noorenberghe
613b490bec Bug 1428414 - Support saving credit card changes in the Payment Request dialog. r=jaws
MozReview-Commit-ID: J2rRUy1lHiZ
2018-04-03 14:06:21 -04:00
Matthew Noorenberghe
80db3e4717 Bug 1428414 - Support re-using autofill edit forms for different records. r=jaws
MozReview-Commit-ID: LnpaX9oAo1A
2018-03-22 20:31:52 -07:00
Matthew Noorenberghe
578163b125 Bug 1427954 - Pass FormAutofillUtils.isCCNumber to EditCreditCard. 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: 34PvRxzWcSr
2018-03-14 18:11:03 -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
28196f5a82 Bug 1427954 - Remove string bundle references from autofillEditForms.js. r=sfoster
This is a step on the path to making it unpriveleged.

MozReview-Commit-ID: 3DSYvM2Pje9
2018-03-14 18:12:15 -07:00
Matthew Noorenberghe
79e4b011ea Bug 1427954 - Remove unused uninit code from editDialog.js and autofillEditForms.js. r=sfoster
MozReview-Commit-ID: 9GP1gsycgJo
2018-03-14 17:31:56 -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
Matthew Noorenberghe
6983623bf5 Bug 1427954 - Remove unused Services and XPCOMUtils imports in editDialog.js. r=sfoster
MozReview-Commit-ID: F4ryqNOYMn6
2018-03-14 17:06:42 -07:00
Daniel Marshall
7724f2e32c Bug 1434483 - Renamed profileStorage singleton to formAutofillStorage to make it more clear; r=MattN
MozReview-Commit-ID: CaPYBGLfs5I
2018-02-10 21:23:19 +00:00
Narcis Beleuzu
439cc34017 Backed out changeset a8130e46c530 (bug 1434483) for ESlint failures on browser_change_shipping.js. CLOSED TREE 2018-03-05 23:50:02 +02:00
Daniel Marshall
49ad18cee3 Bug 1434483 - Renamed profileStorage singleton to formAutofillStorage to make it more clear; r=MattN
MozReview-Commit-ID: CaPYBGLfs5I
2018-02-10 21:23:19 +00:00
Ian Moody
a54a2601c7 Bug 1432070 - Block context menu in Autofill preference dialogs, except on text fields. r=MattN,scottwu
The context menu shown is the standard web page one, and so inappropriate for
inside preferences.  Keep it on text fields so text editing commands are still
available, though unfortunately so are "This Frame", "Inspect Element", and
"Add a Keyword for this Search".

MozReview-Commit-ID: 7L012CZ4BhR
2018-01-21 22:50:07 +00:00
Andrew McCreight
272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
George Dan, Ryan Neilsen, Dylan Turner
61369dbaa9 Bug 1387632: Rename ProfileStorage module to FormAutofillStorage. r=MattN 2018-01-30 14:44:59 -08:00
Kris Maglione
0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Sean Lee
4efa97cfaf Bug 1428292 - Determine tel-extension in telephone parser only. r=lchang
MozReview-Commit-ID: KRArH8kxuu0
2018-01-08 16:15:51 +08:00
Sean Lee
7d66a493c5 Bug 1428732 - Add the credit card related rules for recongnizing cc-exp-year, cc-exp-month, and cc-number for German web sites. r=lchang
MozReview-Commit-ID: Cj8YM6XEEZd
2018-01-10 16:15:52 +08: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
Sean Lee
758c5a5a86 Bug 1423204 - Improve the address line parser to detect address-line* more correctly. r=lchang
MozReview-Commit-ID: JHqKSnBZsVV
2018-01-07 15:42:41 +08:00
Scott Wu
1e0139fa29 Bug 1421538 - Set country field to default country when creating new addresses. r=lchang
MozReview-Commit-ID: 5Bd6TdZOej
2018-01-03 17:50:44 +08:00
Ray Lin
1aafb817b6 Bug 1423873 - Rename the label of clear form button to "Clear Autofill Form". r=lchang
MozReview-Commit-ID: LeKwTt9mdYW
2018-01-03 16:26:04 +08:00
Sean Lee
39171fd5c7 Bug 1417803 - Part 3: Use _activeItems to record the information of the current focused input. r=lchang,ralin
MozReview-Commit-ID: 4j72RXk2Wpb
2017-12-11 19:28:47 +08:00
Csoregi Natalia
85ca2134cd Backed out 3 changesets (bug 1417803) for failing browser/browser_device_width.js on Linux Stylo Disabled Debug platform. r=backout on a CLOSED TREE
Backed out changeset af5b96ec9db0 (bug 1417803)
Backed out changeset cd5e96cab7c5 (bug 1417803)
Backed out changeset fe9d556bdef4 (bug 1417803)
2017-12-18 21:23:05 +02:00
Sean Lee
bbaad33ff4 Bug 1417803 - Part 3: Use activeField to record the current focused input. r=lchang,ralin
MozReview-Commit-ID: 4j72RXk2Wpb
2017-12-11 19:28:47 +08:00
Ray Lin
fbefb2fd83 Bug 1415022 - Provide additional description message that help user to indicate the profile to be operated. r=seanlee,steveck
MozReview-Commit-ID: 1QNaIQJJZ18
2017-12-01 16:22:01 +08:00
Scott Wu
180814fdae Bug 1423836 - Make credit card month/year select flexible, and remove unnecessary height by setting resizable=no. r=lchang
MozReview-Commit-ID: 7IiuIYT7fWK
2017-12-07 18:02:55 +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
a027f05cd7 Bug 1420883 - Change setting width to min-width for manage addresses dialog. r=lchang
MozReview-Commit-ID: E1jjtfSdjZs
2017-11-28 15:21:47 +08:00
Scott Wu
c853e67f98 Bug 1419819 - Remove html|button padding rule from common stylesheet. r=jaws
Bug 1413162 added the html|button padding rule intended to normalize the way buttons are styled in preferences, but ended up causing problems for buttons outside of preferences, especially because !important keyword is used. This bug reverts that change.

MozReview-Commit-ID: FFQt2k6mCHE
2017-11-30 11:24:44 +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
steveck-chung
811e62adac Bug 1022925 - Part 1: move addressReferences to addressmetadata folder. r=lchang,scottwu
MozReview-Commit-ID: 4vRodOAyDdB
2017-11-10 14:39:44 +08:00
Ray Lin
3e738079ad Bug 1417775 - Always use short version preferences string on form autofill dropdown footer. r=lchang
MozReview-Commit-ID: 2PTkU8xveoU
2017-11-21 16:03:30 +08:00
Csoregi Natalia
f4b3da1b4c Backed out 2 changesets (bug 1022925) for failing browser/base/content/test/static/browser_all_files_referenced.js r=backout on a CLOSED TREE
Backed out changeset edbf6d586c9a (bug 1022925)
Backed out changeset 44f9fc2f03bb (bug 1022925)
2017-11-21 17:00:09 +02:00
steveck-chung
c1d943da29 Bug 1022925 - Part 1: move addressReferences to addressmetadata folder. r=lchang,scottwu
MozReview-Commit-ID: 4vRodOAyDdB
2017-11-10 14:39:44 +08:00
Ray Lin
c1d3d67325 Bug 1407508 - Part 4. Implement clear populated form function for form autofill clear button. r=lchang,seanlee
With this patch, we're able to clear the populated form already. However,
we need some ways to invalidate mResults in AutoCompleteController to get
new results instead of cached one for clear button once the form has been
populated.

MozReview-Commit-ID: 8No9FXWJv0p
2017-10-16 13:52:30 +08:00
Ray Lin
67dc9cb3a8 Bug 1407508 - Part 3. Add form autofill clear form button binding. r=lchang,seanlee
MozReview-Commit-ID: 7lDi5zsf1QI
2017-10-16 13:50:16 +08:00
Scott Wu
f420fc3647 Bug 1413162 - Set width to manageAddresses and manageCreditCards dialogs and move button styles to common stylesheets. r=flod,jaws,lchang
Increased the dialog width and align html button styles with XUL button styles (padding, min-width) in common stylesheets.

MozReview-Commit-ID: Czzu0Ar6JfP
2017-11-13 18:36:35 +08:00
Ray Lin
cae5c7dcba Bug 1385785 - Clicking on form autofill dropdown warning notes should not open preferences tab. r=lchang
MozReview-Commit-ID: 4IWBroDQNT
2017-11-14 14:54:25 +08:00
Ray Lin
bebe94f309 Bug 1413473 - Verify current focused input to determine whether the opening popup is for form autofill in order not to accidentally open new tab in wrong result types. r=lchang
MozReview-Commit-ID: JFvSxHsKC1P
2017-11-02 13:42:12 +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
Mark Banner
e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Luke Chang
66b98e77e9 Bug 1395122 - [Form Autofill] Treat "cc-number-encrypted" as a computed field and compute it within the storage. r=kitcambridge,MattN,steveck
MozReview-Commit-ID: K58A7Qdj4va
2017-09-08 12:31:02 +08:00