Commit Graph

156 Commits

Author SHA1 Message Date
Matthew Noorenberghe
e7534fe294 Bug 1428472 - Default to the selected shipping address on the "add basic card" screen. r=jaws
MozReview-Commit-ID: Hx4AHqiTapn
2018-04-13 17:25:13 -07:00
Matthew Noorenberghe
09d5886015 Bug 1446179 - Update payments tests to use ES modules. r=jaws
MozReview-Commit-ID: 1cRK5xAEygF
2018-04-12 19:52:05 -07:00
Matthew Noorenberghe
75d3336aa1 Bug 1446179 - Use ES Modules for the unprivileged Payment Request dialog code. r=jaws
MozReview-Commit-ID: fGVBVX1F2Q
2018-04-12 19:52:42 -07:00
Matthew Noorenberghe
2a59ce2336 Bug 1432952 - Send the basic-card's billing address with the response. r=jaws
MozReview-Commit-ID: 9tquQ0C7D91
2018-04-10 18:52:13 -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
Sam Foster
93737c32a0 Bug 1427958 - Check modified dates when determining if the shipping address has changed. r=MattN
* Compare address timeLastModified as well as the selectedShippingAddress guid when handling new state
* Add tests to ensure editing or removing the selected address record correctly updates the UI

MozReview-Commit-ID: InQDP55Fs2
2018-03-28 15:54:20 -07:00
Masayuki Nakano
067fb7303a Bug 1451179 - Fix the relative path from toolkit/components/payments to browser/extensions/formautofill/content r=karlt 2018-04-04 16:33:45 +09: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
2ec11c65af Bug 1428414 - Removed cleared record attributes on card and address options. r=jaws
If a property gets cleared in autofill storage, that property is not defined on the object when retrieved which means it won't get updated.
Previously I thought that known fields were always returned and had a default value.

MozReview-Commit-ID: KnBrpFdOk8P
2018-03-22 23:01:32 -07:00
Matthew Noorenberghe
bb573fef78 Bug 1428414 - Use the autofill credit card form in the Payment dialog. r=jaws
MozReview-Commit-ID: 4BjUfETLv0X
2018-03-22 20:57:13 -07:00
Matthew Noorenberghe
b14faf1dd8 Bug 1428414 - Add a PaymentRequest local dev. server. r=jaws
MozReview-Commit-ID: 4MsdRuXIiLE
2018-03-20 00:05:42 -07:00
Sam Foster
bd65a65911 Bug 1444240 - Filter address options to eliminate dupes based on fields to display. r=MattN
* Add an observed attribute to address-picker to render when address-fields is changed
* Add a filter step to address-picker, to exclude addresses that represent duplicates given the requested fields
* Filter out addresses that do not contain one or more of the requested fields
* Use a default set of fields to establish duplicates and meet the bar for adding an address as an option

MozReview-Commit-ID: 7lg4suNHv60
2018-03-09 11:49:21 -08:00
Dave Townsend
baa5890074 Bug 1421070: Always enable custom elements in chrome. r=smaug, rs=MattN
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.

MozReview-Commit-ID: CMiLzmp60jA
2017-10-20 11:02:33 -07:00
Matthew Noorenberghe
12ab72b8a0 Bug 1444949 - Pref-controlled console logging for unprivileged code. r=sfoster
* Default log implementation for unprivileged content
* Export methods of a ConsoleAPI instance into the content frame to replace the default log
* Initialize the content logger when the "initializeRequest" message is received

MozReview-Commit-ID: 8hiaIqf2ChX
2018-03-19 21:57:13 -07:00
Jared Wein
6b4640b579 Bug 1429213 - Implement the 'unknown' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: KHf0NtE2Kir
2018-03-20 18:38:28 -04:00
Kris Maglione
9d5b9190a5 Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc
2018-03-07 19:31:28 -08:00
Jonathan Guillotte-Blouin
59b158faff Bug 1442078 - Modify UI tests that were broken by the change to the "show" specs. r=MattN
MozReview-Commit-ID: 3KlcOOgarkW
2018-03-08 23:15:41 -05:00
Kris Maglione
c52d401bb4 Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT
2018-03-14 14:35:05 -07:00
Henri Sivonen
4948805cd0 Bug 1436903 - Avoid passing shipping options to the front end when shipping was not requested. r=baku
MozReview-Commit-ID: FdkC02izUy6
2018-03-07 13:16:46 +02:00
Sam Foster
4660395f33 Bug 1440499 - Implement the payerName/payerEmail/payerPhone contact picker. r=MattN
* Based on original patch by MattN
* Make stored contacts available as payer data (MattN)
* Add the address-picker element to the dialog for selecting payer details from stored contacts (MattN)
* Add a field-names attribute to the payer address-picker, populated from the request paymentOptions
* Basic CSS to selectively render address fields
* Add mochitests to verify paymentOptions result in the correct payment picker behavior

MozReview-Commit-ID: Br8i5MVyeQ3
2018-03-06 14:00:05 -08:00
Sam Foster
1bba2779d4 Bug 1440499 - Add debug options for the payer details and shipping requested. r=MattN
MozReview-Commit-ID: FnKn639SvzR
2018-03-01 11:46:30 -08:00
Csoregi Natalia
0d80765e79 Backed out 2 changesets (bug 1440499) for ESlint failure on paymentDialogWrapper.js:53. CLOSED TREE
Backed out changeset 4e2e081dad55 (bug 1440499)
Backed out changeset 479b143d8828 (bug 1440499)
2018-03-09 02:46:15 +02:00
Sam Foster
27e6efd878 Bug 1440499 - Implement the payerName/payerEmail/payerPhone contact picker. r=MattN
* Based on original patch by MattN
* Make stored contacts available as payer data (MattN)
* Add the address-picker element to the dialog for selecting payer details from stored contacts (MattN)
* Add a field-names attribute to the payer address-picker, populated from the request paymentOptions
* Basic CSS to selectively render address fields
* Add mochitests to verify paymentOptions result in the correct payment picker behavior

