Commit Graph

704 Commits

Author SHA1 Message Date
Kris Maglione
e612c6d6c3 Bug 1470333: Part 1 - Optimize debug logging statements in FormAutoFillContent. r=MattN
These cause us to load Console.jsm and create a ConsoleAPI instance in every
content process, which is expensive both in terms of memory and startup
performance.

Checking the log level before we touch the console object is much cheaper,
in terms of both memory and performance.

MozReview-Commit-ID: 19f0ggAda2J
2018-06-30 15:55:18 -07:00
Coroiu Cristina
dfd438c078 Backed out 2 changesets (bug 1470333) for xpcshell failures at browser/extensions/formautofill/test/unit/test_getFormInputDetails.js
Backed out changeset dbea1942a32f (bug 1470333)
Backed out changeset 440ee3fab72a (bug 1470333)
2018-07-05 00:24:27 +03:00
Kris Maglione
1b8c3b1953 Bug 1470333: Part 1 - Optimize debug logging statements in FormAutoFillContent. r=MattN
These cause us to load Console.jsm and create a ConsoleAPI instance in every
content process, which is expensive both in terms of memory and startup
performance.

Checking the log level before we touch the console object is much cheaper,
in terms of both memory and performance.

MozReview-Commit-ID: 19f0ggAda2J
2018-06-30 15:55:18 -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
Sam Foster
f704ec5021 Bug 1463608 - Expose FormAutofill computeFields methods, use them for temporary records in payments. r=MattN
* Test helpers for cards
* Refactor the test_add_link test to test in private & non-private window

MozReview-Commit-ID: AeVJOkSwQps
2018-05-30 16:56:25 -07:00
Mark Banner
9af64d461a Bug 1456762 - Remove now unnecessary import-globals-from statements in html files. r=mossop
Depends on D1643

MozReview-Commit-ID: 84M50HDg0wl

Differential Revision: https://phabricator.services.mozilla.com/D1644
2018-06-16 08:21:33 +00:00
Matthew Noorenberghe
4dd71f263a Bug 1466720 - Don't reload l10n.js in the PaymentRequest scope on a refresh. r=sfoster
There was an error trying to redefine variables from l10n.js via loadSubScript. We really only need
it loaded once like a frame script but I had to fix the l10n.js code to handle this properly.

MozReview-Commit-ID: EbNrEaRQJbs
2018-06-11 00:03:47 -07:00
Joel Maher
d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Jared Wein
b0fc9890f1 Bug 1461477 - Create a CreditCard.jsm to consolidate various credit card handling and validation. r=MattN
MozReview-Commit-ID: 3tJdzU3hBvY
2018-05-15 12:41:35 -04:00
Csoregi Natalia
6a9464cac1 Backed out changeset 9b26de736798 (bug 1461477) for multiple CreditCards failures e.g. browser_manageCreditCardsDialog.js . CLOSED TREE 2018-06-01 21:04:39 +03:00
Jared Wein
d7d5af6823 Bug 1461477 - Create a CreditCard.jsm to consolidate various credit card handling and validation. r=MattN
MozReview-Commit-ID: 3tJdzU3hBvY
2018-05-15 12:41:35 -04:00
Mike Conley
c81a6533b0 Bug 1464405 - Register FormAutofill resource URIs before checking if the feature should be enabled. r=MattN
MozReview-Commit-ID: JU93hA0NBgL
2018-05-28 09:50:21 -07:00
Mark Banner
bf9c126d42 Bug 1465385 - Enable ESLint rule require-expected-throws-or-rejects for browser/. r=MattN
MozReview-Commit-ID: GoVFNM7CFDu
2018-05-30 11:50:45 +01:00
Boris Zbarsky
4cf86a74eb Bug 1455676 part 16. Mostly stop using nsIDOMNode in browser/. r=mossop 2018-05-29 22:58:50 -04:00
Mark Hammond
1784f6874b Bug 1463956 - allow Sync to remove all address and credit-card records. r=kitcambridge,MattN
MozReview-Commit-ID: KSeJJfAGmRh
2018-05-24 12:36:37 +10:00
Jared Wein
33bb7942c7 Bug 1429180 - Option to use a new billing address when adding a new payment method. r=MattN
MozReview-Commit-ID: 5LrpUw1LdT3
2018-05-10 15:12:01 -04:00
Matthew Noorenberghe
b8fd767583 Bug 1463292 - Use form autofill's l10n.js in the PaymentRequest dialog. r=sfoster
MozReview-Commit-ID: GUX3Gia293X
2018-05-22 10:37:54 -07:00
Raul Gurzau
e678aec2ff Bug 1456284 - Disable browser_insecure_form.js for frequent failures. r=gbrown 2018-05-07 20:21:00 -04:00
Bogdan Tara
88cac28ccf Backed out changeset 5dbd8eafc7fd (bug 1456284) for BC failures CLOSED TREE 2018-05-08 20:35:14 +03:00
Raul Gurzau
22004e99fb Bug 1456284 - Disable browser_insecure_form.js for frequent failures. r=jmaher 2018-05-07 20:21:00 -04:00
Adrian Wielgosik
65b770c17d Bug 1418078 - Convert JS users of nsIDOMHTMLInputElement. r=bz
MozReview-Commit-ID: 55aIiNHS0xs
2018-04-18 22:29:50 +02:00
Kris Maglione
fd7e9e6a69 Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Csoregi Natalia
2759e05237 Merge inbound to mozilla-central. a=merge 2018-04-28 00:53:15 +03:00
Bogdan Tara
664e3f43b7 Bug 1426981 - Disable test browser_update_doorhanger.js on all platforms. r=jmaher 2018-04-26 08:37:00 +03:00
mbkupfer
b8ddb8b349 Bug 1434480 - added highlighting support via spotlightURL additions to updateAddress and updateCreditCard r=MattN
MozReview-Commit-ID: DcQ3DXgKjJ0
2018-04-26 15:06:20 -07:00
Matthew Noorenberghe
f7efc04473 Bug 1456148 - Set supportedCountries for test_address_level_1_submission.html so it works on non-Nightly. r=MattN
MozReview-Commit-ID: AEKee22mbLS
2018-04-26 22:07:19 -07:00
Kartikaya Gupta
04b046d71c Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
MozReview-Commit-ID: 5VIHjwx6A2j
2018-04-25 11:29:07 -04:00
Kris Maglione
b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Matthew Noorenberghe
39fbc8f183 Bug 1433876 - Follow-up eslint fix to handle Bug 1454813 rename of SpawnTask.js. r=MattN
MozReview-Commit-ID: 1MI5566qmUF
2018-04-22 17:16:08 -07:00
Matthew Noorenberghe
272900240e Bug 1433876 - Wrap earlyformsubmit observer in try…catch to ensure autofill never stops form submission. r=johannh
MozReview-Commit-ID: PO0p8wd9Jw
2018-02-07 22:26:15 -08:00
Matthew Noorenberghe
bd4a31ed60 Bug 1433876 - Don't assume countries have sub_keys in FormAutofillUtils. r=johannh
MozReview-Commit-ID: DDgvSqB8fKq
2018-02-07 22:22:53 -08:00
Matthew Noorenberghe
5e398c7259 Bug 1433876 - Test form submission with autofill in country without sub_keys. r=johannh
MozReview-Commit-ID: En5MlYkgXR1
2018-04-22 15:48:07 -07:00
Matthew Noorenberghe
2118ee291f Bug 1426981 - Fix formautofill expectPopupOpen helper to wait until there are autocomplete items. r=MattN
Also fix the originaltype for the insecure warning.

