<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement <iframe allowpaymentrequest> / <iframe allowusermedia>"
href="https://bugs.webkit.org/show_bug.cgi?id=167417">167417</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Implement <iframe allowpaymentrequest> / <iframe allowusermedia>
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari Technology Preview
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>HTML DOM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zcorpan@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>cdumez@apple.com
</td>
</tr></table>
<p>
<div>
<pre>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 (<a href="https://html.spec.whatwg.org/#creating-a-new-browsing-context">https://html.spec.whatwg.org/#creating-a-new-browsing-context</a> and <a href="https://html.spec.whatwg.org/#initialise-the-document-object">https://html.spec.whatwg.org/#initialise-the-document-object</a> ), <a href="https://html.spec.whatwg.org/#set-the-allow*-flags">https://html.spec.whatwg.org/#set-the-allow*-flags</a> is run, which can set "allowpaymentrequest flag" and "allowusemedia flag" on Document.
* PaymentRequest constructor calls <a href="https://html.spec.whatwg.org/#allowed-to-use">https://html.spec.whatwg.org/#allowed-to-use</a> : <a href="https://github.com/w3c/browser-payment-api/pull/383">https://github.com/w3c/browser-payment-api/pull/383</a>
* getUserMedia also call allowed to use: <a href="https://github.com/w3c/mediacapture-main/pull/427">https://github.com/w3c/mediacapture-main/pull/427</a>
Relevant whatwg/html PRs:
<a href="https://github.com/whatwg/html/pull/2195">https://github.com/whatwg/html/pull/2195</a>
<a href="https://github.com/whatwg/html/pull/2217">https://github.com/whatwg/html/pull/2217</a>
Relevant w3c/web-platform-tests PRs:
<a href="https://github.com/w3c/web-platform-tests/pull/4369">https://github.com/w3c/web-platform-tests/pull/4369</a>
<a href="https://github.com/w3c/web-platform-tests/pull/4615">https://github.com/w3c/web-platform-tests/pull/4615</a>
I will write more tests for same origin-domain; see <a href="https://github.com/w3c/web-platform-tests/issues/4526">https://github.com/w3c/web-platform-tests/issues/4526</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>