<?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>260556</bug_id>
          
          <creation_ts>2023-08-22 16:22:45 -0700</creation_ts>
          <short_desc>fast/dom/selectorAPI/caseID.html is a constant text failure (when repro steps are followed).</short_desc>
          <delta_ts>2023-08-24 11:45: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>DOM</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=254732</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="Ben Schwartz">ben_schwartz</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>annevk</cc>
    
    <cc>cdumez</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1972775</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-08-22 16:22:45 -0700</bug_when>
    <thetext>fast/dom/selectorAPI/caseID.html

This test is a flaky failure on macOS and iOS.

HISTORY (link throwing 403 error):

https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fdom%2FSelectorAPI%2FcaseID.html

TEXT DIFF:

 PASS document.querySelector(&apos;#lower1&apos;).textContent is &apos;lower 1&apos;
-PASS document.querySelector(&apos;#LOWER2&apos;).textContent is &apos;lower 2&apos;
+FAIL document.querySelector(&apos;#LOWER2&apos;).textContent should be lower 2. Threw exception TypeError: null is not an object (evaluating &apos;document.querySelector(&apos;#LOWER2&apos;).textContent&apos;)
 PASS document.querySelector(&apos;#UPPER1&apos;).textContent is &apos;UPPER 1&apos;
 PASS document.querySelector(&apos;#upper2&apos;).textContent is &apos;UPPER 2&apos;
 PASS document.getElementById(&apos;lower1&apos;).matches(&apos;#lower1&apos;) is true
-PASS document.getElementById(&apos;lower2&apos;).matches(&apos;#LOWER2&apos;) is true
+FAIL document.getElementById(&apos;lower2&apos;).matches(&apos;#LOWER2&apos;) should be true. Was false.
 PASS document.getElementById(&apos;UPPER1&apos;).matches(&apos;#UPPER1&apos;) is true
 PASS document.getElementById(&apos;UPPER2&apos;).matches(&apos;#upper2&apos;) is true
 PASS document.getElementById(&apos;lower1&apos;).webkitMatchesSelector(&apos;#lower1&apos;) is true
-PASS document.getElementById(&apos;lower2&apos;).webkitMatchesSelector(&apos;#LOWER2&apos;) is true
+FAIL document.getElementById(&apos;lower2&apos;).webkitMatchesSelector(&apos;#LOWER2&apos;) should be true. Was false.
 PASS document.getElementById(&apos;UPPER1&apos;).webkitMatchesSelector(&apos;#UPPER1&apos;) is true
 PASS document.getElementById(&apos;UPPER2&apos;).webkitMatchesSelector(&apos;#upper2&apos;) is true
 PASS successfullyParsed is true

DIFF URL:

https://build.webkit.org/results/Apple-Ventura-Release-AppleSilicon-WK2-Tests/267146%40main%20(4573)/fast/dom/SelectorAPI/caseID-pretty-diff.html

REPRODUCTION:

I was unable to reproduce this bug on macOS Ventura 13.5 (22G74/arm64). I will do more research.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972776</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-22 16:23:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/114287946&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972798</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-08-22 17:29:54 -0700</bug_when>
    <thetext>REPRODUCTION:

It appears that the failure of this test depends on these three tests being run before:

fast/dom/HTMLMeterElement/meter-clone.html
fast/dom/SelectorAPI/attrname-case-sensitive.xhtml
fast/dom/SelectorAPI/caseID-strict.html

When running these tests in sequence prior to the reported test, I was able to reproduce this bug on macOS Ventura 13.5 (22G74/arm64) with at a constant rate using the following command:

run-webkit-tests --verbose --clobber-old-results --debug --child-processes 1 fast/dom/HTMLMeterElement/meter-clone.html fast/dom/SelectorAPI/attrname-case-sensitive.xhtml fast/dom/SelectorAPI/caseID-strict.html fast/dom/SelectorAPI/caseID.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972800</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-22 17:48:26 -0700</bug_when>
    <thetext>Test gardening commit 267166@main (f11bf4050d7b): &lt;https://commits.webkit.org/267166@main&gt;

Reviewed commits have been landed. Closing PR #16957 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972924</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-08-23 00:45:08 -0700</bug_when>
    <thetext>Antti, you might want to take a look at this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973118</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-08-23 16:05:51 -0700</bug_when>
    <thetext>This is caused by the SelectorQueryCache. Disabling that cache makes the issue go away. Likely a regression from when Antti made the SelectorQueryCache be shared across documents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973120</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-08-23 16:07:13 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #5)
&gt; This is caused by the SelectorQueryCache. Disabling that cache makes the
&gt; issue go away. Likely a regression from when Antti made the
&gt; SelectorQueryCache be shared across documents.

I was referring to Bug 254732.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973283</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-08-24 08:56:26 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17016</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973321</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-24 11:45:17 -0700</bug_when>
    <thetext>Committed 267237@main (727dbe30fe5f): &lt;https://commits.webkit.org/267237@main&gt;

Reviewed commits have been landed. Closing PR #17016 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>