Commit graph

265 commits

Author SHA1 Message Date
Sam Foster
b1cda8a12a Bug 1473662 - Save button should be labelled 'Next' when adding a new address or card. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D7209

--HG--
extra : moz-landing-system : lando
2018-09-28 20:00:03 +00:00
Sam Foster
b6ecb8ed07 Bug 1477102 - Toggle accepted cards list on add/edit cards. Add stub for using AppConstants.MOZILLA_OFFICIAL to fallback for non-branded builds. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D7025

--HG--
extra : moz-landing-system : lando
2018-09-28 16:53:37 +00:00
Matthew Noorenberghe
05d5fb0939 Bug 1490805 - Add a required CSC/CVV field to the add card page. r=jaws
Depends on D6882

Differential Revision: https://phabricator.services.mozilla.com/D6883

--HG--
extra : moz-landing-system : lando
2018-09-27 17:26:24 +00:00
Matthew Noorenberghe
697601c954 Bug 1490805 - Include temporary basic cards in validity check for supportedNetworks. r=sfoster
Depends on D6848

Differential Revision: https://phabricator.services.mozilla.com/D6882

--HG--
extra : moz-landing-system : lando
2018-09-27 05:57:40 +00:00
Matthew Noorenberghe
e2db9b25d4 Bug 1490805 - Make the CVV field required on the payment-summary screen. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D6848

--HG--
extra : moz-landing-system : lando
2018-09-27 05:40:35 +00:00
Ciure Andrei
6760739b90 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-26 00:53:40 +03:00
Matthew Noorenberghe
4aaa87fe69 Bug 1432939 - Link to Firefox Options/Preferences from the PaymentRequest dialog. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D6724

--HG--
extra : moz-landing-system : lando
2018-09-25 17:26:38 +00:00
Matthew Noorenberghe
c0ceefaae4 Bug 1493349 - Disable intermittent test_basic_card_form.html on debug/ASAN builds. r=test-only
--HG--
extra : rebase_source : 90307c972009b8f8e3b582d28171e08b025646e4
2018-09-25 12:35:08 -07:00
Matthew Noorenberghe
29b31e0d41 Bug 1493216 - Disable intermittent test_address_option.html on Windows. r=test-only
--HG--
extra : rebase_source : ca2b85a6ea212b3174409656e7e286351484c22f
2018-09-25 12:34:12 -07:00
Margareta Eliza Balazs
ffe6eaf2f0 Merge inbound to mozilla-central. a=merge 2018-09-25 12:42:09 +03:00
Christoph Kerschbaumer
2939431b83 Bug 1490874: Update tests to comply with new script error logging mechanism. r=MattN 2018-09-25 07:52:30 +02:00
Matthew Noorenberghe
5ba6f9aa93 Bug 1480717 - Fix credit card form billing address and persist checkbox layout. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D4175

--HG--
extra : moz-landing-system : lando
2018-09-24 19:51:39 +00:00
Jared Wein
416ff8c392 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

--HG--
extra : amend_source : c6810478b747cf51aaaafa73f83682cb23711231
2018-09-23 23:50:03 -07:00
shindli
0b6d93ef4d Backed out changeset 510e95767aeb (bug 1490874) for security failures in browser/components/payments/test/mochitest/test_basic_card_form.html CLOSED TREE 2018-09-24 11:43:30 +03:00
Christoph Kerschbaumer
0df81cd9f4 Bug 1490874: Log Principal based Security Errors to the Security pane in the console. r=smaug 2018-09-24 09:34:04 +02:00
Matthew Noorenberghe
e5d7b01cde Bug 1493157 - requestLongerTimeout(2) on browser_card_edit.js. r=trivial
--HG--
extra : rebase_source : 01f4d1e6108d41dd2c9bb7e0955ca0279eae8e14
2018-09-21 08:42:50 -07:00
Jared Wein
cca9a56686 Bug 1490077 - Reflect DOM validation messages on the error popup on the address and basic-card form. r=MattN
Contributions by Matthew Noorenberghe <mozilla@noorenberghe.ca>

Differential Revision: https://phabricator.services.mozilla.com/D6420

--HG--
extra : rebase_source : eb6ef8494e76e1ceef14cd8b9214fa6d1ba782b5
2018-09-21 00:15:56 -07:00
Noemi Erli
3185c676dd Backed out 2 changesets (bug 1490077) for failures in browser/components/payments/test/mochitest/test_address_option.html on a CLOSED TREE
Backed out changeset 9b038cd736cf (bug 1490077)
Backed out changeset 29f6f86fb9cd (bug 1490077)
2018-09-21 11:01:46 +03:00
Jared Wein
e4f770624b Bug 1490077 - Reflect DOM validation messages on the error popup on the address and basic-card form. r=MattN
Contributions by Matthew Noorenberghe <mozilla@noorenberghe.ca>

Differential Revision: https://phabricator.services.mozilla.com/D6420
2018-09-21 00:15:56 -07:00
Gurzau Raul
9c1ca9e6e7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-21 07:17:03 +03:00
Jared Wein
cf9b4c6cb0 Bug 1478880 - payments/test/browser/head.js: fillInCardForm reliability fixes. r=MattN
* Blur before focus to reset timer for filtering <select>
* Wait for field to get focus before sending keys to it.
* Compare unpadded strings

Differential Revision: https://phabricator.services.mozilla.com/D6338
2018-09-20 20:44:03 -07:00
Matthew Noorenberghe
7c5bfd941a Bug 1463545 - Use text-overflow:ellipsis; on <shipping-option>. r=sfoster
Depends on D5186

Differential Revision: https://phabricator.services.mozilla.com/D6332

--HG--
extra : moz-landing-system : lando
2018-09-20 21:07:28 +00:00
Matthew Noorenberghe
514f9fcc29 Bug 1463545 - Replace grid layout of <address-option> with a new two line design. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D5186

--HG--
extra : moz-landing-system : lando
2018-09-20 21:07:20 +00:00
Matthew Noorenberghe
b6c0f035ed Bug 1463545 - Update the <basic-card-option> layout to match the UI spec. r=sfoster
Depends on D6330

Differential Revision: https://phabricator.services.mozilla.com/D6331

--HG--
extra : moz-landing-system : lando
2018-09-20 21:07:18 +00:00
Matthew Noorenberghe
54b2c1a068 Bug 1463545 - Overlay the selected <rich-option> on top of the native <select>. r=sfoster
* We get the shared colours (including hover) and dropmarker.
* Makes it harder to regress the clickable area of the <rich-select> since the problem will be visible.
* Hides the text for the closed state of the <select> so the <rich-option> text can be presented.

Differential Revision: https://phabricator.services.mozilla.com/D6330

