Skip to content

Move allowpaymentrequest attribute tests to HTML#14855

Closed
marcoscaceres wants to merge 1 commit intomasterfrom
move_allowpaymentrequest
Closed

Move allowpaymentrequest attribute tests to HTML#14855
marcoscaceres wants to merge 1 commit intomasterfrom
move_allowpaymentrequest

Conversation

@marcoscaceres
Copy link
Contributor

@marcoscaceres marcoscaceres commented Jan 15, 2019

@zcorpan, if you recall, we discussed moving these tests during TPAC. IIRC, we had concluded that the test were not 100% right, because of some under-defined things in HTML.

Step 1 might just be to merge these, then we can look at fixing them up.

@zcorpan
Copy link
Member

zcorpan commented Jan 15, 2019

I think the "needs changes" thing we discussed was this:

The tests expect the allow* flag to be set once when an iframe with a src attribute is added to the document. But the spec probably sets it twice -- when the browsing context is created, and then when it is navigated. Either the tests or the spec need changes.

@zcorpan
Copy link
Member

zcorpan commented Jan 15, 2019

cc @bzbarsky

@annevk
Copy link
Member

annevk commented Jan 15, 2019

It might make sense to move these to Feature Policy instead since that effectively defines this attribute these days in https://w3c.github.io/webappsec-feature-policy/#iframe-allowpaymentrequest-attribute.

@marcoscaceres
Copy link
Contributor Author

Good suggestion @annevk. I was a bit confused about the redefinition of allowpaymentrequest in Feature Policy, as I thought it was more formally defined in HTML (I guess it still is?).

The other nice thing is that Feature Policy defines how the "payment" feature and the allowpaymentrequest attribute rules are supposed to play together.

@annevk
Copy link
Member

annevk commented Jan 15, 2019

HTML defers to Feature Policy for some months now I think.

@marcoscaceres
Copy link
Contributor Author

HTML defers to Feature Policy for some months now I think.

Ok, I was not aware. Thanks for the heads up. I'll have to update Payment Request as it's still pointing to HTML.

@annevk
Copy link
Member

annevk commented Jan 15, 2019

Well, sorry, the official content/IDL attribute definition is in HTML, but all the details are in Feature Policy, which is why it probably makes more sense to test it as part of that test suite.

@marcoscaceres
Copy link
Contributor Author

Ok, I see. I made the following changes to Payment Request API: w3c/payment-request#822 . Referencing Feature Policy seems most accurate now, as it defines the behavior. However, happy to make any suggested changes.

@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the move_allowpaymentrequest branch January 24, 2020 18:07
@gsnedders gsnedders restored the move_allowpaymentrequest branch January 24, 2020 18:49
@Hexcles Hexcles reopened this Jan 24, 2020
@zcorpan zcorpan requested a review from clelland January 27, 2020 14:29
@marcoscaceres
Copy link
Contributor Author

allowpaymentrequest attribute is no longer a thing.

@marcoscaceres marcoscaceres deleted the move_allowpaymentrequest branch October 1, 2020 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants