<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>167417</bug_id>
          
          <creation_ts>2017-01-25 06:13:29 -0800</creation_ts>
          <short_desc>Implement &lt;iframe allow=&quot;payment&quot;&gt;</short_desc>
          <delta_ts>2021-09-01 06:57:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>229406</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=226345</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters (:zcorpan)">zcorpan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>brad.girardeau</cc>
    
    <cc>cdumez</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>gsnedders</cc>
    
    <cc>hi</cc>
    
    <cc>jonlee</cc>
    
    <cc>marcos</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1269798</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2017-01-25 06:13:29 -0800</bug_when>
    <thetext>I guess WebKit doesn&apos;t implement PaymentRequest or getUserMedia() yet(?), but filing this anyway...

&lt;iframe allowpaymentrequest&gt; controls if an iframe can access the PaymentRequest API.

&lt;iframe allowusermedia&gt; 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 &quot;allowpaymentrequest flag&quot; and &quot;allowusemedia flag&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269865</commentid>
    <comment_count>1</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2017-01-25 10:04:39 -0800</bug_when>
    <thetext>Can we split this into 2 separate bugs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1269945</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2017-01-25 13:50:24 -0800</bug_when>
    <thetext>Done. This one is allowpaymentrequest; allowusermedia is bug 167430.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1764673</commentid>
    <comment_count>3</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2021-05-27 22:14:26 -0700</bug_when>
    <thetext>*** Bug 226345 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1764674</commentid>
    <comment_count>4</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2021-05-27 22:14:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/33278860&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1789310</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-09-01 06:57:23 -0700</bug_when>
    <thetext>forward duping to where things have actually been happening :(

*** This bug has been marked as a duplicate of bug 229406 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>