Граф коммитов

138 Коммитов

Автор SHA1 Сообщение Дата
Henri Sivonen 2eb6c4eda3 Bug 1436903 - Avoid passing shipping options to the front end when shipping was not requested. r=baku
MozReview-Commit-ID: FdkC02izUy6

--HG--
extra : rebase_source : 4434a148379e33771950848c6cdf1350e33eb23b
2018-03-07 13:16:46 +02:00
Sam Foster 44fa24847e 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

--HG--
extra : rebase_source : dd90a3c5fbeb72431101ba5485f5bf232b6b9b57
2018-03-06 14:00:05 -08:00
Sam Foster 6243b726c9 Bug 1440499 - Add debug options for the payer details and shipping requested. r=MattN
MozReview-Commit-ID: FnKn639SvzR

--HG--
extra : rebase_source : 6ee03f8312933e85d72f4b32ceab1813e64a492e
2018-03-01 11:46:30 -08:00
Csoregi Natalia 568d0a2e27 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 02f6d030f8 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

--HG--
extra : rebase_source : 76ef3a8994d4557fe528cedcdeb09ac91504fe3e
2018-03-06 14:00:05 -08:00
Sam Foster bbb3a2b2a1 Bug 1440499 - Add debug options for the payer details and shipping requested. r=MattN
MozReview-Commit-ID: FnKn639SvzR

--HG--
extra : rebase_source : 02b64c921eacda7c24e1c2bc33c66d05b21cf267
2018-03-01 11:46:30 -08:00
Cosmin Sabou e8d8680af8 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 1944da9fb8 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

--HG--
extra : rebase_source : 2d69269b895a1703a1b3ed2886ac033ddce9ce12
2018-02-28 14:57:54 -05:00
Jared Wein 4048008548 Bug 1429213 - Implement the 'unknown' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: KHf0NtE2Kir

--HG--
extra : rebase_source : 14cf73f1a0ac94a8828fbf7f30b2953eb2e2606f
2018-03-02 15:57:36 -05:00
Henri Sivonen 7ee74f6891 Bug 1443732 - Document that e10s is required for Web Payments. r=MattN.
MozReview-Commit-ID: LaXHOm15mxi

--HG--
extra : rebase_source : f641fcd8e20383b89fd62abe1b567133dba3db82
2018-03-07 10:09:02 +02:00
Daniel Marshall d337129b4a Bug 1434483 - Renamed profileStorage singleton to formAutofillStorage to make it more clear; r=MattN
MozReview-Commit-ID: CaPYBGLfs5I

--HG--
extra : rebase_source : ea59d03458c0e253201fd2c1476062dfb2e9a3d6
2018-02-10 21:23:19 +00:00
Mark Banner 0722fe3ee3 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

--HG--
extra : rebase_source : 0705e96256baf6dc82811297058aa1d820b2f119
2018-03-06 12:01:59 +00:00
Narcis Beleuzu 34b2bf4c13 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 57b922d77c Bug 1434483 - Renamed profileStorage singleton to formAutofillStorage to make it more clear; r=MattN
MozReview-Commit-ID: CaPYBGLfs5I

--HG--
extra : rebase_source : 379bd1db1e50ae415806713878e6b3ef36889e89
2018-02-10 21:23:19 +00:00
Jonathan Guillotte-Blouin 276b298491 Bug 1442757 - use `sendMessageToContent` helper. r=MattN
MozReview-Commit-ID: Ir3PUTopIJo

--HG--
extra : rebase_source : 6d0283041f0abf00161bb807ab66866a9c191cd6
2018-03-02 18:10:46 -05:00
Sam Foster 313990638b Bug 1442724 - Use keydown to trigger display of payments debugging panel. r=MattN
MozReview-Commit-ID: 3OHrEqEU4XW

--HG--
extra : rebase_source : 5fa22b9a9dc6183d10c7b9ce58c072f49c5ebbd9
2018-03-02 11:08:15 -08:00
Jared Wein 9562852f2a Bug 1429207 - Implement the 'failure' screen for when the merchant rejects the payment. r=MattN
MozReview-Commit-ID: JfsMQ8EwhqW

--HG--
extra : rebase_source : 573c8e5188590acbf70b2cf20ecd86bf9071b9c5
2018-02-27 22:09:34 -05:00
Jared Wein deed36a2a8 Bug 1429211 - Implement the 'success' screen for when the merchant accepts the payment. r=MattN
MozReview-Commit-ID: 5AAKzKMqXVx

--HG--
extra : rebase_source : 6d48515288ae7652a8edec830ac66e25d54e5c56
2018-02-27 21:07:45 -05:00
Matthew Noorenberghe ccd9384fd8 Bug 1441692 - Add error option to the PaymentRequest debug panel. r=jaws
MozReview-Commit-ID: 4lNi0B7tkyu