--HG--
extra : moz-landing-system : lando
2018-09-20 21:07:09 +00:00
Matthew Noorenberghe
027e6322f9 Bug 1463545 - Copy stylesheets from the payment dialog into mochitests. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D6233

--HG--
extra : moz-landing-system : lando
2018-09-20 21:07:07 +00:00
Jared Wein
d0800c709e Bug 1491791 - Update the Save button state after the 'change' event. r=MattN
The validity of the cc-number field is only updated to a failure state after the 'change' event in the EditCreditCard class, but there was no code within basic-card-form.js to update the Save button enabled state after the 'change' event had been handled by EditCreditCard.

Differential Revision: https://phabricator.services.mozilla.com/D6282

--HG--
extra : moz-landing-system : lando
2018-09-20 17:13:26 +00:00
Sam Foster
0f49c56e72 Bug 1491065 - Use 'Next' as label for the save buttons during onboarding. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D6318

--HG--
extra : moz-landing-system : lando
2018-09-19 22:10:50 +00:00
Sam Foster
ed3af174cd Bug 1470183 - Add 3rd suggestion to failure page directing users to merchant for more info. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D6322

--HG--
extra : moz-landing-system : lando
2018-09-19 20:57:26 +00:00
Matthew Noorenberghe
ef41380ad1 Bug 1429181 - Make test_payment_method_picker.html work with cc-type. r=sfoster
synthesizeKey requires the prefix of the label which would be whitespace without cc-type so add a cc-type

Depends on D6231

Differential Revision: https://phabricator.services.mozilla.com/D6232

--HG--
extra : moz-landing-system : lando
2018-09-19 17:06:47 +00:00
Matthew Noorenberghe
fc396c9967 Bug 1429181 - Fix test_payment_dialog_required_top_level_items.html with cc-type. r=sfoster
a) We have two names starting with the same prefix: "Mrs." which causes problem when typing on a <select> to filter, especially if the desired option is already selected.
b) The prefix of the payment method option would start with whitespace if cc-type is "".
c) There would be no state change for the shipping option picker when we're requesting to select the option that's already selected.

Depends on D6230

Differential Revision: https://phabricator.services.mozilla.com/D6231

--HG--
extra : moz-landing-system : lando
2018-09-19 17:12:18 +00:00
Matthew Noorenberghe
c0df8b4f7a Bug 1429181 - Fix PaymentTestUtil.DialogContentTasks.select* to work with repeated calls. r=sfoster
Also fix test_basic_card_form.html and browser_show_dialog.js

Differential Revision: https://phabricator.services.mozilla.com/D6230

--HG--
extra : moz-landing-system : lando
2018-09-19 17:05:09 +00:00
Sam Foster
de8e9161fa Bug 1429181 - Consider supportedNetworks when determining if payment method is valid. r=MattN
* A new accepted-cards element to represent the labeled list of card icons
* Add the accepted cards section to the summary and card add/edit page
* mochitest for the accepted-cards element
* Make cc-type a required field and validate it against the list of supported networks
* Add verification of the pay button disabling when card network is not supported

Depends on D5823

Differential Revision: https://phabricator.services.mozilla.com/D5824

--HG--
extra : moz-landing-system : lando
2018-09-19 18:15:11 +00:00
Bogdan Tara
726c5b5e54 Backed out changeset 7351a4c8d1a1 (bug 1429181) for multiple payment-related failures CLOSED TREE 2018-09-15 00:58:48 +03:00
Sam Foster
3b20596ca5 Bug 1429181 - Consider supportedNetworks when determining if payment method is valid. r=MattN
* A new accepted-cards element to represent the labeled list of card icons
* Add the accepted cards section to the summary and card add/edit page
* mochitest for the accepted-cards element
* Make cc-type a required field and validate it against the list of supported networks
* Add verification of the pay button disabling when card network is not supported

Depends on D5823

Differential Revision: https://phabricator.services.mozilla.com/D5824

--HG--
extra : moz-landing-system : lando
2018-09-14 20:28:41 +00:00
Sam Foster
a3ee1b5ad2 Bug 1429181 - Fix serialization of payment method data. r=MattN
* Includes a workaround to explicitly cloneInto the paymentMethods data when we create the PaymentRequest object in the content window in tests.

MozReview-Commit-ID: LFy0h3fIXXA

Differential Revision: https://phabricator.services.mozilla.com/D5823

--HG--
extra : moz-landing-system : lando
2018-09-14 20:24:08 +00:00
Jared Wein
ee03acf81a Bug 1489629 - Adjust the size of the error images, sizing and position of text, and add footer branding to the error pages. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D5320

--HG--
extra : moz-landing-system : lando
2018-09-10 18:16:55 +00:00
Jared Wein
aebbdcfa2c Bug 1482808 - Clear the field-specific merchant error invalid state when the field has been edited. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D5081

--HG--
extra : moz-landing-system : lando
2018-09-07 23:15:09 +00:00
Jared Wein
57e533640d Bug 1487395 - Update strings on error pages, as well as convert apostrophes to use 'smart-quotes'. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D5068

--HG--
extra : moz-landing-system : lando
2018-09-06 19:43:19 +00:00
Timothy Guan-tin Chien
4b8e9c3d4a Bug 1399367 - Remove MasterPassword.{encrypt|decrypt}Sync() methods r=MattN
This also makes various AutofillRecords methods async, with the exception of
remove() and removeAll().

Noted that I didn't implement any kind of "lock" for FormAutofillStorage --
please do not call these methods concurrently -- if you must please |await|
for the last call to resolve. This most likely would happen in tests, and
shouldn't happen in the real world, given that all user actions happen on
macrotasks, and probably not at the next tick, unless Quicksilver is a
Firefox user.

FormAutofillStorage can be improved if there are complex use cases for it.

Differential Revision: https://phabricator.services.mozilla.com/D4420

--HG--
extra : moz-landing-system : lando
2018-09-05 17:54:48 +00:00
Csoregi Natalia
0ee540d6b5 Backed out changeset 56aa054d4cc0 (bug 1399367) for browser/extensions/formautofill/test/unit/test_activeStatus.js failures. CLOSED TREE 2018-09-05 05:47:21 +03:00
Timothy Guan-tin Chien
a3d7d3c3d1 Bug 1399367 - Remove MasterPassword.{encrypt|decrypt}Sync() methods r=MattN
This also makes various AutofillRecords methods async, with the exception of
remove() and removeAll().

Noted that I didn't implement any kind of "lock" for FormAutofillStorage --
please do not call these methods concurrently -- if you must please |await|
for the last call to resolve. This most likely would happen in tests, and
shouldn't happen in the real world, given that all user actions happen on
macrotasks, and probably not at the next tick, unless Quicksilver is a
Firefox user.

