Expose PaymentManager on workers
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- Prepare to ship
WPT details: Yes, this exposing is tested by the below tests. - http://w3c-test.org/payment-handler/idlharness.https.any.worker.html - http://w3c-test.org/payment-handler/idlharness.https.any.sharedworker.html - http://w3c-test.org/payment-handler/idlharness.https.any.js
Summary
Though Web IDL specification removed [PrimaryGlobal] and made [Exposed] required, many blink's IDL files have not followed it yet. In payment_manager.idl case, the spec has added [Exposed=Window,Worker] as well. So, this will make PaymentManager visible on workers according to the updated specification.
Standards & signals
- Specification: https://w3c.github.io/payment-handler/#paymentmanager-interface
- Firefox: No signal
- Safari: No signal
- Web developers: Positive — WebPlatformTest has already tested this exposing. - https://experimental-diff-dot-wptdashboard.appspot.com/results/payment-handler/idlharness.https.any.worker.html?label=stable&aligned - https://experimental-diff-dot-wptdashboard.appspot.com/results/payment-handler/idlharness.https.any.sharedworker.html?label=stable&aligned
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=963267
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=expose-paymentmanager-on-workers
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Expose%20PaymentManager%20on%20workers
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Expose%20PaymentManager%20on%20workers
- Baseline status: https://webstatus.dev/?q=Expose%20PaymentManager%20on%20workers
Explainers: https://w3c.github.io/payment-handler/#paymentmanager-interface