<?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>161366</bug_id>
          
          <creation_ts>2016-08-29 17:23:12 -0700</creation_ts>
          <short_desc>REGRESSION (r205094): LayoutTest editing/pasteboard/5478250.html is a flaky failure</short_desc>
          <delta_ts>2016-09-22 11:50:44 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=161411</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=161919</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>ap</cc>
    
    <cc>jbedard</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1224459</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-08-29 17:23:12 -0700</bug_when>
    <thetext>REGRESSION: LayoutTest editing/pasteboard/5478250.html is a flaky failure

https://build.webkit.org/builders/Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/builds/7837

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=editing%2Fpasteboard%2F5478250.html

--- /Volumes/Data/slave/elcapitan-debug-tests-wk2/build/layout-test-results/editing/pasteboard/5478250-expected.txt
+++ /Volumes/Data/slave/elcapitan-debug-tests-wk2/build/layout-test-results/editing/pasteboard/5478250-actual.txt
@@ -17,7 +17,8 @@
             RenderText {#text} at (111,0) size 35x18
               text run at (111,0) width 35: &quot;bold.&quot;
         RenderBlock {DIV} at (0,18) size 784x18
-          RenderInline {SPAN} at (0,0) size 398x18
-            RenderText {#text} at (0,0) size 398x18
-              text run at (0,0) width 398: &quot;This text should bold and left justified with \&quot;Some text...\&quot;.&quot;
-caret: position 61 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 4 {DIV} of body
+          RenderInline {SPAN} at (0,0) size 402x18
+            RenderInline {B} at (0,0) size 402x18
+              RenderText {#text} at (0,0) size 402x18
+                text run at (0,0) width 402: &quot;This text should bold and left justified with \&quot;Some text\x{2026}\&quot;.&quot;
+caret: position 59 of child 0 {#text} of child 0 {B} of child 0 {SPAN} of child 2 {DIV} of child 4 {DIV} of body</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1224462</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-08-29 17:26:24 -0700</bug_when>
    <thetext>Earliest failure seen with:
https://trac.webkit.org/log/?verbose=on&amp;rev=205094&amp;stop_rev=205093</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1224465</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-08-29 17:31:03 -0700</bug_when>
    <thetext>Maybe related to https://trac.webkit.org/changeset/205094</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1224622</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-08-30 11:07:18 -0700</bug_when>
    <thetext>Marked test as flaky on mac-wk2 debug in http://trac.webkit.org/projects/webkit/changeset/205187</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1224807</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-08-30 17:28:53 -0700</bug_when>
    <thetext>Just a few comments so that this is documented.

I find it highly unlikely that it was https://trac.webkit.org/changeset/205094.  This change added a function to the test runner that is only called by two tests, which were failing before the change.  editing/pasteboard/5478250.html does not call the added function.  Looking at the immediate preceding change, however, https://trac.webkit.org/changeset/205093, may be a potential culprit, as the error we see in editing.pasteboard/5478250.html has to do with CSS.

I suspect that this bug depends on test order, although I have not managed to reproduce it, so I cannot definitively say that is what is going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225013</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-08-31 11:45:13 -0700</bug_when>
    <thetext>I&apos;m actually curious as to why this test is passing at all.  Opening it in Safari seems to indicate the test should be failing 100% of the time.  Oddly, I can&apos;t get it to fail in the test suite, it seems like it should be failing there too if it is failing in Safari.

Test results:
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK2%20%28Tests%29/r205108%20%287815%29/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225792</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-09-02 09:46:39 -0700</bug_when>
    <thetext>I can reproduce locally. The difference almost certainly means that text replacement now fires, and changes three dots into an ellipsis, so r205094 does seem somewhat related.

&gt; I&apos;m actually curious as to why this test is passing at all.

The test only verifies that the text is bold when running as a pixel test - render tree doesn&apos;t encode whether the text was bold. So that regression occurred long ago, unnoticed. We&apos;ll need a separate bug for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225798</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-09-02 09:55:40 -0700</bug_when>
    <thetext>Steps to reproduce: 

run-webkit-tests --child-processes=1 editing/inserting/smart-link-when-caret-is-moved-before-URL.html editing/pasteboard/5478250.html  -v --no-retry</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226725</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-09-06 10:04:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/28171977&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226726</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-09-06 10:04:45 -0700</bug_when>
    <thetext>Bug 161411 seems like it probably shares the root cause with this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226740</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-06 10:35:45 -0700</bug_when>
    <thetext>*** Bug 161411 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226743</commentid>
    <comment_count>11</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-06 10:41:40 -0700</bug_when>
    <thetext>This is because of a failure to reset state when a new test begins, specifically due to setAutomaticLinkDetectionEnabled(bool) not reseting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226747</commentid>
    <comment_count>12</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-09-06 10:47:20 -0700</bug_when>
    <thetext>Removed flaky expectations and skipped editing/inserting/smart-link-when-caret-is-moved-before-URL.html in https://trac.webkit.org/r205491</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226851</commentid>
    <comment_count>13</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-06 15:05:36 -0700</bug_when>
    <thetext>Further investigation has revealed that the &quot;setAutomaticLinkDetectionEnabled&quot; flag is reset before each test (although, many of the TestRunner&apos;s functions are not reset before each test).  The flag also remains reset through out the test.  Yet, somehow state is being retained between tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227374</commentid>
    <comment_count>14</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-07 15:12:11 -0700</bug_when>
    <thetext>This is a bug with the TestRunner.  The test runner is attempting to modify the text checker from the WebContent process instead of the UI process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227655</commentid>
    <comment_count>15</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-08 11:22:31 -0700</bug_when>
    <thetext>To fully fix this bug, API additions will need to be made.

It is unclear why WKTextChecker.h, the file which provides these checks for most platforms, is excluded on Apple&apos;s builds.  The primary functionality provided, spelling and grammar checking, are defined by Apple&apos;s text checker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230458</commentid>
    <comment_count>16</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-16 10:45:18 -0700</bug_when>
    <thetext>https://bugs.webkit.org/show_bug.cgi?id=161919 contains the more permanent fix to this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1232562</commentid>
    <comment_count>17</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2016-09-22 11:50:44 -0700</bug_when>
    <thetext>This issue has been fixed as of r206261: &lt;http://trac.webkit.org/changeset/206261&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>