FormAutofillStorage can be improved if there are complex use cases for it.

Differential Revision: https://phabricator.services.mozilla.com/D4420

--HG--
extra : moz-landing-system : lando
2018-09-05 00:32:57 +00:00
Ciure Andrei
d1376bd7ec Merge inbound to mozilla-central. a=merge 2018-09-01 01:40:48 +03:00
Jared Wein
8af0a33e7e Bug 1484721 - Update the save button disabled state after changing the country select dropdown in the address-form. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D4470

--HG--
extra : moz-landing-system : lando
2018-08-31 16:15:51 +00:00
Jared Wein
cd49c65e14 Bug 1480719 - Require credit card expiration month and year before saving credit cards. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D4485

--HG--
extra : moz-landing-system : lando
2018-08-31 16:36:34 +00:00
Marcos Cáceres
8128af9850 Bug 1485881 - Drop support for PaymentAddress.languageCode r=smaug
--HG--
extra : rebase_source : 6400765c8b669126c7a71f5094dd160b2b1a89ce
2018-08-27 16:30:00 +03:00
Sam Foster
2f87b0ad28 Bug 1477105 - Support cc-type as valid field for credit cards in form autofill. r=MattN
* Add cc-type as a valid field for credit card forms
* Add a select menu and new string for designating a card type in the add/edit form
* Enforce matching of cc-type to one of the list of supported network ids for Basic Card
* Expose the network ids list as CreditCard.SUPPORTED_TYPES
* Populate the cc-type options using a getCreditCardTypes util method passed into the EditCreditCard constructor

* Web Payment tests: verify cc-type picker is presented, populated as expected and selections received in the response

MozReview-Commit-ID: 9QyU1UwTRay

Differential Revision: https://phabricator.services.mozilla.com/D3830

--HG--
extra : rebase_source : 4ffffa97e845d727f1bfbcc88218992ed7d6c5a0
2018-08-28 15:59:57 -07:00
Kris Maglione
777cf09edd Bug 1486130: Fix reporting of unhandled DOMException rejection values. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D4264

--HG--
extra : rebase_source : 2722278238cccfb221b8deb2928d3fba43ac0ff3
2018-08-23 14:01:04 -07:00
Matthew Noorenberghe
487d770cc3 Bug 1485473 - Combine the borders of the name fields on the address form. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D4031

--HG--
extra : moz-landing-system : lando
2018-08-24 23:21:30 +00:00
Kris Maglione
80327d3561 Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729

--HG--
extra : rebase_source : e187b8e9a6b6db7ebc762adda5e489b25c7a7e43
extra : histedit_source : 868cb99d09954a51d6be321fcb516475ef70eb33
2018-08-18 19:27:33 -07:00
Margareta Eliza Balazs
4d0c09ec59 Backed out changeset 3fcc7597cd8d (bug 1429198) for ES lint failure in builds/worker/checkouts/gecko/browser/components/payments/res/paymentRequest.js. CLOSED TREE
--HG--
extra : amend_source : cd939d4dce261184414b49626d0ca916ac6c8a99
2018-12-18 15:50:33 +02:00
Diego Pino Garcia
9a04b4475e Bug 1429198 - Account for supportedNetworks in payment modifiers. r=MattN 2018-12-17 22:15:00 +02:00
Matthew Noorenberghe
0cf516ec70 Bug 1482220 - Listen for the autofill edit forms being appended for localization. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D3846

--HG--
extra : moz-landing-system : lando
2018-08-22 02:58:38 +00:00
prathiksha
c8c6fdba8f Bug 1475760 - Take address-fields into account for payer/contact picker dropdown labels. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D2831

--HG--
extra : rebase_source : 13304d7b7739ebb5a2b7d835ffaf088dc40afd17
2018-08-20 13:23:43 -07:00
Matthew Noorenberghe
e2d642ca25 Bug 1477100 - Scroll the country picker into view to fix browser_dropdowns.js. r=me
This new layout caused it to require scrolling to be clicked.

--HG--
extra : rebase_source : 3f1d5c54eefd3f56c5513ec2737a1883f31d91ee
2018-08-17 20:27:33 -07:00
Matthew Noorenberghe
cc5127203e Bug 1478029 - Follow-up to fix test_address_form.html default country. r=me 2018-08-17 17:40:04 -07:00
Matthew Noorenberghe
db94a77ef1 Bug 1478029 - Don't select a shipping option by default for the user. r=sfoster
Honour the .selected value provided by the merchant.

Differential Revision: https://phabricator.services.mozilla.com/D3668

--HG--
extra : rebase_source : a7ea701d875f3052dabad16ca90419f7f3f3849c
extra : amend_source : 1fe3c1ecff45d73761ae848d044911c27e1840ae
2018-08-17 17:03:29 -07:00
Jared Wein
066ed9e934 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

--HG--
extra : rebase_source : 4ca24b7b6833c3c1bcd4821ec127fe07c24b44d0
2018-08-17 16:25:46 -07:00
Matthew Noorenberghe
10c07d673d Bug 1483425 - Don't mark form fields as invalid/dirty on load in an 'add' form. r=sfoster
When editing an existing record, invalid fields should be indicated on load.

Differential Revision: https://phabricator.services.mozilla.com/D3397

MozReview-Commit-ID: CbrqEyCUoyC

--HG--
extra : rebase_source : f44dc1b66d0c37d2b301a6b5c33ddde9fa7181bf
2018-08-17 16:27:21 -07:00
Matthew Noorenberghe
e4b01ff640 Bug 1465673 - Disable browser_card_edit.js on linux debug builds. r=me
--HG--
extra : rebase_source : c6c5ced06a994179f1cbf16762e085e58e9e6f9e
2018-08-15 14:21:18 -07:00
Matthew Noorenberghe
a290cf90f3 Bug 1476345 - Only enable relevant fields in address forms and update tests. r=jaws
MozReview-Commit-ID: KuPMHrF6jaM

--HG--
extra : rebase_source : f37118ff94bcb90108712dcc2f6db3d0aa5c92ef
2018-08-15 12:19:55 -07:00
Matthew Noorenberghe
eb2bfba0ba Bug 1476345 - Disable the address form save button when the form is invalid. r=jaws
Tests for this are in the next commit (e.g. test_address_form.html) because this can't be tested properly due to existing tests not filling fields in ways that fire input/change events.

MozReview-Commit-ID: 62CckFP6Ou3

--HG--
extra : rebase_source : 02a73ae78f6102e139cdca31e64d6248dc8d5281
2018-08-15 12:07:55 -07:00
Matthew Noorenberghe
df3b18a123 Bug 1476345 - Fix console listener to not spew when .message doesn't exist. r=jaws
Sometimes .errorMessage exists without .message