MozReview-Commit-ID: GvP4woVGZWu
2018-04-22 15:03:10 -07:00
Kris Maglione
50ba4a9716 Bug 1454202: Part 5a - Remove callback-based variants of most AddonManager APIs. r=aswan
MozReview-Commit-ID: BrUH8Gyx8kx
2018-04-21 15:15:10 -07:00
Gurzau Raul
c7c6b3bba2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 12:15:48 +03:00
Cosmin Sabou
3defe315fd Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-20 01:38:32 +03:00
Kris Maglione
59b2dd801c Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH
2018-04-18 11:43:45 -07:00
mbkupfer
f496b3c400 Bug 1455087 - Support deleting autofill records with the delete key. r=MattN
MozReview-Commit-ID: FiqauWe5oDh
2018-04-19 13:06:59 -07:00
Mike de Boer
15e60d9e71 Bug 1034036 - Part 2: Rename and shorten getMostRecentBrowserWindow to getTopWindow and modernize the style used in BrowserWindowTracker.jsm. r=dao
MozReview-Commit-ID: EvgAhq4uR3a
2018-04-11 12:05:59 +02:00
Mike de Boer
2271d50b55 Bug 1034036 - Part 1: Merge RecentWindow.jsm and UpdateTopLevelContentWindowIDHelper.jsm into one module called 'BrowserWindowTracker.jsm'. r=dao
MozReview-Commit-ID: 9qzq1aGvjDu
2018-04-11 12:05:56 +02: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
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
Zibi Braniecki
ef4ccfd0e0 Bug 1449505 - Migrate FormAutofill to use mozIntl.getLocaleDisplayNames. r=MattN
MozReview-Commit-ID: FuQnIB2Tp5I
2018-04-01 15:18:25 +02:00
Andreea Pavel
77554651f5 Backed out 9 changesets (bug 1449505) for failing xpcshell at browser/extensions/formautofill/test/unit/test_addressRecords.js on a CLOSED TREE
Backed out changeset e96c92f80c09 (bug 1449505)
Backed out changeset 760e4d29af7e (bug 1449505)
Backed out changeset e82c5152cc17 (bug 1449505)
Backed out changeset 07143ec143ae (bug 1449505)
Backed out changeset 75a7dee8e060 (bug 1449505)
Backed out changeset a58126ed4b3f (bug 1449505)
Backed out changeset f0b4429eedff (bug 1449505)
Backed out changeset 4bf3befa991d (bug 1449505)
Backed out changeset 398d8addfbd8 (bug 1449505)
2018-04-11 10:07:42 +03:00
Phil Ringnalda
96d0e7b9fb Bug 1449505 followup, placate eslint on a CLOSED TREE 2018-04-10 23:10:46 -07:00
Zibi Braniecki
db5667f35c Bug 1449505 - Migrate FormAutofill to use mozIntl.getLocaleDisplayNames. r=MattN
MozReview-Commit-ID: FuQnIB2Tp5I
2018-04-01 15:18:25 +02: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