commit | b26313ef9d24c94f72c87f450e54999404e55e51 | [log] [tgz] |
---|---|---|
author | rouslan <rouslan@chromium.org> | Wed Jun 01 02:53:34 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jun 01 02:55:58 2016 |
tree | 8e17de7fafab15566cb61d80cf1585766204a9e5 | |
parent | df6b66eec33d69c0d321e22a10740738fccf2dd7 [diff] |
PaymentRequest should throw if not in top context. The PaymentRequest specification currently states that PaymentRequest can be constructed only in a top-level browsing context. When inside of an iframe, the constructor should throw a SecurityError. https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#paymentrequest-constructor Note this may change in the future via iframe sandboxing. https://github.com/w3c/browser-payment-api/issues/2 BUG=587995 Review-Url: https://codereview.chromium.org/2029473002 Cr-Commit-Position: refs/heads/master@{#397035}