Upcoming W3C Payment API changes in Chrome 84

18 views
Skip to first unread message

Danyao Wang

unread,
Jun 12, 2020, 12:52:02 PM6/12/20
to payment...@chromium.org

The following changes are coming to Chrome 84.


Beta: May 20, 2020  |  Stable: July 14, 2020

Summary


Enabled by default

Payment Request API

No change.

Payment Handler API

  1. Bug Fix | Skip-the-sheet not triggered for PH with icon blocked by CSP (crbug/1069010)

  2. Removed support for supported_origins wildcard in Payment Method Manifest

  3. Larger payment handler window on desktop

Details

1. Bug Fix | Skip-the-sheet not triggered for PH with icon blocked by CSP

Chrome 84 includes a partial fix for crbug.com/1069010 by not installing payment handlers if the icon from the payment handler’s web-app manifest cannot be installed. Without this fix, payment handlers may be installed without an icon (e.g. on websites affected by crbug.com/1055360, fixed in Chrome 83) and will not be eligible for skip-the-sheet flow. The fix has also been cherry-picked into Chrome 83.


A follow up fix is being worked on for Chrome 85 to refetch missing icons. This will fix payment handlers that are already installed but are missing icons.

2. Removed * from supported_origins

Owners of a URL-based payment method can use the “supported_origins” field in the payment method manifest to whitelist other origins that are allowed to host payment apps to service this payment method. A recent spec change removed support for the “*” wildcard to mitigate a security threat. Chrome 84 ships the new spec behavior. For more details, see crbug/1070827.

3. Larger payment handler window on desktop

The default size of the payment handler window (i.e. the modal window triggered by PaymentRequestEvent.openWindow()) is increased to 600x600 pixels on desktop, capped at the height of the web content to avoid cutoff on small screens. This gives service-worker-based payment apps more screen real estate.


Please let us know at payment...@chromium.org if developer-controlled window resize is something you’re interested in.

Reply all
Reply to author
Forward
0 new messages