--HG--
extra : rebase_source : d2d08dec8d558b51130f6021c59a2d2147f780b2
2018-02-27 14:37:15 -08:00
Florian Quèze c714053d73 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 82172dd1f8 Bug 1440843 - Don't dispatch shipping*change events if requestShipping is false. r=jaws
MozReview-Commit-ID: 8HfO8UN0stE

--HG--
extra : rebase_source : 81acb71c73ecd4a82dc2a0b2d5511e31f52a9f1d
2018-02-26 22:03:26 -08:00
Mark Banner 6afe18b30a Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
MozReview-Commit-ID: HmliR8iNRDq

--HG--
extra : rebase_source : 483ae0b54b9e781cceac2accdfb2255d725ace6a
2018-02-22 16:55:36 +00:00
arthur.iakab aaec1f87f4 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 192a58c0d3 Bug 1440843 - Don't dispatch shipping*change events if requestShipping is false. r=jaws
MozReview-Commit-ID: Cu74O0Reu4L

--HG--
extra : rebase_source : 91034a98d3948182b3b5595f7e2e94fa68165f49
2018-02-24 11:11:16 -08:00
Florian Quèze 682b1ec3b2 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 bd28a8e71f 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

--HG--
extra : rebase_source : 77562d046633761757d77f92e6a741ec93cbcfef
2018-02-22 21:39:59 -08:00
Jared Wein fc281d6f31 Bug 1435105 - Vary the payment request address label according to 'shippingType'. r=mattn
MozReview-Commit-ID: 6HiraY6BbKb

--HG--
extra : rebase_source : 8e7109671efe4855b6d8284fbad4ca7de389cfdc
2018-02-22 21:36:03 -08:00
Jared Wein 463c214d3e Bug 1440530 - Move dialog setup code out to a helper function for the webpayments mochitest-browser tests. r=mattn
MozReview-Commit-ID: 9rpN1lIjOCG

--HG--
extra : rebase_source : bf7a29c5b313ee62a78bc7800114cf0a4b0923db
2018-02-22 17:24:59 -08:00
Jared Wein 66a1567f22 Bug 1429189 - Show shipping address errors on the summary screen. r=mattn
MozReview-Commit-ID: LaXrvWliWna

--HG--
extra : rebase_source : 6b0639a39a92192dc0c4cbc9392d97e16717adfc
2018-02-21 14:16:35 -08:00
Matthew Noorenberghe fd5b642032 Bug 1429205 - Implement the Payment Request processing screen. r=jaws
MozReview-Commit-ID: Kb4oRFV0SWA

--HG--
extra : rebase_source : 7135efee24c893b26a3e0173ea7eadfd00bb8914
2018-02-22 21:29:57 -08:00
Matthew Noorenberghe e5d396eaf8 Bug 1429205 - Add a sendMessageToContent helper for paymentDialogWrapper. r=jaws
MozReview-Commit-ID: FgeQaOR5yno

--HG--
extra : rebase_source : dedbab5e9374cde96a95a02aca5ae328a01902c8
2018-02-20 15:56:33 -08:00
Andreea Pavel 48cdc06b65 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
Matthew Noorenberghe 386a73d3da Bug 1429205 - Implement the Payment Request processing screen. r=jaws
MozReview-Commit-ID: 8MZAtjxRHEa

--HG--
extra : rebase_source : 7f54ff5308108cf9376e16fd44da58525cd7cd34
2018-02-22 15:19:52 -08:00
Matthew Noorenberghe b61dd79b68 Bug 1429205 - Add a sendMessageToContent helper for paymentDialogWrapper. r=jaws
MozReview-Commit-ID: FgeQaOR5yno

--HG--
extra : rebase_source : dedbab5e9374cde96a95a02aca5ae328a01902c8
2018-02-20 15:56:33 -08:00
Jared Wein 98ca15a50f Bug 1435101 - Wrap some lines to under 100 characters to make eslint happy. r=MattN
MozReview-Commit-ID: 4gzdA7C5krr

--HG--
extra : rebase_source : 55946d08d1d89a8f4b7e44a4ace19d24c2528d79
2018-02-21 14:41:57 -08:00
Jared Wein 26f0f6542b Bug 1435101 - Only show the shipping options and shipping address if requestShipping is true. r=MattN
MozReview-Commit-ID: 4PiQyHr3pDr

--HG--
extra : rebase_source : 4d6c80e3a9f45c2565c8e4e4c4fa27390ed9ee2d
2018-02-21 11:21:29 -08:00
Jared Wein 03071c21a3 Bug 1434415 - Move all hard-coded PaymentRequest strings to localization files. r=MattN
MozReview-Commit-ID: 4dhHxaDjqgM

