Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then(result => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7AQAJ
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
The feature is behind
chrome://flags/#enable-experimental-web-platform-features until it is
approved to ship.
BUG=662931, 664619
Committed: https://crrev.com/5132963daf4b866cc573b06ff8e84f9b6ec4534c
Cr-Commit-Position: refs/heads/master@{#433164}
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/323936)
Description was changed from
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
BUG=FILEME
==========
to
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called nevertheless.
This is a complete implementation of an additive feature (does not
change existing functionality), so there's no need to hide it behind a
flag.
BUG=662931
==========
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/302811) mac_chromium_rel_ng on ...
4 years, 1 month ago
(2016-11-09 19:31:17 UTC)
#10
4 years, 1 month ago
(2016-11-09 23:14:31 UTC)
#13
Patchset #2 (id:40001) has been deleted
please use gerrit instead
Patchset #1 (id:20001) has been deleted
4 years, 1 month ago
(2016-11-09 23:14:43 UTC)
#14
Patchset #1 (id:20001) has been deleted
please use gerrit instead
Description was changed from ========== Add canMakeActivePayment() method to web payments. canMakeActivePayment() is a proposed ...
4 years, 1 month ago
(2016-11-09 23:15:24 UTC)
#15
Description was changed from
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called nevertheless.
This is a complete implementation of an additive feature (does not
change existing functionality), so there's no need to hide it behind a
flag.
BUG=662931
==========
to
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
This is a complete implementation of an additive feature (does not
change existing functionality), so there's no need to hide it behind a
flag.
BUG=662931
==========
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/332365)
4 years, 1 month ago
(2016-11-10 00:10:35 UTC)
#21
I will still pass to dfalcantara since the java tests need to be approved by ...
4 years, 1 month ago
(2016-11-10 20:21:50 UTC)
#31
I will still pass to dfalcantara since the java tests need to be approved by him
anyway.
Java part mostly l-g-t-m, except one potential memory improvement.
https://codereview.chromium.org/2467393002/diff/80001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
(right):
https://codereview.chromium.org/2467393002/diff/80001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:941:
if (sCanMakeActivePaymentQueries == null) sCanMakeActivePaymentQueries = new
HashMap<>();
Optional comment:
You might want to consider using ArrayMap from v4 support library. ArrayMap is
android specific and it is designed for better memory efficiency with less data
scale.
I would suggest we use ArrayMap here because:
1. This map is static and it is always kept in memory until process dies.
2. The number of entries in the map is reasonably small.
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
4 years, 1 month ago
(2016-11-10 21:50:31 UTC)
#32
On 2016/11/10 20:21:50, Ian Wen wrote: > I will still pass to dfalcantara since the ...
4 years, 1 month ago
(2016-11-10 21:56:38 UTC)
#34
On 2016/11/10 20:21:50, Ian Wen wrote:
> I will still pass to dfalcantara since the java tests need to be approved by
him
> anyway.
I own the payments tests btw:
https://cs.chromium.org/chromium/src/chrome/android/javatests/src/org/chromiu...https://codereview.chromium.org/2467393002/diff/80001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
(right):
https://codereview.chromium.org/2467393002/diff/80001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:941:
if (sCanMakeActivePaymentQueries == null) sCanMakeActivePaymentQueries = new
HashMap<>();
On 2016/11/10 20:21:50, Ian Wen wrote:
> Optional comment:
>
> You might want to consider using ArrayMap from v4 support library. ArrayMap is
> android specific and it is designed for better memory efficiency with less
data
> scale.
>
> I would suggest we use ArrayMap here because:
> 1. This map is static and it is always kept in memory until process dies.
> 2. The number of entries in the map is reasonably small.
Done.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
4 years, 1 month ago
(2016-11-10 22:14:32 UTC)
#35
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/190217)
4 years, 1 month ago
(2016-11-10 22:14:33 UTC)
#36
I don't understand what you mean with "This is a complete implementation of an additive ...
4 years, 1 month ago
(2016-11-11 00:00:05 UTC)
#39
I don't understand what you mean with "This is a complete implementation of an
additive feature (does not change existing functionality), so there's no need to
hide it behind a flag."?
Any API change (new api, change to existing api, new feature for existing api,
etc), especially to a feature that has already shipped is considered a
non-trivial change that has to go through the blink intents process
(https://www.chromium.org/blink#trivial-changes). So you either have to send an
intent-to-implement, implement behind a flag, and send an intent-to-ship, or get
an approved intent-to-implement-and-ship before landing this without a flag.
https://codereview.chromium.org/2467393002/diff/100001/components/payments/pa...
File components/payments/payment_request.mojom (right):
https://codereview.chromium.org/2467393002/diff/100001/components/payments/pa...
components/payments/payment_request.mojom:166: CanMakeActivePayment();
Would it make sense to make this CanMakeActivePayment() =>
(ActivePaymentQueryResult result), rather than sending the result through a
separate method in PaymentRequestClient? Although I guess the separate method
thing also makes sense since it's the same pattern the existing code uses.
please use gerrit instead
Description was changed from ========== Add canMakeActivePayment() method to web payments. canMakeActivePayment() is a proposed ...
4 years, 1 month ago
(2016-11-11 21:09:24 UTC)
#40
Description was changed from
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
This is a complete implementation of an additive feature (does not
change existing functionality), so there's no need to hide it behind a
flag.
BUG=662931
==========
to
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
BUG=662931,664619
==========
please use gerrit instead
On 2016/11/11 00:00:05, Marijn Kruisselbrink wrote: > Any API change (new api, change to existing ...
4 years, 1 month ago
(2016-11-11 21:11:50 UTC)
#41
On 2016/11/11 00:00:05, Marijn Kruisselbrink wrote:
> Any API change (new api, change to existing api, new feature for existing api,
> etc), especially to a feature that has already shipped is considered a
> non-trivial change that has to go through the blink intents process
> (https://www.chromium.org/blink#trivial-changes). So you either have to send
an
> intent-to-implement, implement behind a flag, and send an intent-to-ship, or
get
> an approved intent-to-implement-and-ship before landing this without a flag.
Sent out an intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...https://codereview.chromium.org/2467393002/diff/100001/components/payments/pa...
File components/payments/payment_request.mojom (right):
https://codereview.chromium.org/2467393002/diff/100001/components/payments/pa...
components/payments/payment_request.mojom:166: CanMakeActivePayment();
On 2016/11/11 00:00:05, Marijn Kruisselbrink wrote:
> Would it make sense to make this CanMakeActivePayment() =>
> (ActivePaymentQueryResult result), rather than sending the result through a
> separate method in PaymentRequestClient? Although I guess the separate method
> thing also makes sense since it's the same pattern the existing code uses.
I'd prefer to stick to the pre-existing pattern in this file.
please use gerrit instead
Description was changed from ========== Add canMakeActivePayment() method to web payments. canMakeActivePayment() is a proposed ...
4 years, 1 month ago
(2016-11-11 21:58:14 UTC)
#42
Description was changed from
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then((result) => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
BUG=662931,664619
==========
to
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then(result => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
BUG=662931,664619
==========
please use gerrit instead
https://codereview.chromium.org/2467393002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2467393002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode955 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:955: mHandler.postDelayed(new Runnable() { On 2016/11/10 23:50:15, Ian Wen wrote: ...
4 years, 1 month ago
(2016-11-11 22:22:26 UTC)
#43
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/163115)
4 years, 1 month ago
(2016-11-12 02:01:23 UTC)
#48
On 2016/11/15 at 16:16:30, rouslan wrote: > On 2016/11/11 21:11:50, rouslan wrote: > > Sent ...
4 years, 1 month ago
(2016-11-16 19:25:43 UTC)
#50
On 2016/11/15 at 16:16:30, rouslan wrote:
> On 2016/11/11 21:11:50, rouslan wrote:
> > Sent out an intent to implement and ship:
> >
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
>
> Marijn, should this be landed behind a runtime flag while waiting for approval
to ship?
That's up to you I think. Either wait for the approval to ship before landing,
or land behind a flag and flip the flag when approved to ship. As an aside it's
a bit unfortunate that the whole PaymentRequest API is currently only exposed on
android, as that (apparently) means it's API service isn't guarded by the tests
in virtual/stable/webexposed, which generally enforces that you'll at least get
some API owner to approve any change that changes web exposed API that isn't
behind any flags
Marijn Kruisselbrink
On 2016/11/15 at 16:16:30, rouslan wrote: > On 2016/11/11 21:11:50, rouslan wrote: > > Sent ...
4 years, 1 month ago
(2016-11-16 19:25:43 UTC)
#51
On 2016/11/15 at 16:16:30, rouslan wrote:
> On 2016/11/11 21:11:50, rouslan wrote:
> > Sent out an intent to implement and ship:
> >
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
>
> Marijn, should this be landed behind a runtime flag while waiting for approval
to ship?
That's up to you I think. Either wait for the approval to ship before landing,
or land behind a flag and flip the flag when approved to ship. As an aside it's
a bit unfortunate that the whole PaymentRequest API is currently only exposed on
android, as that (apparently) means it's API service isn't guarded by the tests
in virtual/stable/webexposed, which generally enforces that you'll at least get
some API owner to approve any change that changes web exposed API that isn't
behind any flags
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
4 years, 1 month ago
(2016-11-17 00:41:00 UTC)
#52
Marijn, ptal patch 5. I've hidden the feature behind a flag and notified blink-dev: https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/etSuMidkAAAJ
4 years, 1 month ago
(2016-11-17 00:43:05 UTC)
#54
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/69409)
4 years, 1 month ago
(2016-11-17 02:26:22 UTC)
#56
Two small questions around expected behavior from a spec point of view, but I imagine ...
4 years, 1 month ago
(2016-11-17 18:06:21 UTC)
#59
Two small questions around expected behavior from a spec point of view, but I
imagine that once the spec is finalized you'll have to go over to make sure the
implementation actually matches it anyway, so it's probably fine to just leave
this as is for now too. LGTM
https://codereview.chromium.org/2467393002/diff/140001/chrome/android/java/sr...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
(right):
https://codereview.chromium.org/2467393002/diff/140001/chrome/android/java/sr...
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:953:
if (sCanMakeActivePaymentQueries.containsKey(mOrigin)) {
Is mOrigin the correct key to use here? I realize the spec is still a bit in
flux, but currently is written in terms of TLD, not origin. (and also is
WebContents::GetVisibleURL() rather than GetLastCommittedURL() the correct URL
to use to make security decisions?)
https://codereview.chromium.org/2467393002/diff/140001/third_party/WebKit/Sou...
File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right):
https://codereview.chromium.org/2467393002/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:881:
m_canMakeActivePaymentResolver->reject("Query quota exceeded");
I would expect the spec to say to reject with a QuotaExceededError, rather than
reject with a plain string.
please use gerrit instead
Description was changed from ========== Add canMakeActivePayment() method to web payments. canMakeActivePayment() is a proposed ...
4 years, 1 month ago
(2016-11-17 19:52:56 UTC)
#60
Description was changed from
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then(result => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
BUG=662931,664619
==========
to
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then(result => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
The feature is behind
chrome://flags/#enable-experimental-web-platform-features until it is
approved to ship.
BUG=662931,664619
==========
please use gerrit instead
Addressed the comments. Noted in CL description that the feature is behind a flag. Sending ...
4 years, 1 month ago
(2016-11-17 20:07:21 UTC)
#61
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/334271)
4 years, 1 month ago
(2016-11-17 21:56:35 UTC)
#70
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/338048)
4 years, 1 month ago
(2016-11-17 22:35:34 UTC)
#74
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/338146)
4 years, 1 month ago
(2016-11-18 00:06:24 UTC)
#78
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/275419)
4 years, 1 month ago
(2016-11-18 06:08:29 UTC)
#83
4 years, 1 month ago
(2016-11-18 10:04:31 UTC)
#86
Message was sent while issue was closed.
Committed patchset #10 (id:240001)
commit-bot: I haz the power
Description was changed from ========== Add canMakeActivePayment() method to web payments. canMakeActivePayment() is a proposed ...
4 years, 1 month ago
(2016-11-18 10:06:52 UTC)
#87
Message was sent while issue was closed.
Description was changed from
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then(result => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
The feature is behind
chrome://flags/#enable-experimental-web-platform-features until it is
approved to ship.
BUG=662931,664619
==========
to
==========
Add canMakeActivePayment() method to web payments.
canMakeActivePayment() is a proposed function on PaymentRequest object.
Proposal:
https://github.com/zkoch/zkoch.github.io/blob/master/pr-detect-avail.md
Example usage:
pr.canMakeActivePayment()
.then(result => { if (result) return pr.show(); })
.catch(error => { console.log(error); });
When canMakeActivePayment() is called, Chrome stores the website origin
and the payment methods that it's checking in memory. That's shared
across the whole browser, in global state. (Not storing this on disk, so
the user can clear this data via browser restart.) Then Chrome starts a
timer for 30 minutes. When the timer fires, Chrome removes that origin
and the payment methods that it was checking from the list. If the same
origin tries to check different payment methods within the 30 minute
window, Chrome rejects that request. If canMakeActivePayment() is
rejected, then pr.show() can still be called regardless.
Intent to implement and ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/IoIxRpn6l9g/ux1C1Cj7...
Tag review:
https://github.com/w3ctag/spec-reviews/issues/146
OWP launch tracking bug:
http://crbug.com/664619
Link to entry on the feature dashboard:
https://www.chromestatus.com/feature/5702608073261056
The feature is behind
chrome://flags/#enable-experimental-web-platform-features until it is
approved to ship.
BUG=662931,664619
Committed: https://crrev.com/5132963daf4b866cc573b06ff8e84f9b6ec4534c
Cr-Commit-Position: refs/heads/master@{#433164}
==========
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/5132963daf4b866cc573b06ff8e84f9b6ec4534c Cr-Commit-Position: refs/heads/master@{#433164}
4 years, 1 month ago
(2016-11-18 10:06:54 UTC)
#88
Issue 2467393002: Add canMakeActivePayment() method to web payments.
(Closed)
Created 4 years, 1 month ago by please use gerrit instead
Modified 4 years, 1 month ago
Reviewers: Marijn Kruisselbrink, haraken, Ian Wen, Tom Sepez
Base URL:
Comments: 13