Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Issue 2170783002: Add a timeout to the update event in case page doesn't resolve promise from updateWith (Closed)

Created:
4 years, 5 months ago by pals
Modified:
4 years, 5 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a timeout to the update event in case page doesn't resolve promise from updateWith Specification: https://www.w3.org/TR/payment-request/#updatewith BUG=629462 Committed: https://crrev.com/92c5d3d1a1c2659c20c9ac7eb2e5de90c2199f0b Cr-Commit-Position: refs/heads/master@{#407082}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixed review comments #

Total comments: 2

Patch Set 3 : Added a comment #

Patch Set 4 : Comment #

Patch Set 5 : Missed the DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp View 1 2 3 4 4 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
pals
PTAL.
4 years, 5 months ago (2016-07-21 06:55:23 UTC) #2
please use gerrit instead
mek@: ptal. Timers+events+GC are tricky to get right. Can you sanity check this patch? https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp ...
4 years, 5 months ago (2016-07-21 16:35:25 UTC) #5
haraken
https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp (right): https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp#newcode96 third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp:96: m_abortTimer.startOneShot(s_abortTimeout, BLINK_FROM_HERE); What happens if you hit setPaymentDetailsUpdater before ...
4 years, 5 months ago (2016-07-21 16:37:27 UTC) #7
please use gerrit instead
https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp (right): https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp#newcode96 third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp:96: m_abortTimer.startOneShot(s_abortTimeout, BLINK_FROM_HERE); On 2016/07/21 16:37:27, haraken wrote: > > ...
4 years, 5 months ago (2016-07-21 16:46:42 UTC) #8
haraken
On 2016/07/21 16:46:42, Rouslan (ツ) wrote: > https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp > File third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp > (right): > > ...
4 years, 5 months ago (2016-07-21 16:48:00 UTC) #9
please use gerrit instead
sanjoy.pal@. please address all comments before submitting.
4 years, 5 months ago (2016-07-21 16:50:34 UTC) #10
Marijn Kruisselbrink
looks good, with the suggested changes to the test to not actually wait for the ...
4 years, 5 months ago (2016-07-21 18:02:14 UTC) #11
pals
Thanks for the review. I have made the changes as suggested. PTAL. https://codereview.chromium.org/2170783002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp ...
4 years, 5 months ago (2016-07-22 04:06:19 UTC) #12
please use gerrit instead
lgtm
4 years, 5 months ago (2016-07-22 04:14:47 UTC) #14
Marijn Kruisselbrink
lgtm https://codereview.chromium.org/2170783002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp (right): https://codereview.chromium.org/2170783002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp#newcode17 third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp:17: static const int abortTimeout = 60; Maybe add ...
4 years, 5 months ago (2016-07-22 04:18:46 UTC) #15
pals
https://codereview.chromium.org/2170783002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp File third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp (right): https://codereview.chromium.org/2170783002/diff/40001/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp#newcode17 third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp:17: static const int abortTimeout = 60; On 2016/07/22 04:18:46, ...
4 years, 5 months ago (2016-07-22 05:00:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2170783002/100001
4 years, 5 months ago (2016-07-22 06:33:29 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-22 06:37:16 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 06:39:11 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/92c5d3d1a1c2659c20c9ac7eb2e5de90c2199f0b
Cr-Commit-Position: refs/heads/master@{#407082}

Powered by Google App Engine
This is Rietveld 408576698