-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IFrame support in web payments #147
Comments
At first glance, the spec seems a bit informal, i.e., lacking a clear processing model. Such a model would make it clearer what happens in the case of nested iframes. Is the Also, why is this extending only |
In particular the spec should be using https://html.spec.whatwg.org/#allowed-to-use instead of the undefined term "allowed to make payment requests". It answers @dbaron's question about nesting (you need it at every iframe; origins are not consulted except in the initial check inside the PaymentRequest constructor---but see below for more on that). All other allow* attributes are currently only on HTMLIFrameElement. Also this needs [CEReactions] since it's a reflected content attribute. Ideally this should be pull-requested to HTML as it defines a new content attribute, but developing it in the payment request spec is fine for now. Also "the browsing context of the script calling the constructor whose origin..." is poorly defined. Scripts don't have browsing contexts and browsing contexts don't have origins. We shouldn't be doing call-stack-walking type checks about the scripts calling things. And "different from" is not the correct check. You instead want "The current settings object's origin is not same-origin with its top level browsing context's Window's relevant settings object's origin. |
FWIW, "allowed to use" and the general uplifting to HTML is w3c/payment-request#311. |
See whatwg/html#2112 for a discussion of making it easier for spec authors to ask the question "am I being invoked cross origin" |
Also note from our minutes: Resolved: Attribute proposed in the spec LGTM |
In general this has been largely straightened out (as long as you ignore the references to the W3C HTML fork in the Payment Request, and use the corresponding definitions in the HTML Standard) by the heroic work of @zcorpan. He's also added web platform tests, which is super-great. I still have an open action item to see if whatwg/html#2112 is still worthwhile and worth pursuing further as something generally useful, but the payment request-specific stuff has been straightened out nicely for now. |
Extracting from the minutes: we spent some time figuring out whether this attribute was appropriate for the iframe tag or whether it belonged in the That wraps things up from a TAG review perspective |
Hello TAG!
I'm requesting a TAG review of:
The text was updated successfully, but these errors were encountered: