Bug 167417
Summary: | Implement <iframe allow="payment"> | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Pieters (:zcorpan) <zcorpan> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | andersca, brad.girardeau, cdumez, eric.carlson, gsnedders, hi, jonlee, marcos, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=226345 |
Simon Pieters (:zcorpan)
I guess WebKit doesn't implement PaymentRequest or getUserMedia() yet(?), but filing this anyway...
<iframe allowpaymentrequest> controls if an iframe can access the PaymentRequest API.
<iframe allowusermedia> controls if an iframe can access the getUserMedia() API.
On the spec side:
* When a document is initialized (https://html.spec.whatwg.org/#creating-a-new-browsing-context and https://html.spec.whatwg.org/#initialise-the-document-object ), https://html.spec.whatwg.org/#set-the-allow*-flags is run, which can set "allowpaymentrequest flag" and "allowusemedia flag" on Document.
* PaymentRequest constructor calls https://html.spec.whatwg.org/#allowed-to-use : https://github.com/w3c/browser-payment-api/pull/383
* getUserMedia also call allowed to use: https://github.com/w3c/mediacapture-main/pull/427
Relevant whatwg/html PRs:
https://github.com/whatwg/html/pull/2195
https://github.com/whatwg/html/pull/2217
Relevant w3c/web-platform-tests PRs:
https://github.com/w3c/web-platform-tests/pull/4369
https://github.com/w3c/web-platform-tests/pull/4615
I will write more tests for same origin-domain; see https://github.com/w3c/web-platform-tests/issues/4526
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jon Lee
Can we split this into 2 separate bugs?
Simon Pieters (:zcorpan)
Done. This one is allowpaymentrequest; allowusermedia is bug 167430.
Devin Rousso
*** Bug 226345 has been marked as a duplicate of this bug. ***
Devin Rousso
<rdar://problem/33278860>
Sam Sneddon [:gsnedders]
forward duping to where things have actually been happening :(
*** This bug has been marked as a duplicate of bug 229406 ***