<?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>145075</bug_id>
          
          <creation_ts>2015-05-15 15:25:58 -0700</creation_ts>
          <short_desc>Dynamically updating or injecting an iframe causes a textarea to lose its undo stack</short_desc>
          <delta_ts>2015-05-15 21:11:50 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pat O&apos;Callaghan">patocallaghan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>enrica</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1095272</commentid>
    <comment_count>0</comment_count>
    <who name="Pat O&apos;Callaghan">patocallaghan</who>
    <bug_when>2015-05-15 15:25:58 -0700</bug_when>
    <thetext>Yosemite 10.10.3
Safari 8

Steps to reproduce:

1. Type into the textarea
2. Dynamically inject an iframe or update the iframe&apos;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&apos;t change. This works fine on Chrome and Firefox. I haven&apos;t tested on IE.

Here&apos;s a JSBin which replicates the issue
http://jsbin.com/lodika/1/edit?html,js,output</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>