Repository navigation
Add [SameObject] to paymentManager attribute - #293
Conversation
Related spec change: w3c/web-based-payment-handler#293 Bug: none Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0
|
Can you also expose |
We don't need to create a new object when accessing paymentManager attribute. So, we just add `[SameObject]`.
|
@rsolomakhin I removed |
|
@romandev: I could not access the payment manager in service worker context unless I added [
Exposed=(Window,Worker), // Please add this line.
RuntimeEnabled=PaymentApp,
ConstructorCallWith=ExecutionContext
] interface PaymentManager {
readonly attribute PaymentInstruments instruments;
attribute DOMString userHint;
}; |
|
@rsolomakhin, We already have it in current spec :) The |
rsolomakhin
left a comment
There was a problem hiding this comment.
Ah, it's the bug in Chromium. We need to add [Exposed=(Window,Worker)] in payment_manager.idl to match the spec.
Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0
Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0
Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0
Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <[email protected]> Commit-Queue: Jinho Bang <[email protected]> Cr-Commit-Position: refs/heads/master@{#552319}
Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <[email protected]> Commit-Queue: Jinho Bang <[email protected]> Cr-Commit-Position: refs/heads/master@{#552319}
Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <[email protected]> Commit-Queue: Jinho Bang <[email protected]> Cr-Commit-Position: refs/heads/master@{#552319}
…entManager and instruments attr, a=testonly Automatic update from web-platform-testsPaymentHandler: Add [SameObject] to paymentManager and instruments attr Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <[email protected]> Commit-Queue: Jinho Bang <[email protected]> Cr-Commit-Position: refs/heads/master@{#552319} -- wpt-commits: a9b3bb7e921720f364dec091d71cdc5c4aafd8dd wpt-pr: 10482
…entManager and instruments attr, a=testonly Automatic update from web-platform-testsPaymentHandler: Add [SameObject] to paymentManager and instruments attr Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <gogeraldchromium.org> Commit-Queue: Jinho Bang <jinho.bangsamsung.com> Cr-Commit-Position: refs/heads/master{#552319} -- wpt-commits: a9b3bb7e921720f364dec091d71cdc5c4aafd8dd wpt-pr: 10482 UltraBlame original commit: ac09a7250e4a3fa0228a50cca1068a9558865390
…entManager and instruments attr, a=testonly Automatic update from web-platform-testsPaymentHandler: Add [SameObject] to paymentManager and instruments attr Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <gogeraldchromium.org> Commit-Queue: Jinho Bang <jinho.bangsamsung.com> Cr-Commit-Position: refs/heads/master{#552319} -- wpt-commits: a9b3bb7e921720f364dec091d71cdc5c4aafd8dd wpt-pr: 10482 UltraBlame original commit: ac09a7250e4a3fa0228a50cca1068a9558865390
…entManager and instruments attr, a=testonly Automatic update from web-platform-testsPaymentHandler: Add [SameObject] to paymentManager and instruments attr Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <gogeraldchromium.org> Commit-Queue: Jinho Bang <jinho.bangsamsung.com> Cr-Commit-Position: refs/heads/master{#552319} -- wpt-commits: a9b3bb7e921720f364dec091d71cdc5c4aafd8dd wpt-pr: 10482 UltraBlame original commit: ac09a7250e4a3fa0228a50cca1068a9558865390
…entManager and instruments attr, a=testonly Automatic update from web-platform-testsPaymentHandler: Add [SameObject] to paymentManager and instruments attr Related spec change: w3c/web-based-payment-handler#293 Bug: 833535 Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0 Reviewed-on: https://chromium-review.googlesource.com/1013660 Reviewed-by: Ganggui Tang <[email protected]> Commit-Queue: Jinho Bang <[email protected]> Cr-Commit-Position: refs/heads/master@{#552319} -- wpt-commits: a9b3bb7e921720f364dec091d71cdc5c4aafd8dd wpt-pr: 10482
We don't need to create a new object when accessing paymentManager
attribute. So, we just add
[SameObject].Implementation commitment:
Preview | Diff