Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Issue 2029473002: PaymentRequest should throw if not in top context. (Closed)

Created:
4 years, 6 months ago by please use gerrit instead
Modified:
4 years, 6 months ago
CC:
blink-reviews, chromium-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/b26313ef9d24c94f72c87f450e54999404e55e51 Cr-Commit-Position: refs/heads/master@{#397035}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
please use gerrit instead
mek@, ptal.
4 years, 6 months ago (2016-05-31 23:58:02 UTC) #3
Marijn Kruisselbrink
https://codereview.chromium.org/2029473002/diff/20001/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html File third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html (right): https://codereview.chromium.org/2029473002/diff/20001/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html#newcode6 third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html:6: <iframe sandbox="allow-scripts allow-same-origin" style="width: 0px; height: 0px; margin: 0px; ...
4 years, 6 months ago (2016-06-01 00:19:25 UTC) #4
please use gerrit instead
ptal patch 2. https://codereview.chromium.org/2029473002/diff/20001/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html File third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html (right): https://codereview.chromium.org/2029473002/diff/20001/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html#newcode6 third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html:6: <iframe sandbox="allow-scripts allow-same-origin" style="width: 0px; height: ...
4 years, 6 months ago (2016-06-01 00:42:29 UTC) #5
Marijn Kruisselbrink
lgtm
4 years, 6 months ago (2016-06-01 00:46:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029473002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2029473002/40001
4 years, 6 months ago (2016-06-01 00:49:09 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 6 months ago (2016-06-01 02:53:46 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 02:56:08 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b26313ef9d24c94f72c87f450e54999404e55e51
Cr-Commit-Position: refs/heads/master@{#397035}

Powered by Google App Engine
This is Rietveld 408576698