Bug 140262
| Summary: | Setting iframe src clears undo stack | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Max Vujovic <mvujovic> |
| Component: | Frames | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, dbates, enrica, rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Max Vujovic
Filing this for a colleague who ran into it. In Safari, if you load an iframe while typing in a text input, undo stops working in the text input.
Here's a reproduction:
http://jsfiddle.net/4qsfya3a/2/
It's been mentioned on stackoverflow before:
http://stackoverflow.com/questions/10810246/iframe-load-clears-browser-undo-stack
Which has another reproduction:
http://jsfiddle.net/N6t8P/6/
The stackoverflow question implies it's also broken in Chrome. However, I've found this works correctly in latest Chrome and Firefox (didn't try IE).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/22704530>
Ahmad Saleem
I am able to reproduce this bug in Safari 16 and Safari Technology Preview 155 using attached test case and CMD+Z opens previous closed tab (if not in Private Mode).
Both Chrome Canary 108 and Firefox Nightly 107 also has differences where Firefox do CMD+Z and remove all text, Chrome go character by character.
Just wanted to update latest results. Thanks!