Bug 145075 - Dynamically updating or injecting an iframe causes a textarea to lose its undo stack
Summary: Dynamically updating or injecting an iframe causes a textarea to lose its und...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified OS X 10.10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 15:25 PDT by Pat O'Callaghan
Modified: 2015-05-15 21:11 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pat O'Callaghan 2015-05-15 15:25:58 PDT
Yosemite 10.10.3
Safari 8

Steps to reproduce:

1. Type into the textarea
2. Dynamically inject an iframe or update the iframe's srcdoc using JavaScript
3. Focus the texarea and undo the last edit

What should happen:
The texarea should go back to the last edit.

What does happen:
The textarea loses its undo stack and doesn't change. This works fine on Chrome and Firefox. I haven't tested on IE.

Here's a JSBin which replicates the issue
http://jsbin.com/lodika/1/edit?html,js,output