--HG--
extra : rebase_source : 442806cf79406d192401ff41ec299c75df4fe000
2018-02-15 16:12:04 -05:00
Jared Wein 04d2dfc8fc Bug 1427947 - Dispatch `shippingoptionchange` when the shipping option is changed. r=MattN
MozReview-Commit-ID: J8U7ln90XnZ

--HG--
extra : rebase_source : e04267840eb59b945a297e4338b8ac8bfe1e29e1
2018-02-15 15:03:40 -05:00
Jared Wein 0c0511ae8e Bug 1437879 - Set the currency-amount properties as attributes on the shipping-option so they get copied to the cloned option. r=MattN
MozReview-Commit-ID: 9rngciIXPkX

--HG--
extra : rebase_source : 823e9fb2a8df089142cdcc774f9ae8839454ccfd
2018-02-13 10:24:25 -05:00
Jared Wein 8072ad5aa6 Bug 1427945 - Implement a Payment Request Shipping Option Picker. r=MattN
MozReview-Commit-ID: H7jWR0um0Py

--HG--
extra : rebase_source : a5667f31b3724af94bd6dc64b2db874e2cdbe684
2018-02-06 11:37:34 -05:00
Sam Foster a7a22e51dd Bug 1434508 - better serialization of paymentrequest data. r=MattN
* Add a serializeRequest method to paymentDialogWrapper to correctly serialize the nsIArray values
* Test results of serializing a request with multiple displayItems, shippingOptions, paymentMethods and modifiers

MozReview-Commit-ID: DTqzTAjvdxq

--HG--
extra : rebase_source : 5bdc3ca1bfec8d524348ca12fcfe4f95508329cc
2018-01-31 16:19:49 -08:00
Matthew Noorenberghe 539e72e039 Bug 1429195 - Send the selected payment card to the wrapper and DOM. r=jaws
MozReview-Commit-ID: 8SqXrnvenGB

--HG--
extra : rebase_source : 17a759cf1cd416c070d35ab5a219b0259c59c0dc
2018-02-08 13:23:23 -08:00
Matthew Noorenberghe 3f189b2195 Bug 1429195 - Implement and use a <payment-method-picker> custom element. r=jaws
MozReview-Commit-ID: 9Ag7debD4IB

--HG--
rename : toolkit/components/payments/test/mochitest/test_address_picker.html => toolkit/components/payments/test/mochitest/test_payment_method_picker.html
extra : rebase_source : 6b652b070213f3c2a8315f3fe81bf7a2b52418a0
2018-02-07 16:11:11 -08:00
Matthew Noorenberghe 905362e39e Bug 1429195 - Rename basic-card-option attribute names to match autofill storage. r=jaws
MozReview-Commit-ID: DFan7RJ6j8R

--HG--
extra : rebase_source : 44f0f906b3feb0ce6ebfe299f58fe75ce981490d
2018-02-06 17:10:58 -08:00
Matthew Noorenberghe 87be57dd0f Bug 1429195 - Add debugging buttons to modify credit card state for payment request. r=jaws
MozReview-Commit-ID: Lg6wMft3njy

--HG--
extra : rebase_source : 796347ea5719f6c7ce14af42de62501e1f25b834
2018-02-06 16:59:44 -08:00
Andrew McCreight 5dec0e0beb 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

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Sam Foster 89d5784a08 Bug 1435316 - Add container component stylesheets to the manifest for payments. r=MattN
MozReview-Commit-ID: 42QuwNmO9tC

--HG--
extra : rebase_source : 500b72d7802d5827384cc5957dfa760993cabe78
2018-02-02 09:46:11 -08:00
Jared Wein 9e5f9ec900 Bug 1434443 - Send the shippingAddress back to the webpage as part of the PaymentResponse. r=MattN
MozReview-Commit-ID: 4K8XpxkgdqB

--HG--
extra : rebase_source : 659e363c587e1387ad8e8e00f73943761546cf56
2018-01-31 16:17:15 -05:00
Matthew Noorenberghe 29551cf107 Bug 1434839 - Button to debug the remote payment frame. ?debug=1 to toggle the debug console. r=jaws
MozReview-Commit-ID: EVYExRDwtaX

--HG--
extra : rebase_source : a87983bd0f73924e00d22f8fe8f836ce18acaf67
2018-02-01 14:37:45 -08:00
Matthew Noorenberghe 2855dea48c Bug 1434839 - Rename 'PaymentRequest' variable to camelCase to reduce confusion with the standard API. r=jaws
Also export paymentRequest so it's accessible to debugging.js in the next commit

MozReview-Commit-ID: 9w6zaQZanfJ

--HG--
extra : rebase_source : f1bd763033846833e6d93841f98e06c6f7260d38
2018-02-01 14:40:15 -08:00