<?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>144471</bug_id>
          
          <creation_ts>2015-04-30 14:39:17 -0700</creation_ts>
          <short_desc>[iOS] Lots of editing tests ASSERT that &quot;Calling editorState() should not cause a synchronous layout.&quot;</short_desc>
          <delta_ts>2015-05-07 18:14: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>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>144774</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=144774</see_also>
          <bug_file_loc></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="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>enrica</cc>
    
    <cc>joepeck</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1090580</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-04-30 14:39:17 -0700</bug_when>
    <thetext>* SUMMARY
[iOS] Lots of editing tests ASSERT that &quot;Calling editorState() should not cause a synchronous layout.&quot;

* STEPS TO REPRODUCE
1. shell&gt; run-webkit-tests --debug --ios-simulator editing

* NOTES
About 30 editing tests are failing with this ASSERT/CRASH log.

stderr:
ASSERTION FAILED: Calling editorState() should not cause a synchronous layout.
needsLayout == (view &amp;&amp; view-&gt;needsLayout())
Source/WebKit2/WebProcess/WebPage/WebPage.cpp(4409) : void WebKit::WebPage::didChangeSelection()
1   0x118548920 WTFCrash
2   0x113c43b73 WebKit::WebPage::didChangeSelection()
3   0x113c83bb8 WebKit::WebPage::updateSelectionAppearance()
4   0x113b54736 WebKit::WebFrameLoaderClient::dispatchDidLayout()
5   0x11a5c12fa WebCore::FrameView::performPostLayoutTasks()
6   0x11a5c0798 WebCore::FrameView::layout(bool)
7   0x11a215627 WebCore::Document::updateLayout()
8   0x11a218f8f WebCore::Document::updateLayoutIgnorePendingStylesheets(WebCore::Document::RunPostLayoutTasks)
9   0x11a922907 WebCore::InsertIntoTextNodeCommand::doApply()
10  0x119f6fbf7 WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::EditCommand&gt;)
11  0x119f717f8 WebCore::CompositeEditCommand::insertTextIntoNode(WTF::PassRefPtr&lt;WebCore::Text&gt;, unsigned int, WTF::String const&amp;)
12  0x11a92ba35 WebCore::InsertTextCommand::doApply()
13  0x119f6fd41 WebCore::CompositeEditCommand::applyCommandToComposite(WTF::PassRefPtr&lt;WebCore::CompositeEditCommand&gt;, WebCore::VisibleSelection const&amp;)
14  0x11bb4575b WebCore::TypingCommand::insertTextRunWithoutNewlines(WTF::String const&amp;, bool)
15  0x11bb465f2 WebCore::TypingCommandLineOperation::operator()(unsigned long, unsigned long, bool) const
16  0x11bb45f11 void WebCore::forEachLineInString&lt;WebCore::TypingCommandLineOperation&gt;(WTF::String const&amp;, WebCore::TypingCommandLineOperation const&amp;)
17  0x11bb44b58 WebCore::TypingCommand::insertText(WTF::String const&amp;, bool)
18  0x11bb44a0f WebCore::TypingCommand::insertText(WebCore::Document&amp;, WTF::String const&amp;, WebCore::VisibleSelection const&amp;, unsigned int, WebCore::TypingCommand::TextCompositionType)
19  0x11bb447c5 WebCore::TypingCommand::insertText(WebCore::Document&amp;, WTF::String const&amp;, unsigned int, WebCore::TypingCommand::TextCompositionType)
20  0x11a3ae3f4 WebCore::executeInsertText(WebCore::Frame&amp;, WebCore::Event*, WebCore::EditorCommandSource, WTF::String const&amp;)
21  0x11a3ac117 WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const
22  0x11a225798 WebCore::Document::execCommand(WTF::String const&amp;, bool, WTF::String const&amp;)
23  0x11ab04e95 WebCore::jsDocumentPrototypeFunctionExecCommand(JSC::ExecState*)
24  0x21fd0827028
25  0x1182ebe53 llint_entry
26  0x1182ebe53 llint_entry
27  0x21fd08281da
28  0x1182ebe53 llint_entry
29  0x1182ebe53 llint_entry
30  0x1182e56d9 vmEntryToJavaScript
31  0x11814e8fc JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090583</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-04-30 14:43:10 -0700</bug_when>
    <thetext>This affects not just editing tests but that is predominantly where they happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090588</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-04-30 14:47:56 -0700</bug_when>
    <thetext>I added this assertion. It is indicative of a possible performance problem.
Did we start hitting this recently?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090591</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-04-30 15:06:51 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I added this assertion. It is indicative of a possible performance problem.
&gt; Did we start hitting this recently?

Yes. Running iOS LayoutTests in Debug I see this frequently, especially in the editing directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1090593</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-04-30 15:14:50 -0700</bug_when>
    <thetext>&lt;rdar://problem/20771251&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1092938</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-05-07 18:14:50 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 144774 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>