MozReview-Commit-ID: D4zBJKxfJba

--HG--
extra : rebase_source : b665ab4c79a894462064662bbf8bcc49e320d7ce
2018-08-14 16:26:36 -07:00
Jared Wein
559a6cb6d4 Bug 1476348 - Show missing field validation errors on the summary page. r=MattN
MozReview-Commit-ID: 5dOzxWH0pWp

--HG--
extra : rebase_source : 1de025d22f01c5b293355b0fe0732543769bf761
2018-08-03 18:51:31 -04:00
Sam Foster
5b22b7f2ef Bug 1480023 - Ensure input event is handled in the correct order by waiting for EditAutofillForm constructor before adding BasicCardForm's input & change handlers. r=MattN
MozReview-Commit-ID: F9hzp54hZxX

--HG--
extra : rebase_source : 5c8e588bd931070f9925da1bc8543f6f52bdf84f
2018-08-02 17:46:56 -07:00
Jared Wein
b5298bb1f5 Bug 1477699 - Show a generic error message when a merchant-supplied error message isn't present. r=MattN
MozReview-Commit-ID: Dn4mnvzunVd

--HG--
extra : rebase_source : b606aa2717febdf7d014c5254bd28148ebfc64be
2018-07-31 15:09:58 -04:00
Bogdan Tara
f2cb75b28c Merge inbound to mozilla-central. a=merge 2018-08-03 13:16:27 +03:00
Jared Wein
9849e2000e Bug 1472278 - Localize the required form asterisk on the address-form, basic-card-form, and CVV entry field. r=MattN
MozReview-Commit-ID: 7VN1VY7QziT

--HG--
extra : rebase_source : b28017164a32758271059b0337e295ca4883f14b
2018-07-30 21:13:36 -04:00
prathiksha
0dd94f929f Bug 1463547 - Hide the edit link in the pickers when no options are selected. r=MattN
MozReview-Commit-ID: DcTcmV2v6N1

--HG--
extra : rebase_source : bcf49fc9159db8ad8a8cc38e7ce298af55c1b8cb
extra : amend_source : 3092cfd628b768952e3887f42165b167605b095b
2018-08-02 17:21:44 -04:00
Jared Wein
f9f97a19b6 Bug 1477114 - Add an asterisk to the required fields of the credit card form as well as the CVV placeholder. r=sfoster
MozReview-Commit-ID: 2zg5HOZVtxN

--HG--
extra : rebase_source : 88eff9da5e84abf8ee726ceb7fcf338ecc1f50ee
2018-07-30 17:52:24 -04:00
Brindusan Cristian
d0b636e70f Backed out changeset d402c7b803c6 (bug 1477114) as requested by jaws. 2018-08-02 23:18:53 +03:00
Jared Wein
66c08eb74d Bug 1477114 - Add an asterisk to the required fields of the credit card form as well as the CVV placeholder. r=sfoster
MozReview-Commit-ID: 2zg5HOZVtxN

--HG--
extra : rebase_source : e2ed448ec2e82a5c874e5186ee318773f3250c09
2018-07-30 17:52:24 -04:00
Sam Foster
30473eb88f Bug 1477106 - Use a pref to set default checkedness for "Save card to Firefox" and "Save address to Firefox" checkboxes. r=jaws
* Get default checkedness for the card persist checkbox from a new pref: dom.payments.defaults.saveCreditCard
* Get default checkedness for the address persist checkbox from a new pref: dom.payments.defaults.saveAddress
* Remember checked state from card page (only) so it doesnt change back when returning from add/edit address page
* Fix up card form tests to verify behavior in private/not-private windows, pref value, user opt-in for persisting the card
* Fix up address form tests to not conflate private/not-private windows with expected address persisting behaviour

MozReview-Commit-ID: GXMjqStlnlu

--HG--
extra : rebase_source : e267187766d221e4f865cb84065ea18231e7c012
2018-07-26 15:36:07 -07:00
Andreea Pavel
e3d83161a1 Backed out changeset d69e19bad6c1 (bug 1477106) for eslint failure at builds/worker/checkouts/gecko/browser/components/payments/content/paymentDialogFrameScript.js 2018-08-02 02:11:57 +03:00
Sam Foster
5275a24aca Bug 1477106 - Use a pref to set default checkedness for "Save card to Firefox" and "Save address to Firefox" checkboxes. r=jaws
* Get default checkedness for the card persist checkbox from a new pref: dom.payments.defaults.saveCreditCard
* Get default checkedness for the address persist checkbox from a new pref: dom.payments.defaults.saveAddress
* Remember checked state from card page (only) so it doesnt change back when returning from add/edit address page
* Fix up card form tests to verify behavior in private/not-private windows, pref value, user opt-in for persisting the card
* Fix up address form tests to not conflate private/not-private windows with expected address persisting behaviour

MozReview-Commit-ID: GXMjqStlnlu

--HG--
extra : rebase_source : eb5931bff4ba348503144139d3f7f625e0a4af91
2018-07-26 15:36:07 -07:00
Jared Wein
6ecd2e45dd Bug 1468153 - Update the edit strings (Add/Update) and the failure strings to use the hostname. r=sfoster
MozReview-Commit-ID: HcOMsP5zWBg

--HG--
rename : browser/components/payments/test/mochitest/test_labelled_checkbox.html => browser/components/payments/test/mochitest/test_completion_error_page.html
extra : rebase_source : a5e2ed74badabed047e707620f977081ae99247b
2018-07-30 14:22:52 -04:00
Sam Foster
417a086f25 Bug 1470584 - Send PAYMENT_REJECTED response if window is unexpectedly closed. r=MattN
* Use onWindowClose to spot closing windows associated with live payment requests and send a reject response
* Test to verify expected show() promise rejection behavior when closing the PR dialog

MozReview-Commit-ID: 2TJYN5NMrE6

--HG--
extra : rebase_source : 83cdfbe760f5df7e4786ac277e1ecabd3a4b08d8
2018-07-16 17:21:51 -07:00
Jared Wein
55494981b1 Bug 1475521 - Payments shouldn't be processed without selecting a shipping address. r=MattN
MozReview-Commit-ID: CXxqYB3iOy

--HG--
rename : browser/components/payments/test/mochitest/test_payment_dialog.html => browser/components/payments/test/mochitest/test_payment_dialog_required_top_level_items.html
extra : rebase_source : dfd5f1d345231acc6684453ed8b6564c5664790c
2018-07-27 12:03:46 -04:00
Matthew Noorenberghe
90bfe1f77f Bug 1478321 - Fix the 'TypeError: docShell is null' exception to the Payments console listener. r=sfoster
`errorMessage` only contains 'TypeError: docShell is null' whereas `message` contains the file path and line.

