Commit Graph

389 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
bab80ab776 Bug 1432952 - Use the testDialog helper in browser_editCreditCardDialog.js. r=jaws
MozReview-Commit-ID: 9tquQ0C7D93
2018-04-10 17:39:25 -07:00
Matthew Noorenberghe
6eb0502ee1 Bug 1432952 - Add a billingAddressGUID property to saved credit cards. r=jaws,kitcambridge
test_reconcile.js already provides great test coverage for a new field (like billingAddressGUID) being added either locally or remotely.

MozReview-Commit-ID: 5IGoH3zB1rz
2018-04-10 15:55:20 -07:00
Narcis Beleuzu
f9c4632e9b Bug 1425884 - Syntax fix for the browser_creditCard_doorhanger.js test skipping. r=jmaher 2018-03-20 19:43:00 -04:00
Kris Maglione
3e28bf5cba Bug 1446585: Remove support for resource entries in bootstrapped chrome.manifest files. r=aswan,MattN,k88hudson
MozReview-Commit-ID: EjymzU6koYX
2018-03-16 20:18:46 -07:00
Tooru Fujisawa
f415c74b57 Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09: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
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
Kit Cambridge
f17824d71b Bug 1199077 - Autofill changes for async lastSync and syncID accessors. r=eoger
MozReview-Commit-ID: CgSqRevONRX
2018-03-02 14:53:23 -08:00
Arthur Iakab
de784be9f6 Bug 1425884 disabled browser_creditCard_doorhanger.js on Linux, Windows, OSX debug platforms r=jmaher 2018-03-11 22:14:00 +02: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
Masayuki Nakano
efaea0aaa7 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T
2018-02-15 04:15:39 +09:00
Matthew Noorenberghe
0ace8f9ecb Bug 1438306 - Disable CA & DE country support and RTL support for Form Autofill in Beta 59+. r=Dolske
MozReview-Commit-ID: IBtrvEsIWtH
2018-02-14 13:41:27 -08:00
Masayuki Nakano
53a40055b6 Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug
Now, callers of EventUtils.synthesizeKey() don't need to specify
KeyboardEvent.code value anymore if they assume that active keyboard layout
is US keyboard layout.

Note that this patch changes the meaning of only test_bug551434.html.
Some callers in it don't match the key value and code value but that looks
like that they don't checking such odd keyboard events.  So, they must be
bug of the test.

MozReview-Commit-ID: Itxo7yZ9rkK
2018-02-09 19:17:26 +09:00
Tom Ritter
5918a1f53d Bug 1435296 Address xpcshell test failures from increasing timer precision r=baku
See the comment on "Address test failures caused by bumping timer precision to 2 ms"
for more details.

MozReview-Commit-ID: LrsucEPdZIo
2018-02-12 11:41:38 -06:00
Tom Ritter
b414702f22 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ
2018-02-12 11:39:41 -06: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
Matthew Noorenberghe
d75aa46e45 Bug 1435274 - Stop form autofilling if the master password prompt is cancelled. r=johannh
MozReview-Commit-ID: HnFbcWYX6QL
2018-02-02 21:42:31 -08:00
Edouard Oger
fda53ac528 Bug 633062 p8 - Add Async observers. r=kitcambridge,markh,tcsc
MozReview-Commit-ID: IvwyleXBcNH
2018-01-04 18:07:10 -05:00
Noemi Erli
bd4af5546a Backed out 8 changesets (bug 633062) as requested by eoger on a CLOSED TREE
Backed out changeset 590656f7b5c5 (bug 633062)
Backed out changeset 0888aa122056 (bug 633062)
Backed out changeset 0780cf391c52 (bug 633062)
Backed out changeset 9798cbd03027 (bug 633062)
Backed out changeset 4b31c73a585f (bug 633062)
Backed out changeset 0a8866062136 (bug 633062)
Backed out changeset 20ff83289564 (bug 633062)
Backed out changeset 5e52125316e1 (bug 633062)
2018-01-31 22:09:30 +02:00
Edouard Oger
a67ec36cbd Bug 633062 p8 - Add Async observers. r=kitcambridge,markh,tcsc
MozReview-Commit-ID: IvwyleXBcNH
2018-01-04 18:07:10 -05:00
Masayuki Nakano
65ecb061b4 Bug 1134540 - Make all tests stop using nsIDOMWindowUtils.sendKeyEvent() r=smaug
nsIDOMWindowUtils.sendKeyEvent() can dispatch any keyboard events, i.e.,
may dispatch different key events from actual Gecko's behavior.  Instead,
they should use nsITextInputProcessor directly or synthesizeKey() of
EventUtils which wraps nsITextInputProcessor.

