Bug 227909 - Click event listeners become unresponsive after setting window.top.location.href
Summary: Click event listeners become unresponsive after setting window.top.location.href
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 14
Hardware: Unspecified iOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-13 10:27 PDT by michaeldo
Modified: 2021-07-22 12:10 PDT (History)
4 users (show)

See Also:


Attachments
reproduction sample (1.11 KB, text/html)
2021-07-13 10:27 PDT, michaeldo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?