<?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>136064</bug_id>
          
          <creation_ts>2014-08-19 02:13:12 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: anchorType() == PositionIsOffsetInAnchor in WebCore::Position::offsetInContainerNode</short_desc>
          <delta_ts>2014-09-08 06:03:54 -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>New Bugs</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>121497</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Hodovan">mhodovan.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>rhodovan.u-szeged</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1029986</commentid>
    <comment_count>0</comment_count>
      <attachid>236807</attachid>
    <who name="Martin Hodovan">mhodovan.u-szeged</who>
    <bug_when>2014-08-19 02:13:12 -0700</bug_when>
    <thetext>Created attachment 236807
Test

Test:
&lt;script&gt;
function dom_manipulation () {
  document.execCommand(&quot;selectall&quot;, false, null);
  document.execCommand(&quot;removeformat&quot;, true, null);
}
&lt;/script&gt;
&lt;body onload=&quot;dom_manipulation()&quot; contenteditable&gt;
&lt;wbr &quot;&gt;&lt;svg&gt;&lt;/svg&gt;&lt;samp&gt;&lt;/samp&gt;&lt;s&gt;&lt;script&gt;&lt;/script&gt;&quot;&gt;

Output:
ASSERTION FAILED: anchorType() == PositionIsOffsetInAnchor
Source/WebCore/dom/Position.h(108) : int WebCore::Position::offsetInContainerNode() const

Backtrace:
#0  in WTFCrash () at Source/WTF/wtf/Assertions.cpp:329
#1  in WebCore::Position::offsetInContainerNode (this=0x7fffffffc470) at Source/WebCore/dom/Position.h:108
#2  in WebCore::ApplyStyleCommand::removeInlineStyle (this=0x836490, style=0x8365c0, start=..., end=...) at Source/WebCore/editing/ApplyStyleCommand.cpp:1146
#3  in WebCore::ApplyStyleCommand::applyInlineStyle (this=0x836490, style=0x8365c0) at Source/WebCore/editing/ApplyStyleCommand.cpp:635
#4  in WebCore::ApplyStyleCommand::doApply (this=0x836490) at Source/WebCore/editing/ApplyStyleCommand.cpp:218
#5  in WebCore::CompositeEditCommand::applyCommandToComposite (this=0x84e600, prpCommand=...) at Source/WebCore/editing/CompositeEditCommand.cpp:278
#6  in WebCore::RemoveFormatCommand::doApply (this=0x84e600) at Source/WebCore/editing/RemoveFormatCommand.cpp:93
#7  in WebCore::CompositeEditCommand::apply (this=0x84e600) at Source/WebCore/editing/CompositeEditCommand.cpp:227
#8  in WebCore::applyCommand (command=...) at Source/WebCore/editing/CompositeEditCommand.cpp:182
#9  in WebCore::Editor::removeFormattingAndStyle (this=0x727ea0) at Source/WebCore/editing/Editor.cpp:903
#10 in WebCore::executeRemoveFormat (frame=...) at Source/WebCore/editing/EditorCommand.cpp:985
#11 in WebCore::Editor::Command::execute (this=0x7fffffffc7e0, parameter=..., triggeringEvent=0x0) at Source/WebCore/editing/EditorCommand.cpp:1740
#12 in WebCore::Document::execCommand (this=0x765f20, commandName=..., userInterface=true, value=...) at Source/WebCore/dom/Document.cpp:4276
#13 in WebCore::jsDocumentPrototypeFunctionExecCommand (exec=0x7fffffffc8d0) at WebKitBuild/Debug/DerivedSources/WebCore/JSDocument.cpp:4526
#14 in ?? ()
#15 in ?? ()
#16 in llint_entry () from WebKitBuild/Debug/lib/libjavascriptcore_efl.so.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1033835</commentid>
    <comment_count>1</comment_count>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2014-09-08 06:03:54 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 121497 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>236807</attachid>
            <date>2014-08-19 02:13:12 -0700</date>
            <delta_ts>2014-08-19 02:13:12 -0700</delta_ts>
            <desc>Test</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>259</size>
            <attacher name="Martin Hodovan">mhodovan.u-szeged</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KZnVuY3Rpb24gZG9tX21hbmlwdWxhdGlvbiAoKSB7CiAgZG9jdW1lbnQuZXhlY0Nv
bW1hbmQoInNlbGVjdGFsbCIsIGZhbHNlLCBudWxsKTsKICBkb2N1bWVudC5leGVjQ29tbWFuZCgi
cmVtb3ZlZm9ybWF0IiwgdHJ1ZSwgbnVsbCk7Cn0KPC9zY3JpcHQ+Cjxib2R5IG9ubG9hZD0iZG9t
X21hbmlwdWxhdGlvbigpIiBjb250ZW50ZWRpdGFibGU+Cjx3YnIgIj48c3ZnPjwvc3ZnPjxzYW1w
Pjwvc2FtcD48cz48c2NyaXB0Pjwvc2NyaXB0PiI+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>