<?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>227909</bug_id>
          
          <creation_ts>2021-07-13 10:27:55 -0700</creation_ts>
          <short_desc>Click event listeners become unresponsive after setting window.top.location.href</short_desc>
          <delta_ts>2021-07-22 12:10:06 -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>UI Events</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>michaeldo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>graouts</cc>
    
    <cc>smoley</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1776667</commentid>
    <comment_count>0</comment_count>
      <attachid>433417</attachid>
    <who name="">michaeldo</who>
    <bug_when>2021-07-13 10:27:55 -0700</bug_when>
    <thetext>Created attachment 433417
reproduction sample

Filed from details in crbug.com/1003822

Steps to reproduce the problem:
1. Open the attached html page on iOS 14 or iOS 15 in Safari or a WKWebView
2. Click on a &quot;Counter++&quot; button and observe counter increasing
3. Click the button to open a new website and return back to the page
4. Both buttons are unresponsive and counter is not updating
5. Make a scrolling interaction to the page, and the buttons will become responsive again

What is the expected behavior?
Buttons should stay responsive after coming back to the page.

What went wrong?
Buttons with click event listeners became unresponsive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778199</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-20 10:28:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/80845675&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778785</commentid>
    <comment_count>2</comment_count>
    <who name="Smoley">smoley</who>
    <bug_when>2021-07-22 12:10:06 -0700</bug_when>
    <thetext>Thanks for filing, This does not reproduce for me on Safari Technology Preview 128. Are you able to reproduce this with STP?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>433417</attachid>
            <date>2021-07-13 10:27:55 -0700</date>
            <delta_ts>2021-07-13 10:27:55 -0700</delta_ts>
            <desc>reproduction sample</desc>
            <filename>iOS13-click.html</filename>
            <type>text/html</type>
            <size>1137</size>
            <attacher>michaeldo</attacher>
            
              <data encoding="base64">PG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9ImluaXRpYWwtc2NhbGU9MSxtYXhpbXVtLXNj
YWxlPTEiLz48L21ldGE+CjxpZnJhbWUgc3JjZG9jPSI8bWV0YSBuYW1lPSd2aWV3cG9ydCcgY29u
dGVudD0naW5pdGlhbC1zY2FsZT0xLG1heGltdW0tc2NhbGU9MScvPjwvaGVhZD4KICAgICAgICAg
ICAgICAgIDxidXR0b24gaWQ9J2J0bi13ZWJzaXRlJyBzdHlsZT0nd2lkdGg6IDEwMHB4OyBoZWln
aHQ6IDUwcHgnPk9wZW4gV2Vic2l0ZTwvYnV0dG9uPgogICAgICAgICAgICAgICAgPGJ1dHRvbiBp
ZD0nYnRuLWNvdW50ZXInIHN0eWxlPSd3aWR0aDogMTAwcHg7IGhlaWdodDogNTBweCc+Q291bnRl
cisrPC9idXR0b24+CiAgICAgICAgICAgICAgICA8cCBpZD0nbXNnLWNvdW50ZXInIHN0eWxlPSdk
aXNwbGF5OiBpbmxpbmU7IG1hcmdpbi1sZWZ0OiAxMHB4Oyc+MDwvcD4KCiAgICAgICAgICAgICAg
ICA8c2NyaXB0PgogICAgICAgICAgICAgICAgICAgIHZhciBidG5XZWJzaXRlID0gZG9jdW1lbnQu
cXVlcnlTZWxlY3RvcignI2J0bi13ZWJzaXRlJyk7CiAgICAgICAgICAgICAgICAgICAgdmFyIGJ0
bkNvdW50ZXIgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCcjYnRuLWNvdW50ZXInKTsKICAgICAg
ICAgICAgICAgICAgICB2YXIgbXNnQ291bnRlciA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJyNt
c2ctY291bnRlcicpOwogICAgICAgICAgICAgICAgICAgIHZhciBjb3VudGVyID0gMDsKICAgICAg
ICAgICAgICAgICAgICBidG5XZWJzaXRlLmFkZEV2ZW50TGlzdGVuZXIoJ2NsaWNrJywgZnVuY3Rp
b24oKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHdpbmRvdy50b3AubG9jYXRpb24uaHJlZiA9
ICdodHRwczovL3d3dy5nb29nbGUuY29tJiMzOTs7CiAgICAgICAgICAgICAgICAgICAgfSk7CiAg
ICAgICAgICAgICAgICAgICAgYnRuQ291bnRlci5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsIGZ1
bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgICAgICBtc2dDb3VudGVyLmlubmVySFRNTCA9
IE51bWJlcihtc2dDb3VudGVyLmlubmVySFRNTCkgKyAxOwogICAgICAgICAgICAgICAgICAgIH0p
OwogICAgICAgICAgICAgICAgPC9zY3JpcHQ+IiBzY3JvbGxpbmc9Im5vIj4KPC9pZnJhbWU+
</data>

          </attachment>
      

    </bug>

</bugzilla>