MozReview-Commit-ID: 7Tuqph1b3lV

--HG--
extra : rebase_source : fdf20be275adaac41f25ebeee67d142456f4da8b
2018-07-26 16:11:24 -07:00
Matthew Noorenberghe
b0560084b3 Bug 1476204 - Handle autofill record update state changes in the unpriv. PR forms. r=jaws
This is easier to understand as we don't have to round-trip the whole success and error states to the privileged wrapper which could potentially lead to stale state changes.
This is also much simpler for the basic-card-form as it doesn't need a lot of the complexity of the previous implementation.

* Move selectedStateKey from page to address-page since it doesn't apply to basic-card-page

MozReview-Commit-ID: B4kiZNWElGI

--HG--
extra : rebase_source : bcca13bbdc506961834e2e3cc078dad7d6ee7ca7
2018-07-25 12:37:51 -07:00
Matthew Noorenberghe
97013686ad Bug 1476204 - Implement the payment summary error bar. r=jaws
MozReview-Commit-ID: 3Rc9ljfMCW3

--HG--
extra : rebase_source : e80fd0a269f4565300e3923223a2ac483f4cf33e
2018-07-23 21:49:05 -07:00
Matthew Noorenberghe
84558567ed Bug 1476204 - Replace duplicate #error-text with .page-error. r=jaws
MozReview-Commit-ID: 2FOx9dpTpAs

--HG--
extra : rebase_source : 07cc1137c4f925a4f5554c2680c624d59da5fcd8
2018-07-23 20:34:40 -07:00
Matthew Noorenberghe
07463fbd62 Bug 1476204 - Check Luhn algorithm in the basic-card-form and in storage and disable save button when invalid. r=jaws
* Provide an cc-exp-year option to match cc-exp-month
* Make cc-number and cc-name required in the basic-card-form
* Disable the basic-card-page save button when the form is invalid.

MozReview-Commit-ID: LjzsnAKJp6R

--HG--
extra : rebase_source : 4dcbee371cd0e30b5823b803c4f4734f897ec786
2018-07-26 13:40:22 -07:00
prathiksha
5e20dc8929 Bug 1476571 - Auto-select selectedShippingAddress as billing address when it is not null. r=MattN
MozReview-Commit-ID: 8qPIbHn7cKk

--HG--
extra : rebase_source : 023450976a481767923700f8e2ec7deb3538f4f8
2018-07-24 15:50:54 -07:00
Cosmin Sabou
80a830bce7 Backed out 5 changesets (bug 1476204) for browser chrome failures on browser_editCreditCardDialog. CLOSED TREE
Backed out changeset 10f3d1014592 (bug 1476204)
Backed out changeset a88879ea32e8 (bug 1476204)
Backed out changeset 001f13f2dd21 (bug 1476204)
Backed out changeset f0f464e3c27c (bug 1476204)
Backed out changeset ed92000eca20 (bug 1476204)
2018-07-26 04:12:56 +03:00
Matthew Noorenberghe
46813c4815 Bug 1476204 - Handle autofill record update state changes in the unpriv. PR forms. r=jaws
This is easier to understand as we don't have to round-trip the whole success and error states to the privileged wrapper which could potentially lead to stale state changes.
This is also much simpler for the basic-card-form as it doesn't need a lot of the complexity of the previous implementation.

* Move selectedStateKey from page to address-page since it doesn't apply to basic-card-page

MozReview-Commit-ID: B4kiZNWElGI

--HG--
extra : rebase_source : 183a3bd44ed33566fccdc024eabdccef83554d50
2018-07-25 12:37:51 -07:00
Matthew Noorenberghe
ae5eb48179 Bug 1476204 - Implement the payment summary error bar. r=jaws
MozReview-Commit-ID: 3Rc9ljfMCW3

--HG--
extra : rebase_source : 0bb5a17967092d89f63f96c240ac78c0df671bce
2018-07-23 21:49:05 -07:00
Matthew Noorenberghe
6cad3245bb Bug 1476204 - Replace duplicate #error-text with .page-error. r=jaws
MozReview-Commit-ID: 2FOx9dpTpAs

--HG--
extra : rebase_source : 80eeed03264f000b97572fa03c1c322540cd554e
2018-07-23 20:34:40 -07:00
Matthew Noorenberghe
f5f3467e63 Bug 1476204 - Check Luhn algorithm in the basic-card-form and in storage and disable save button when invalid. r=jaws
* Provide an cc-exp-year option to match cc-exp-month
* Make cc-number and cc-name required in the basic-card-form
* Disable the basic-card-page save button when the form is invalid.

MozReview-Commit-ID: LjzsnAKJp6R

--HG--
extra : rebase_source : 467fa09ea07c0234e1839b6dfd7e53375c118104
2018-07-25 16:38:25 -07:00
Sebastian Hengst
bd900ee36a Merge mozilla-inbound to mozilla-central. a=merge 2018-07-25 17:16:53 +03:00
Matthew Noorenberghe
1671d3642c Bug 1463538 - Fix previously uncaught errors in PaymentReqest UI tests. r=jaws
MozReview-Commit-ID: JUu3ljLLDLO

--HG--
extra : rebase_source : c1f72bc856bba0760b1ee427327ef6e4c7ec806a
2018-07-23 11:38:47 -07:00
Matthew Noorenberghe
8be80047e1 Bug 1463538 - Fail PaymentRequest UI tests upon console errors. r=jaws
MozReview-Commit-ID: 2IzUaENZjfl

--HG--
extra : rebase_source : 3cce2b9a6ec32ba02c0fd60fa3c2c7ee1e6da0a5
2018-07-24 19:24:29 -07:00
Matthew Noorenberghe
791b509e81 Bug 1463538 - Make all <input> in the PaymentRequest debug panel live. r=sfoster
MozReview-Commit-ID: 4nutxHpmnlc

--HG--
extra : rebase_source : 5c4a431997b39bd34675ddf244e641af35a3c1ae
2018-07-23 20:01:19 -07:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Sam Foster
799c3f4923 Bug 1447777 - Add completion fail and timeout error pages. r=MattN
* A new CompletionErrorPage / completion-error-page element which represents the content of the completion error
* Leave the dialog open when complete() results in a 'fail' or 'timeout'.
* The 'done' button on the fail & timeout error page closes the dialog by sending a message up to the paymentDialogWrapper.
* Rewrite the pay button rendering logic to ensure it is disabled when it should be
* Retry handling and UI not addressed here. Will need a new bug when the DOM support has landed.
* Extend completeStatus support in debugging.html and group like actions to tidy up a bit

MozReview-Commit-ID: GDhJqrj14uT

