forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Web Payment] App store billing never shows browser UI.
Before this patch, immediately resolving the promise passed into PaymentRequest.show() (the so-called "show() promise"), e.g., by calling PaymentRequest.show(Promise.resolve({})), would have the possibility of both showing the browser payment sheet and invoking the payment app, because the code did not expect that the promise would be resolved faster than enumerating the locally installed payment apps. This patch prevents invoking a payment app or showing the browser payment sheet when the show() promise resolves before the locally installed payment apps have been enumerated. After this patch, immediately resolving the show() promise will not result in both showing the browser payment sheet and invoking the payment app at the same time. Bug: 1237921 Change-Id: I132700146d6f9334a5c56d136f80fcdc62873313 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3160759 Reviewed-by: Jeevan Shikaram <jshikaram@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/main@{#921617}
- Loading branch information
1 parent
1011de7
commit 4f0f07d
Showing
4 changed files
with
112 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters