Move allowpaymentrequest attribute tests to HTML#14855
Move allowpaymentrequest attribute tests to HTML#14855marcoscaceres wants to merge 1 commit intomasterfrom
Conversation
|
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. |
|
cc @bzbarsky |
|
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. |
|
Good suggestion @annevk. I was a bit confused about the redefinition of The other nice thing is that Feature Policy defines how the "payment" feature and the |
|
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. |
|
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. |
|
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. |
|
|
@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.