* Add tests to verify that the dialog stays open when completion fails or times out
* Add tests to verify that complete() throws after the timeout
* Rework completeStatus mochitest for PaymentDialog

MozReview-Commit-ID: 4ZNVEYMp7h5

--HG--
extra : rebase_source : 1d8e691eb44e74156a956dff73e1359af2a6934a
2018-07-20 15:51:52 -07:00
Sam Foster
4fe42163ad Bug 1447777 - Move state.completionState to state.request.completeStatus. r=MattN
* Spot-fix order details test to clone request before modifying it

MozReview-Commit-ID: AXjI1veRSk9

--HG--
extra : rebase_source : ee12efc493c343b9f18cee2cb281a5fe6731731d
2018-07-19 19:45:58 -07:00
Cosmin Sabou
0d3874d7d6 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-21 00:42:01 +03:00
Sam Foster
1830053e3f Bug 1468644 - cc-numbers are always masked in dialog content; tests to verify this and card details in the payment response. r=jaws
MozReview-Commit-ID: 34MkjyRBth7

--HG--
extra : rebase_source : 04a75ec0d87d9458fab314fe42dddd798957cb61
2018-07-18 12:45:45 -07:00
prathiksha
cbf299a9dd Bug 1475080 - Clean up the pickers on the payment summary page to match the spec. r=MattN
MozReview-Commit-ID: FOyD7DkwjHk

--HG--
extra : rebase_source : 16790a4774df3e2bc34d9e6cd92405e9cd7b7a9e
2018-07-20 11:13:43 -07:00
Gurzau Raul
cd2f4fd65e Backed out 4 changesets (bug 1463538) for failing on /payments/test/browser/browser_payments_onboarding_wizard.js
Backed out changeset 1c945ede0071 (bug 1463538)
Backed out changeset 8ccd9f4b230d (bug 1463538)
Backed out changeset e078fb39875e (bug 1463538)
Backed out changeset 798bf0d7928c (bug 1463538)
2018-07-24 11:16:21 +03:00
Matthew Noorenberghe
a24d524daf Bug 1463538 - Fix previously uncaught errors in PaymentReqest UI tests. r=jaws
MozReview-Commit-ID: JUu3ljLLDLO

--HG--
extra : rebase_source : 421c9b1edc1d20a9498871e09c2e4437450609a1
2018-07-23 11:38:47 -07:00
Matthew Noorenberghe
f0ffcbc51a Bug 1463538 - Fail PaymentRequest UI tests upon console errors. r=jaws
MozReview-Commit-ID: 2IzUaENZjfl

--HG--
extra : rebase_source : 1cbd6a66fdb0ff1684d0d7e2515b31cb228b3340
2018-07-22 02:07:16 -07:00
Matthew Noorenberghe
cfe6725edf Bug 1463538 - Make all <input> in the PaymentRequest debug panel live. r=sfoster
MozReview-Commit-ID: 4nutxHpmnlc

--HG--
extra : rebase_source : 5c4a431997b39bd34675ddf244e641af35a3c1ae
2018-07-23 20:01:19 -07:00
prathiksha
a3ca5bfffb Bug 1463554 - Fix the tests that are broken due to change in the internal structure of rich-select.r=MattN
MozReview-Commit-ID: BTHw9JHZoud

--HG--
extra : rebase_source : 27269bf5ba521e14519968d792f99ce466e67299
2018-06-27 17:32:54 -07:00
Matthew Noorenberghe
798c0466a9 Bug 1469464 - Consistent PaymentRequest footer positioning with <payment-request-page>. r=sfoster
MozReview-Commit-ID: Oq06q6xF0e

--HG--
extra : rebase_source : 76ee5c4a8e23db6a24e755e09eff05cdf0ae9f52
2018-07-12 09:52:30 -07:00
Matthew Noorenberghe
915ebd8a24 Bug 1469464 - Display the currency code with the total. r=sfoster
MozReview-Commit-ID: JJIbFBAYC9U

--HG--
extra : rebase_source : fa9cf2891af0b01e26771117573efffa7f0c9688
2018-07-07 23:23:43 -07:00
Matthew Noorenberghe
0f22754c42 Bug 1469464 - Always hide View All, remove summary heading, add 'Pay to'. r=sfoster
MozReview-Commit-ID: 5XQNH97o65T

--HG--
extra : rebase_source : 2f958be4842ff19804a034764bb22b7ae5743005
2018-07-11 23:16:12 -07:00
Coroiu Cristina
6a139fd913 Backed out 6 changesets (bug 1469464) for browser-chrome failures at browser/base/content/test/static/browser_parsable_css.js on a CLOSED TREE
Backed out changeset f9d4885e8956 (bug 1469464)
Backed out changeset 59c418929764 (bug 1469464)
Backed out changeset 58c1a79fb661 (bug 1469464)
Backed out changeset 90654d5df81a (bug 1469464)
Backed out changeset 9453814beada (bug 1469464)
Backed out changeset 4b86bde79c91 (bug 1469464)
2018-07-12 10:52:02 +03:00
Matthew Noorenberghe
1d195abbe4 Bug 1469464 - Fix eslint missing semicolon in test_payment_dialog.html. r=MattN
MozReview-Commit-ID: 1X0Oj9AU2lo

--HG--
extra : rebase_source : de392b4a3102e867e67d988da4aa4e0bd0da2bd8
2018-07-11 23:52:13 -07:00
Matthew Noorenberghe
247c83fb67 Bug 1469464 - Consistent PaymentRequest footer positioning with <payment-request-page>. r=sfoster
MozReview-Commit-ID: Oq06q6xF0e

--HG--
extra : rebase_source : b27a8fb478be645dc434abb57b722340102771a3
2018-07-11 23:43:27 -07:00
Matthew Noorenberghe
4e41358d92 Bug 1469464 - Display the currency code with the total. r=sfoster
MozReview-Commit-ID: JJIbFBAYC9U

--HG--
extra : rebase_source : fa9cf2891af0b01e26771117573efffa7f0c9688
2018-07-07 23:23:43 -07:00
Matthew Noorenberghe
886274fc2d Bug 1469464 - Always hide View All, remove summary heading, add 'Pay to'. r=sfoster
MozReview-Commit-ID: 5XQNH97o65T

--HG--
extra : rebase_source : 2f958be4842ff19804a034764bb22b7ae5743005
2018-07-11 23:16:12 -07:00
Jared Wein
d8e5ec3940 Bug 1427961 - Put the asterisk next to required fields. r=MattN
MozReview-Commit-ID: 9KMFB9bS9hD