MozReview-Commit-ID: EDWqXy1OxJp
2018-01-30 22:05:44 +09:00
Sam Reading-Thompson, Robin Hodda, Joseph Fergusson
96a684c72d Bug 1429017 - Added spotlight upon clicking view in preferences in address autofill doorhanger r=MattN 2018-01-22 16:02:55 -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
Tooru Fujisawa
a3ce7bc4c0 Bug 1430979 - Wait for focus event in addition to FormReady event in formautofill tests. r=MattN 2018-01-29 19:15:11 +09:00
Brian Grinstead
2b3ea8e59a Bug 1420229 - Run formautofill xpcshell tests in headless mode;r=bdahl
This is needed because DOMParser is invoked on some fixture HTML that contains an
<svg> element (Walmart/Payment.html). When this happens **and** there is
a declaration for `color: MenuText` in a UA stylesheet (which is added in the next
changeset), there is a graphics crash. This is fixed in the new headless mode,
so this changeset forces the directory to run in it.

MozReview-Commit-ID: 9T8eFOW4xoz
2018-01-23 12:59:06 -08:00
Matthew Noorenberghe
967d06cc67 Bug 1429278 - Follow-up to fix test for case change. r=bustage
CLOSED TREE
2018-01-22 18:19:01 -08:00
Ray Lin
5c402e5788 Bug 1429976 - Include collectionName in formautofill-storage-changed notify payload. r=lchang
MozReview-Commit-ID: 55m97PwMXsx
2018-01-16 12:18:48 +08:00
Scott Wu
06b9b28a55 Bug 1427510 - Use current year as expiration year in credit card test case to fix perma failure. r=lchang
MozReview-Commit-ID: IuDCc6UDfay
2018-01-09 17:33:04 +08:00
steveck-chung
9e339c35ed Bug 1426652 - Allow the form with non-autocomplete-attr cc-number and cc-name as valid credit card form, r=lchang
MozReview-Commit-ID: 8eqJUSYyPXr
2018-01-10 15:50:46 +08:00
Csoregi Natalia
726a5d7577 Backed out changeset 93fa34d5492c (bug 1427510) for failing browser/extensions/formautofill/test/browser/browser_editCreditCardDialog.js. on a CLOSED TREE 2018-01-15 11:19:36 +02:00
Scott Wu
55d25f930d Bug 1427510 - Use current year as expiration year in credit card test case to fix perma failure. r=lchang
MozReview-Commit-ID: IuDCc6UDfay
2018-01-09 17:33:04 +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
Sean Lee
c2dd00ca74 Bug 1417834 - Part 2: Implement FormAutofillCreditCardSection and FormAutofillAddressSection inhertied from FormAutofillSection. r=lchang,ralin
MozReview-Commit-ID: 4i4suqQhUA1
2017-12-16 13:20:48 -06:00
Sean Lee
f7eae14b92 Bug 1417834 - Part 1: Seperate the fields of Address and Credit Card into the different sections. r=lchang,ralin
MozReview-Commit-ID: 8n9AnGv6Zna
2017-12-11 00:54:06 +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
Sebastian Hengst
2aca7398d9 Bug 1427510 - Disable perma failing browser_editCreditCardDialog.js until it gets fixed. r=permafail-fix a=permafail-fix 2018-01-01 14:55:50 +01:00
Sebastian Hengst
9993fc078d Bug 1427510 - Use current year as expiration year in credit card test to fix perma failure: fix eslint issue. r=eslint-fix a=eslint-fix 2018-01-01 13:40:38 +01:00
Sebastian Hengst
bc4ec7f905 Bug 1427510 - Use current year as expiration year in credit card test to fix perma failure. r=permafail-fix a=permafail-fix 2018-01-01 13:20:57 +01:00
Florian Quèze
b7450770d6 Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx 2017-12-21 11:11:57 +01:00
Florian Quèze
1838aa9e08 Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00