[Payment Request][Android] Cancel payment in tab overview mode.
Before this patch, a payment app that was slow to respond to `canmakepayment` event would leave a window of time when the user could enter the tab overview mode in Android, which did not cancel the ongoing payment, even though the merchant page was no longer in focus. The tab overview mode displays a list of user tabs and is used for tab switching. Chrome already listened to tab switch events, so selecting a different tab does cancel the ongoing payment. This patch cancels the ongoing payment when Chrome enters into the overview mode. After this patch, Chrome cancels the ongoing payment if the user enters the tab overview mode, which can happen when the payment app is slow to respond to `canmakepayment` event. Bug: 817073 Change-Id: I852d8467bb4e349bcc9afb322d973a9bccca0910 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506374Reviewed-by:Danyao Wang <danyao@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#638287}
Showing
Please register or sign in to comment