--HG--
extra : rebase_source : 1566cf92f691f8eaa7bc47fe2b38b0c9cb66dade
extra : source : 7f74d7629be432b0df984d6464a2ba44de27dede
2018-06-20 19:06:38 -04:00
Jared Wein
dbaa85bf42 Bug 1427961 - Regular expression validation for zip/postal codes. r=MattN
MozReview-Commit-ID: 208vx9SBcrq

--HG--
extra : rebase_source : 7f1eca0999bf561ab95968ad6382b2df283a87c2
extra : source : 94a1d54ae6fabdd25f80d276ca5d159a431b6052
2018-06-20 17:46:05 -04:00
Jared Wein
5da9edce44 Bug 1427961 - Basic shipping address validation for state/province and zip/postal code. r=MattN
MozReview-Commit-ID: DCjr13QxP5Z

--HG--
extra : rebase_source : d76056a6e73e5ffdd53006b4fac576dcfec000ba
extra : source : 497e432568558a5494f81300bcc3071978188d20
2018-06-07 17:02:42 -04:00
Sam Foster
458a39e2cd Bug 1471263 - Unbork and un-skip the test_show_field_specific_error_on_addresschange test. r=jaws,MattN
MozReview-Commit-ID: BNvWDBF5HDH

--HG--
extra : rebase_source : 17ddaa6da49d74fedd2412cc601f63ba2f2050e8
2018-06-26 16:56:20 -07:00
Sam Foster
4cf8d4350f 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

--HG--
extra : rebase_source : 6e8380826bcac87bc408ff75a6a398b5c4f6cafa
2018-05-30 16:56:25 -07:00
Sam Foster
fe4f526cc6 Bug 1463608 - Add test helpers for payment address and cards. r=jaws
* addSampleAddressesAndBasicCard now accepts arrays of addresses and card, but with no args defaults to its original behavior
* addAddressRecord and addCardRecord helpers
* New helpers for each step in the sequence of clicking through to add a new address

MozReview-Commit-ID: Dto5MSekJTV

--HG--
extra : rebase_source : be32c684dba62d051bb119a530437830e41bb128
2018-06-04 09:36:21 -07:00
prathiksha
0331e56e23 Bug 1435892 - Test that the back button is hidden if the basic card page is shown first during on-boarding. r=MattN
MozReview-Commit-ID: 4xl7QuGSnQd

--HG--
extra : rebase_source : 01bb800ac9e0a719f42d231a3125fd2ef7a51bcd
2018-06-19 16:31:31 -07:00
prathiksha
1eacab9475 Bug 1462461 - Show the back button in the basic card page during on-boarding.r=MattN
MozReview-Commit-ID: 1a8YtdbtV2M

--HG--
extra : rebase_source : ba02ca7b19dff1d500de1bf0b7f6cab494b1b3aa
2018-05-25 13:13:02 -07:00
Dorel Luca
2a805620a7 Backed out changeset d76b9bf7d97c (bug 1462461) for BC and TV failures on browser/components/payments/test/browser/browser_payments_onboarding_wizard.js 2018-06-20 03:18:52 +03:00
prathiksha
2286475971 Bug 1462461 - Show the back button in the basic card page during on-boarding. r=MattN
MozReview-Commit-ID: 7Vxgp2vkKKN

--HG--
extra : rebase_source : 826a5ffce59ca556a65faa080af13c3aa4f64ed3
2018-05-25 13:13:02 -07:00
Mark Banner
b30ac6aacd 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
Mark Banner
037b733636 Bug 1456762 - Add parsing of HTML files to ESLint to discover their script tags and the globals that are imported. r=mossop
MozReview-Commit-ID: 6jiEbZnyv6e

Differential Revision: https://phabricator.services.mozilla.com/D1643
2018-06-16 08:20:38 +00:00
Matthew Noorenberghe
630e6a5e49 Bug 1466720 - Default PaymentRequest dialog styles for background, <a>, and debugging.html. r=jaws
MozReview-Commit-ID: 5WFzbFFBvYj

--HG--
extra : rebase_source : 3b0a9acb3c6f4230b0f24b745c498e69d79080b4
2018-06-13 11:40:11 -07:00
Joel Maher
50b91c0a14 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
23f6d33e60 Bug 1461477 - Create a CreditCard.jsm to consolidate various credit card handling and validation. r=MattN
MozReview-Commit-ID: 3tJdzU3hBvY

--HG--
extra : rebase_source : bf79b4767ed40e792d1523bd262d527061a21a4c
2018-05-15 12:41:35 -04:00
Csoregi Natalia
f1eddfcf6a 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
2c05715cdd Bug 1461477 - Create a CreditCard.jsm to consolidate various credit card handling and validation. r=MattN
MozReview-Commit-ID: 3tJdzU3hBvY

--HG--
extra : rebase_source : 10f10ef89f2ee20ccd01fb94d230261df19985c6
2018-05-15 12:41:35 -04:00
prathiksha
5f702de150 Bug 1462779 - Auto-select appropriate addresses in select dropdowns in on-boarding forms. r=MattN
MozReview-Commit-ID: 5Lm3djwSeuG

--HG--
extra : rebase_source : 1d2ee6aab4d5ee276dadf7f563911cc5e6fd4070
2018-05-23 16:24:58 -07:00
prathiksha
b77efbe6b0 Bug 1462779 - Show the billing address page during on-boarding if requestShipping is false and there are no saved addresses. r=MattN
MozReview-Commit-ID: E7KM4cIielG

--HG--
extra : rebase_source : bb90ddd192b37e94dbf637a429d3dc0c38002a20
2018-05-18 16:44:25 -07:00
Sam Foster
2257b7f8ce Bug 1429260 - Add tests to verify handling of payment detail properties it is possible to updateWith. r=jaws
* Check update of displayItems, additionalDisplay items and total (via a modifier.)

MozReview-Commit-ID: B4L7Ev9yR2f

--HG--
extra : rebase_source : 98fb71b7a71f9f30106c78bd35b4f10ff8f179b6
2018-05-24 17:34:42 -07:00
Sam Foster
fa5a9396b8 Bug 1429260 - Refactor PTU.Details data to only include the expected properties. r=jaws
MozReview-Commit-ID: 29qBnnY61V9

--HG--
extra : rebase_source : 07aa25ed6cf375efbc4be968dd361c3e7662551e
2018-05-24 10:55:44 -07:00
Jared Wein
babf58dcb1 Bug 1427959 - Show field-specific shippingaddresschange errors on the add/edit screen. r=MattN
MozReview-Commit-ID: 1Bd2v9yy7iR

