Bug 227909

Summary: Click event listeners become unresponsive after setting window.top.location.href
Product: WebKit Reporter: michaeldo
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, graouts, smoley, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Unspecified   
OS: iOS 14   
Attachments:
Description Flags
reproduction sample none

Description michaeldo 2021-07-13 10:27:55 PDT
Created attachment 433417 [details]
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 "Counter++" 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.
Comment 1 Radar WebKit Bug Importer 2021-07-20 10:28:20 PDT
<rdar://problem/80845675>
Comment 2 Smoley 2021-07-22 12:10:06 PDT
Thanks for filing, This does not reproduce for me on Safari Technology Preview 128. Are you able to reproduce this with STP?