iframes with allowpaymentrequest attribute are allowed to make payment requests.
Specification: https://w3c.github.io/browser-payment-api/
There are some circumstances where a cross-origin iframe
wants to make a payment request. A cross-origin iframe
needs explicit permission from the embedding page to invoke
the payment request API.
BUG=652148
Committed: https://crrev.com/310d33fb9aa25f2bcf58b4c64e4e0c1fbcc73bdb
Cr-Commit-Position: refs/heads/master@{#426513}
Description was changed from ========== iframes with allowpaymentrequest attribute are allowed to make payment requests. ...
4 years, 2 months ago
(2016-10-10 05:39:05 UTC)
#1
Description was changed from
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
BUG=652148
==========
to
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
BUG=652148
==========
4 years, 2 months ago
(2016-10-10 05:39:17 UTC)
#3
PTAL.
pals
Description was changed from ========== iframes with allowpaymentrequest attribute are allowed to make payment requests. ...
4 years, 2 months ago
(2016-10-10 05:48:00 UTC)
#4
Description was changed from
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
BUG=652148
==========
to
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
Specification: https://w3c.github.io/browser-payment-api/
There are some circumstances where a cross-origin iframe
wants to make a payment request. A cross-origin iframe
needs explicit permission from the embedding page to invoke
the payment request API.
BUG=652148
==========
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/286236)
4 years, 2 months ago
(2016-10-14 11:05:48 UTC)
#12
Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/145525) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 2 months ago
(2016-10-14 12:32:06 UTC)
#16
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/311894)
4 years, 2 months ago
(2016-10-14 17:53:06 UTC)
#20
@haraken, could please suggest how we can move the implementaion in HTMLIFrameElementPayments.h|cpp files? https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Source/core/html/HTMLIFrameElement.h File ...
4 years, 2 months ago
(2016-10-19 05:09:53 UTC)
#35
@haraken, could please suggest how we can move the implementaion in
HTMLIFrameElementPayments.h|cpp files?
https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/html/HTMLIFrameElement.h (right):
https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/html/HTMLIFrameElement.h:82: bool
allowPaymentRequest() const override { return m_allowPaymentRequest; }
On 2016/10/18 14:04:49, rouslan wrote:
> I was under impression that this getter would live in
> HTMLIFrameElementPayments.h when you specify
> ImplementedAs=HTMLIframeElementPayments in HTMLIFrameElementPayments.idl. If
> that's not possible for some reason or is the wrong thing to do, please let me
> know. I'm also learning this area of the code for the first time.
I am trying to move "m_allowPaymentRequest" to HTMLIFrameElementPayments.h but
not able to get allowpaymentrequestAttr in HTMLIFrameElementPayments.cpp. I am
not able find existing code where idl filename and ImplementedAs are having same
name. @haraken, could please suggest how this can be achived.
4 years, 2 months ago
(2016-10-19 09:04:09 UTC)
#36
https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/html/HTMLIFrameElement.h (right):
https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/html/HTMLIFrameElement.h:82: bool
allowPaymentRequest() const override { return m_allowPaymentRequest; }
On 2016/10/19 05:09:53, pals wrote:
> On 2016/10/18 14:04:49, rouslan wrote:
> > I was under impression that this getter would live in
> > HTMLIFrameElementPayments.h when you specify
> > ImplementedAs=HTMLIframeElementPayments in HTMLIFrameElementPayments.idl. If
> > that's not possible for some reason or is the wrong thing to do, please let
me
> > know. I'm also learning this area of the code for the first time.
>
> I am trying to move "m_allowPaymentRequest" to HTMLIFrameElementPayments.h but
> not able to get allowpaymentrequestAttr in HTMLIFrameElementPayments.cpp. I am
> not able find existing code where idl filename and ImplementedAs are having
same
> name. @haraken, could please suggest how this can be achived.
Nice catch! rouslan is right. We should put m_allowPaymentRequest in
HTMLIFrameElementPayments.h.
Why do you need [ImplementedAs] in the first place? What happens if you simply
put m_allowPaymentRequest in HTMLIFrameElementPayments.h without using
[ImplementedAs]?
pals
Removed need of variable in HTMLIFrameElement.h but we need to override allowPaymentRequest() in HTMLIFrameElement.h. I'm ...
4 years, 2 months ago
(2016-10-19 12:53:12 UTC)
#37
sanjoy.pal@: Sounds like you've done everything you could. I'm out of concrete ideas on how ...
4 years, 2 months ago
(2016-10-19 14:21:19 UTC)
#38
sanjoy.pal@: Sounds like you've done everything you could. I'm out of concrete
ideas on how to make this code better. So LGTM from me on modules/payments,
which I own.
4 years, 2 months ago
(2016-10-20 09:25:57 UTC)
#40
Patchset #8 (id:140001) has been deleted
pals
Thank you. Now the code looks much simpler now. PTAL. https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode897 ...
4 years, 2 months ago
(2016-10-20 09:30:07 UTC)
#41
Thank you. Now the code looks much simpler now. PTAL.
https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right):
https://codereview.chromium.org/2394473002/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:897:
frameElement->allowPaymentRequest(), frameElement->csp(),
On 2016/10/19 15:37:56, haraken wrote:
> On 2016/10/19 12:53:12, pals wrote:
> > HTMLIFrameElement needs to override allowPaymentRequest()as it is being used
> > here.
>
> Can we avoid the override by changing the line to something liek:
>
> HTMLIFrameElementPayments::from(frameElement)->allowPaymentRequest()
>
> ?
Done.
pals
The CQ bit was checked by sanjoy.pal@samsung.com to run a CQ dry run
4 years, 2 months ago
(2016-10-20 09:30:14 UTC)
#42
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/290482)
4 years, 2 months ago
(2016-10-20 09:32:21 UTC)
#45
Description was changed from ========== iframes with allowpaymentrequest attribute are allowed to make payment requests. ...
4 years, 2 months ago
(2016-10-20 17:15:51 UTC)
#55
Message was sent while issue was closed.
Description was changed from
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
Specification: https://w3c.github.io/browser-payment-api/
There are some circumstances where a cross-origin iframe
wants to make a payment request. A cross-origin iframe
needs explicit permission from the embedding page to invoke
the payment request API.
BUG=652148
==========
to
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
Specification: https://w3c.github.io/browser-payment-api/
There are some circumstances where a cross-origin iframe
wants to make a payment request. A cross-origin iframe
needs explicit permission from the embedding page to invoke
the payment request API.
BUG=652148
==========
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 2 months ago
(2016-10-20 17:15:53 UTC)
#56
Message was sent while issue was closed.
Committed patchset #9 (id:180001)
commit-bot: I haz the power
Description was changed from ========== iframes with allowpaymentrequest attribute are allowed to make payment requests. ...
4 years, 2 months ago
(2016-10-21 13:19:27 UTC)
#57
Message was sent while issue was closed.
Description was changed from
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
Specification: https://w3c.github.io/browser-payment-api/
There are some circumstances where a cross-origin iframe
wants to make a payment request. A cross-origin iframe
needs explicit permission from the embedding page to invoke
the payment request API.
BUG=652148
==========
to
==========
iframes with allowpaymentrequest attribute are allowed to make payment requests.
Specification: https://w3c.github.io/browser-payment-api/
There are some circumstances where a cross-origin iframe
wants to make a payment request. A cross-origin iframe
needs explicit permission from the embedding page to invoke
the payment request API.
BUG=652148
Committed: https://crrev.com/310d33fb9aa25f2bcf58b4c64e4e0c1fbcc73bdb
Cr-Commit-Position: refs/heads/master@{#426513}
==========
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/310d33fb9aa25f2bcf58b4c64e4e0c1fbcc73bdb Cr-Commit-Position: refs/heads/master@{#426513}
4 years, 2 months ago
(2016-10-21 13:19:29 UTC)
#58
Issue 2394473002: iframes with allowpaymentrequest attribute are allowed to make payment requests.
(Closed)
Created 4 years, 2 months ago by pals
Modified 4 years, 2 months ago
Reviewers: please use gerrit instead, haraken
Base URL:
Comments: 28