Open
Bug 1494917
Opened 6 years ago
Updated 2 years ago
PaymentResponse.retry({}) and PaymentResponse.retry() should not return AbortError.
Categories
(Core :: DOM: Web Payments, enhancement, P3)
Core
DOM: Web Payments
Tracking
()
NEW
People
(Reporter: edenchuang, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [webpayments-reserve])
Attachments
(2 files, 2 obsolete files)
4.14 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
11.17 KB,
patch
|
edenchuang
:
review+
|
Details | Diff | Splinter Review |
In current implmentation. PaymentResponse.retry({}) and PaymentResponse.retry() return a rejected promise with AbortError. This is because no errors retry might be a not good UX for user. However, UX team has a perfect solution for it. I am going to remove these code, and let PaymentResponse() and PaymentResponse({}) can be handled by UI component.
Reporter | ||
Updated•6 years ago
|
Assignee: nobody → echuang
Priority: -- → P2
Updated•6 years ago
|
Status: NEW → ASSIGNED
Flags: qe-verify?
Priority: P2 → P1
Whiteboard: [webpayments-reserve]
Reporter | ||
Comment 1•6 years ago
|
||
Attachment #9015206 -
Flags: review?(amarchesini)
Comment 2•6 years ago
|
||
Please don't merge this yet. It's come up for discussion at the W3C and we've not concluded what to do yet.
Comment 3•6 years ago
|
||
Related spec issues: https://github.com/w3c/payment-request/issues/792 And: https://github.com/w3c/payment-request/issues/793
Reporter | ||
Comment 4•6 years ago
|
||
Marcos, Is any updates on the spec discussion?
Flags: needinfo?(mcaceres)
Comment 5•6 years ago
|
||
Yes, but I've not had time to update the spec - sorry :( I'll make this top priority once I'm back from TPAC (in a week).
Flags: needinfo?(mcaceres)
Updated•6 years ago
|
Attachment #9015206 -
Flags: review?(amarchesini) → review+
Reporter | ||
Updated•6 years ago
|
Priority: P1 → P2
Updated•6 years ago
|
Flags: qe-verify? → qe-verify-
Updated•6 years ago
|
Comment 6•6 years ago
|
||
So, the conclusion was on the spec side was to console.warn on the bogus cases.
Updated•6 years ago
|
Priority: P2 → P1
Reporter | ||
Comment 7•5 years ago
|
||
Update the patch according to the spec modification. For calling PaymentResponse.retry with empty error fields and with non-empty payer errors if corresponding PaymentOptions.requestPayerXXX is false, warning on browser console to inform the developer.
Attachment #9015206 -
Attachment is obsolete: true
Attachment #9029487 -
Flags: review?(amarchesini)
Reporter | ||
Comment 8•5 years ago
|
||
Attachment #9029488 -
Flags: review?(amarchesini)
Comment 9•5 years ago
|
||
Comment on attachment 9029487 [details] [diff] [review] Warning on brower console when calling PaymentResponse.retry with empty errros or non-empty payer errors if requestPayerXXX is false. Review of attachment 9029487 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/locales/en-US/chrome/dom/dom.properties @@ +353,4 @@ > IDBOpenDBOptions_StorageTypeWarning=The ‘storage’ attribute in options passed to indexedDB.open is deprecated and will soon be removed. To get persistent storage, please use navigator.storage.persist() instead. > DOMQuadBoundsAttrWarning=DOMQuad.bounds is deprecated in favor of DOMQuad.getBounds() > UnsupportedEntryTypesIgnored=Ignoring unsupported entryTypes: %S. > +# LOCALIZATION NOTE: Do not translate "PaymentRequest". The %S is the id of the PaymentRequest. LOCALIZATION NODE(PaymentRequestRetryWithEmptyErrors): ... @@ +355,5 @@ > UnsupportedEntryTypesIgnored=Ignoring unsupported entryTypes: %S. > +# LOCALIZATION NOTE: Do not translate "PaymentRequest". The %S is the id of the PaymentRequest. > +PaymentRequestRetryWithEmptyErrors=retrying the PaymentRequest(%S) with empty error fields. > +# LOCALIZATION NOTE: Do not translate "PaymentRequest", "PayerErrorFields.name" and "PaymentOptions.requestPayerName". The %S is the id of the PaymentRequest > +PaymentRequestRetryWithNonemptyPayerErrorName=retrying the PaymentRequest(%S) with non-empty PayerErrorFields.name, but PaymentOptions.requestPayerName is false. extra space.
Attachment #9029487 -
Flags: review?(amarchesini) → review+
Updated•5 years ago
|
Attachment #9029488 -
Flags: review?(amarchesini) → review+
Reporter | ||
Comment 10•5 years ago
|
||
Update patch according to reviewer's comment. Update patch with new C++ coding style.
Attachment #9029487 -
Attachment is obsolete: true
Attachment #9031459 -
Flags: review+
Reporter | ||
Updated•5 years ago
|
Keywords: checkin-needed
Comment 11•5 years ago
|
||
Pushed by ebalazs@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/14cfc544bea0 mochitest test updation. r=baku https://hg.mozilla.org/integration/mozilla-inbound/rev/1cdcc397c971 Warning to console when calling PaymentResponse.retry() with improper error fields. r=baku
Keywords: checkin-needed
Comment 12•5 years ago
|
||
Backed out 2 changesets (Bug 1494917) for bc failures in browser/components/payments/test/browser/browser_address_edit.js CLOSED TREE Push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel%2Crunnable&revision=1cdcc397c9717d719d628dbc76b80f982c31279d&selectedJob=218118635 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=218118635&repo=mozilla-inbound Backout push: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel%2Crunnable&revision=dc54ea11b0ece580cf965bae3d37f5ef4f0ee623
Flags: needinfo?(echuang)
Reporter | ||
Updated•5 years ago
|
Flags: needinfo?(echuang)
Reporter | ||
Updated•5 years ago
|
Priority: P1 → P3
Reporter | ||
Updated•5 years ago
|
Assignee: echuang → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•