--HG--
extra : rebase_source : fd739d893d436ac2f9bab40fce17270b91e7b328
2018-05-14 11:32:46 -04:00
Jared Wein
32f92b34d5 Bug 1427959 - Clean up some tests WebPayments UI tests. r=MattN
- Remove getTextContent since it was too verbose and unneeded.
- Replace isElementVisible with content-available isVisible and isHidden since it is more convenient to check these within content tasks.
- Removed browser_request_summary.js test since what it was testing is now covered by many other tests.
- Added a checkPaymentMethodDetailsMatchesCard function to head.js to reduce duplication of card verification tests.
- Changed some tests to use pre-defined addresses and cards instead of supplying their own.

MozReview-Commit-ID: FLwDKFJQNUY

--HG--
extra : rebase_source : 98b3675e8187073948332ef12f9f2604c6f63e9f
2018-05-23 14:23:36 -04:00
arthur.iakab
3578cbcfac Backed out 3 changesets (bug 1427959) for failing browser-chrome tests on browser/components/payments/test/browser/browser_payments_onboarding_wizard.js
Backed out changeset afaba93c711b (bug 1427959)
Backed out changeset 6003ece89387 (bug 1427959)
Backed out changeset 5e0368784d17 (bug 1427959)
2018-05-25 23:30:37 +03:00
Jared Wein
6f80fa6241 Bug 1464102 - Uncomment the shippingOptions portion of browser_request_serialization now that todo_is is supported. r=MattN
MozReview-Commit-ID: GdOLGW2i4O1

--HG--
extra : rebase_source : f32fc407294779546aac7a8a5130ed600e5d2d73
2018-05-24 12:15:07 -04:00
Jared Wein
dc887e52b6 Bug 1427959 - Show field-specific shippingaddresschange errors on the add/edit screen. r=MattN
MozReview-Commit-ID: 1Bd2v9yy7iR

--HG--
extra : rebase_source : 1de0eb17a0b855a542473e85cb8bb8ca8691dc08
2018-05-14 11:32:46 -04:00
Jared Wein
1d5192df03 Bug 1427959 - Clean up some tests WebPayments UI tests. r=MattN
- Remove getTextContent since it was too verbose and unneeded.
- Replace isElementVisible with content-available isVisible and isHidden since it is more convenient to check these within content tasks.
- Removed browser_request_summary.js test since what it was testing is now covered by many other tests.
- Added a checkPaymentMethodDetailsMatchesCard function to head.js to reduce duplication of card verification tests.
- Changed some tests to use pre-defined addresses and cards instead of supplying their own.

MozReview-Commit-ID: FLwDKFJQNUY

--HG--
extra : rebase_source : cbf608ebcd872bb66d78be2b429dcb88ffedbf35
2018-05-23 14:23:36 -04:00
Mark Hammond
4270e4fe26 Bug 1463956 - allow Sync to remove all address and credit-card records. r=kitcambridge,MattN
MozReview-Commit-ID: KSeJJfAGmRh

--HG--
extra : rebase_source : c2cc973c94f352d20ca7d37952d91cb6c07aee2e
2018-05-24 12:36:37 +10:00
Narcis Beleuzu
d072e49483 Backed out 3 changesets (bug 1464102) for browser-chrome failures on siteData/browser_siteData.js. CLOSED TREE
Backed out changeset 460cd874757f (bug 1464102)
Backed out changeset 3c227d911b2f (bug 1464102)
Backed out changeset 43b864db2e34 (bug 1464102)
2018-05-25 01:42:37 +03:00
Jared Wein
d1bb5c2bf9 Bug 1464102 - Uncomment the shippingOptions portion of browser_request_serialization now that todo_is is supported. r=MattN
MozReview-Commit-ID: GdOLGW2i4O1

--HG--
extra : rebase_source : 0d4ce8b1a73f3da8554ad1d1b2d12c43ea702040
2018-05-24 12:15:07 -04:00
prathiksha
952d79d3f6 Bug 1461886 - Pass appropriate properties to the FTU onboarding address page. r=MattN
MozReview-Commit-ID: Fn8beZELyFG

--HG--
extra : rebase_source : a1c4aacb6109b2b63b4b61955a2d6b80fc8ffe1d
2018-05-17 17:41:25 -07:00
Jared Wein
3c2f74832e Bug 1429180 - Change selectedStateKey to an array that defines the path within the state object that should be updated. r=MattN
MozReview-Commit-ID: IjJfmUtvjdz

--HG--
extra : rebase_source : 9a866b4823885d326e53f6fda46a6005b5cf5e41
2018-05-21 22:05:47 -04:00
Jared Wein
d9f3ec17f2 Bug 1429180 - Option to use a new billing address when adding a new payment method. r=MattN
MozReview-Commit-ID: 5LrpUw1LdT3

--HG--
extra : rebase_source : a2266d92902800af60978011ccd34bdc7a06b7f5
2018-05-10 15:12:01 -04:00
Sam Foster
ec6b7b7e5e Bug 1427960 - Add temporary addresses to state, add toggle to enable saving/not new addresses. r=MattN
* Implement store in paymentDialogWrapper for temporary addresses & creditCards
* Add the persist checkbox to the add/edit address form. Defaults to unchecked when adding an address in a private session.
* The union of saved and temporary addresses can be retrieved from paymentRequest.getAddresses(). References to state.savedAddresses updated to use this when appropriate
* New tests for adding and editing addresses from a private window


MozReview-Commit-ID: KyD2BPNFYtZ

--HG--
extra : rebase_source : 28e17a2c018a684fab42b1321b739047b1522884
2018-04-26 15:05:10 -07:00
prathiksha
04a6dccd19 Bug 1432927 - Show a payment card input form before the summary view for users without a saved payment card. r=MattN
MozReview-Commit-ID: BmGG8OFzCjJ

--HG--
extra : rebase_source : a4aa901016429fdc6888686a0109a6b5264c64b4
2018-05-17 19:37:17 -07:00
Csoregi Natalia
01ce1b7c2e Backed out changeset 3aa4ee6077c5 (bug 1432927) for failing on payments/test/mochitest/test_basic_card_form.html. CLOSED TREE 2018-05-18 05:26:12 +03:00
prathiksha
fa75f058dc Bug 1432927 - Show a payment card input form before the summary view for users without a saved payment card. r=MattN
MozReview-Commit-ID: BmGG8OFzCjJ

--HG--
extra : rebase_source : fbbc595c97199cdb997fedf45ea75bf8a07bd358
2018-05-11 12:26:54 -07:00
Matthew Noorenberghe
08d188e41d Bug 1443735 - Don't select a PaymentRequest shipping address by default. r=sfoster
This is possibly a temporary solution to avoid sending the user's address to the merchant until they've interacted with the shipping address picker.

MozReview-Commit-ID: 5q8BYr1rLwP

--HG--
extra : rebase_source : e6c5ecee96acc4aaa25c2082b7d6a654bb82e135
2018-05-17 15:48:04 -07:00