<?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>71737</bug_id>
          
          <creation_ts>2011-11-07 15:00:06 -0800</creation_ts>
          <short_desc>REGRESSION(r94822) Crash in moving text node from one bdi element into another bdi element</short_desc>
          <delta_ts>2011-11-25 12:21:45 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>73116</dup_id>
          
          <bug_file_loc>data:text/html,&lt;!doctype html&gt;&lt;div contenteditable&gt;&lt;bdi&gt;&lt;/bdi&gt;&lt;bdi&gt;a&lt;/bdi&gt;&lt;/div&gt; &lt;script&gt; document.querySelector(&quot;bdi&quot;) .appendChild(document.querySelector(&quot;bdi+bdi&quot;).firstChild) &lt;/script&gt; </bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>ayg</cc>
    
    <cc>cevans</cc>
    
    <cc>eric</cc>
    
    <cc>jschuh</cc>
    
    <cc>mbarbella</cc>
    
    <cc>playmobil</cc>
    
    <cc>progame+wk</cc>
    
    <cc>rniwa</cc>
    
    <cc>tabatkins</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>497498</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-11-07 15:00:06 -0800</bug_when>
    <thetext>The following data: URL crashes WebKit nightly r98912 on Mac and Chromium Mac 17.0.932.0 (Official Build 108826) canary 535.8 (@99314) but not Safari Mac Version 5.1.1 (6534.51.22) nor Chromium Mac 15.0.874.106 (Official Build 107270) WebKit 535.2 (@98043).

This is the content of the URL:

data:text/html,&lt;!doctype html&gt;
&lt;div contenteditable&gt;&lt;bdi&gt;&lt;/bdi&gt;&lt;bdi&gt;a&lt;/bdi&gt;&lt;/div&gt;
&lt;script&gt;
document.querySelector(&quot;bdi&quot;)
.appendChild(document.querySelector(&quot;bdi+bdi&quot;).firstChild)
&lt;/script&gt;

This was first reported as Chromium issue: &lt;http://code.google.com/p/chromium/issues/detail?id=101791&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497506</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-11-07 15:04:35 -0800</bug_when>
    <thetext>If you look closely at the data URL, the crash is when moving a text node from one &lt;bdi&gt; to another, not moving a &lt;bdi&gt; into another.  Changing summary accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497513</commentid>
    <comment_count>2</comment_count>
      <attachid>113938</attachid>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-11-07 15:17:24 -0800</bug_when>
    <thetext>Created attachment 113938
Repro

I don’t think this has anything to do with contenteditable… crashes for me with attached repro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497519</commentid>
    <comment_count>3</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2011-11-07 15:23:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/10409078&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497520</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Evans">cevans</who>
    <bug_when>2011-11-07 15:23:56 -0800</bug_when>
    <thetext>FWIW, I don&apos;t think it&apos;s particularly security sensitive. Seems to be a clean NULL and valgrind doesn&apos;t report anything untoward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497528</commentid>
    <comment_count>5</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-11-07 15:30:48 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; FWIW, I don&apos;t think it&apos;s particularly security sensitive. Seems to be a clean NULL and valgrind doesn&apos;t report anything untoward.

OK, guess I was over pessimistic; thanks for the feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497993</commentid>
    <comment_count>6</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-11-08 05:51:36 -0800</bug_when>
    <thetext>Right, contenteditable is a red herring.  This crashes too:

data:text/html,&lt;!doctype html&gt;
&lt;bdi&gt;&lt;/bdi&gt;&lt;bdi&gt;a&lt;/bdi&gt;
&lt;script&gt;
document.querySelector(&quot;bdi&quot;)
.appendChild(document.querySelector(&quot;bdi+bdi&quot;).firstChild)
&lt;/script&gt;

But only with &lt;bdi&gt;, not any other element I tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503584</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-11-15 21:53:14 -0800</bug_when>
    <thetext>Given that it&apos;s bdi, I&apos;m sure it&apos;s bidi-isolate related.  I&apos;ve been waiting for bidi-isolate issues to pile up before I take another crack at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503606</commentid>
    <comment_count>8</comment_count>
    <who name="Yair Yogev">progame+wk</who>
    <bug_when>2011-11-15 22:45:53 -0800</bug_when>
    <thetext>i tracked it to this range
http://trac.webkit.org/log/?action=stop_on_copy&amp;mode=stop_on_copy&amp;rev=94838&amp;stop_rev=94821&amp;limit=999&amp;verbose=on

but that&apos;s different than the one in the title (will test again but it should be correct, hmm...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508999</commentid>
    <comment_count>9</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-11-25 00:04:33 -0800</bug_when>
    <thetext>Also see the bug 73116</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509245</commentid>
    <comment_count>10</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-11-25 12:21:45 -0800</bug_when>
    <thetext>It turned out that there&apos;s even simpler repro for this bug.

*** This bug has been marked as a duplicate of bug 73116 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>113938</attachid>
            <date>2011-11-07 15:17:24 -0800</date>
            <delta_ts>2011-11-07 15:17:24 -0800</delta_ts>
            <desc>Repro</desc>
            <filename>bdi-crash.html</filename>
            <type>text/html</type>
            <size>213</size>
            <attacher name="Dominic Cooney">dominicc</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxkaXY+CjxiZGkgaWQ9InJlY2lwaWVudCI+PC9iZGk+CjxiZGkgaWQ9
ImRvbm9yIj5hPC9iZGk+CjwvZGl2Pgo8c2NyaXB0Pgp2YXIgb3JnYW4gPSBkb2N1bWVudC5xdWVy
eVNlbGVjdG9yKCcjZG9ub3InKS5maXJzdENoaWxkOwpkb2N1bWVudC5xdWVyeVNlbGVjdG9yKCcj
cmVjaXBpZW50JykuYXBwZW5kQ2hpbGQob3JnYW4pOwo8L3NjcmlwdD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>