<?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>218156</bug_id>
          
          <creation_ts>2020-10-24 21:53:26 -0700</creation_ts>
          <short_desc>REGRESSION(iOS 14): Webshare API only works once - Promise never resolved/rejected</short_desc>
          <delta_ts>2020-10-25 13:26:58 -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>WebKit API</component>
          <version>Safari 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>216913</dup_id>
          
          <bug_file_loc>https://developer.apple.com/forums/thread/662629</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hanz Luo">lhz0516</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>lhz0516</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701285</commentid>
    <comment_count>0</comment_count>
    <who name="Hanz Luo">lhz0516</who>
    <bug_when>2020-10-24 21:53:26 -0700</bug_when>
    <thetext>On iOS 14 devices (test with iOS 14.0 and 14.1 / Safari) it works fine only once. For the second time it throws a permission error:


Error: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.


Here are all the steps to reproduce:

     1. Go to https://mdn.github.io/dom-examples/web-share/

     2. Click the &quot;Share MDN!&quot; button

     3. Choose one of the suggested options or just click X to close the sharing popover

     4. Click on the &quot;Share MDN!&quot; button again

     5. See the error

We see the error because the previous sharing promise never gets resolved or rejected.
iOS 13 doesn&apos;t have the issue. Only iOS 14 has it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701317</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-25 12:02:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/70662025&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701325</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2020-10-25 13:26:58 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>