<?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>229157</bug_id>
          
          <creation_ts>2021-08-16 12:35:10 -0700</creation_ts>
          <short_desc>REGRESSION (r281054): [ iOS14 ] fast/events/touch/ios/long-press-then-drag-to-select-text.html is a constant text failure</short_desc>
          <delta_ts>2021-08-16 15:58:20 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Robert Jenner">jenner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>thorton</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1784614</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-08-16 12:35:10 -0700</bug_when>
    <thetext>fast/events/touch/ios/long-press-then-drag-to-select-text.html

is a constant text failure on iOS 14. 

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fevents%2Ftouch%2Fios%2Flong-press-then-drag-to-select-text.html

TEXT DIFF:
-PASS: Correct Selection
-PASS: Correct Selection
+FAIL: failed to select a word as a result of a long press. Incorrect Selection:
+FAIL: failed to reduce selection to a single character by dragging down. Incorrect Selection:
 
This test started to constantly fail at r281054: https://trac.webkit.org/changeset/281054/webkit

It looks like changes were meant for iOS15, but have also had an impact on iOS14 testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784615</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-16 12:36:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/81993820&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784616</commentid>
    <comment_count>2</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-08-16 12:38:15 -0700</bug_when>
    <thetext>It&apos;s surprising to me that we attempt to run this test in OpenSource bots, considering that it&apos;s under fast/events/touch/ios. That said, this test doesn&apos;t rely on touch events, that&apos;s not necessarily a bad thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784619</commentid>
    <comment_count>3</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-08-16 12:42:55 -0700</bug_when>
    <thetext>&gt; It looks like changes were meant for iOS15, but have also had an impact on
&gt; iOS14 testing.

The changes were not specifically targeted for iOS 14 or 15.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784620</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-08-16 12:51:22 -0700</bug_when>
    <thetext>(In reply to Wenson Hsieh from comment #3)
&gt; &gt; It looks like changes were meant for iOS15, but have also had an impact on
&gt; &gt; iOS14 testing.
&gt; 
&gt; The changes were not specifically targeted for iOS 14 or 15.

That&apos;s good to know. I haven&apos;t dug too far into the details for this yet. My assumption for the targeting was because the bug that introduced this failure was titled with [ iOS 15 ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784622</commentid>
    <comment_count>5</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-08-16 12:52:52 -0700</bug_when>
    <thetext>Oh, I think I know what&apos;s going on.

After r281054, `fast/events/touch/ios/long-press-then-drag-to-select-text.html` is now  the first test that&apos;s run in OpenSource inside the `fast/events/touch/ios` directory. There&apos;s probably a latent bug that causes `long-press-then-drag-to-select-text.html` to fail if it&apos;s run using a newly-created WKWebView.

My patch made us stop running `fast/events/touch/ios/long-press-on-link.html` in OpenSource, since that test was marked as PASS for iOS 14 and I removed that PASS expectation (along with the more broad CRASH expectation for all iOS).

This means we fall back to the directory-level expectations in `fast/events/touch/ios`, which is skipped in OpenSource. Prior to r281054, this test was the first in its directory; now, long-press-then-drag-to-select-text.html is the first test.

I suspect that *restoring* the PASS expectation for `long-press-on-link.html` will &quot;fix&quot; this test failure by making long-press-on-link.html the first test in its directory again. It seems okay to do this too, because `long-press-on-link.html` is a test that we eventually do want to run in open source bots, because it doesn&apos;t depend on touch events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784626</commentid>
    <comment_count>6</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-08-16 12:59:20 -0700</bug_when>
    <thetext>Committed r281103 (240562@main): &lt;https://commits.webkit.org/240562@main&gt;

Let&apos;s see if that &quot;fixes&quot; it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784676</commentid>
    <comment_count>7</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-08-16 15:58:20 -0700</bug_when>
    <thetext>(In reply to Wenson Hsieh from comment #6)
&gt; Committed r281103 (240562@main): &lt;https://commits.webkit.org/240562@main&gt;
&gt; 
&gt; Let&apos;s see if that &quot;fixes&quot; it.

https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fevents%2Ftouch%2Fios%2Flong-press-then-drag-to-select-text.html is starting to show successful runs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>