MozReview-Commit-ID: Br8i5MVyeQ3
2018-03-06 14:00:05 -08:00
Sam Foster
bb0615f648 Bug 1440499 - Add debug options for the payer details and shipping requested. r=MattN
MozReview-Commit-ID: FnKn639SvzR
2018-03-01 11:46:30 -08:00
Cosmin Sabou
7e049a1cdd Backed out 2 changesets (bug 1429213) for mochitest browser chrome failures at browser_show_dialog.js on a CLOSED TREE
Backed out changeset 3f419c7dcf2a (bug 1429213)
Backed out changeset 752ad36df388 (bug 1429213)
2018-03-07 22:11:06 +02:00
Jared Wein
9b69abd2ad Bug 1429213 - Time out the payment dialog after the user clicks 'Pay', closing the dialog if response.complete() is not called. r=MattN
MozReview-Commit-ID: 8IswziomlHF
2018-02-28 14:57:54 -05:00
Jared Wein
0e07988c6a Bug 1429213 - Implement the 'unknown' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: KHf0NtE2Kir
2018-03-02 15:57:36 -05:00
Henri Sivonen
19063efdfe Bug 1443732 - Document that e10s is required for Web Payments. r=MattN.
MozReview-Commit-ID: LaXHOm15mxi
2018-03-07 10:09:02 +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
Mark Banner
29e56bce9b Bug 1434869 - Automatically mark EXPORTED_SYMBOLS as used, so that we don't need to ignore it in ESLint's no-unused-vars rule. r=florian.
MozReview-Commit-ID: IVMeZHGdVBk
2018-03-06 12:01:59 +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
Jonathan Guillotte-Blouin
e8cbdf3700 Bug 1442757 - use sendMessageToContent helper. r=MattN
MozReview-Commit-ID: Ir3PUTopIJo
2018-03-02 18:10:46 -05:00
Sam Foster
4c7ec640b0 Bug 1442724 - Use keydown to trigger display of payments debugging panel. r=MattN
MozReview-Commit-ID: 3OHrEqEU4XW
2018-03-02 11:08:15 -08:00
Jared Wein
9b697fce4c Bug 1429207 - Implement the 'failure' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: JfsMQ8EwhqW
2018-02-27 22:09:34 -05:00
Jared Wein
0d778b577d Bug 1429211 - Implement the 'success' screen for when the merchant accepts the payment. r=MattN
MozReview-Commit-ID: 5AAKzKMqXVx
2018-02-27 21:07:45 -05:00
Matthew Noorenberghe
bfff4c3159 Bug 1441692 - Add error option to the PaymentRequest debug panel. r=jaws
MozReview-Commit-ID: 4lNi0B7tkyu
2018-02-27 14:37:15 -08:00
Florian Quèze
f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Matthew Noorenberghe
237d8883c2 Bug 1440843 - Don't dispatch shipping*change events if requestShipping is false. r=jaws
MozReview-Commit-ID: 8HfO8UN0stE
2018-02-26 22:03:26 -08:00
Mark Banner
910da570a0 Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
MozReview-Commit-ID: HmliR8iNRDq
2018-02-22 16:55:36 +00:00
arthur.iakab
da4159b43e Backed out changeset 0ec115a54885 (bug 1440843) for failing browser chrome on toolkit/components/payments/test/browser/browser_change_shipping.js 2018-02-24 22:23:41 +02:00
Matthew Noorenberghe
7b37b2f420 Bug 1440843 - Don't dispatch shipping*change events if requestShipping is false. r=jaws
MozReview-Commit-ID: Cu74O0Reu4L
2018-02-24 11:11:16 -08:00
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Jared Wein
ec4d302993 Bug 1435105 - Rename 'shippingRequested' class to 'shipping-related' to make the name clearer as well as follow file conventions. r=mattn
MozReview-Commit-ID: 6Dgzt69fFFq
2018-02-22 21:39:59 -08:00
Jared Wein
866e108ca6 Bug 1435105 - Vary the payment request address label according to 'shippingType'. r=mattn
MozReview-Commit-ID: 6HiraY6BbKb
2018-02-22 21:36:03 -08:00
Jared Wein
04ea30531a Bug 1440530 - Move dialog setup code out to a helper function for the webpayments mochitest-browser tests. r=mattn
MozReview-Commit-ID: 9rpN1lIjOCG
2018-02-22 17:24:59 -08:00
Jared Wein
49ccd43f99 Bug 1429189 - Show shipping address errors on the summary screen. r=mattn
MozReview-Commit-ID: LaXrvWliWna
2018-02-21 14:16:35 -08:00
Matthew Noorenberghe
1aea57c147 Bug 1429205 - Implement the Payment Request processing screen. r=jaws
MozReview-Commit-ID: Kb4oRFV0SWA
2018-02-22 21:29:57 -08:00
Matthew Noorenberghe
4300aa53f3 Bug 1429205 - Add a sendMessageToContent helper for paymentDialogWrapper. r=jaws
MozReview-Commit-ID: FgeQaOR5yno
2018-02-20 15:56:33 -08:00
Andreea Pavel
fafc6c1b06 Backed out 2 changesets (bug 1429205) for failing toolkit/components/payments/test/mochitest/test_payment_dialog.html on a CLOSED TREE
Backed out changeset 3f8c4cb7982f (bug 1429205)
Backed out changeset ced4c7041d8e (bug 1429205)
2018-02-23 02:45:53 +02:00