<?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>206646</bug_id>
          
          <creation_ts>2020-01-23 01:44:14 -0800</creation_ts>
          <short_desc>REGRESSION (r254329?): safaridriver regression in &quot;find elements&quot; command</short_desc>
          <delta_ts>2020-01-27 10:18:02 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=204151</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="Philip Jägenstedt">philip</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>cgarcia</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>w0nka</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1610012</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2020-01-23 01:44:14 -0800</bug_when>
    <thetext>In https://github.com/web-platform-tests/wpt/pull/21369 I have debugged why there are new failures in STP 99 compared to STP 98:
https://github.com/web-platform-tests/wpt/pull/21359#issuecomment-577519963

At the root of it is a &quot;JavaScriptError;Unexpected keyword &apos;function&apos;. Expected &apos;)&apos; to end a compound expression.&quot; which seems to be a failure to execute an internal script called WDFindNodes.js.

In https://wpt.fyi/results/webdriver/tests?diff&amp;filter=ADC&amp;run_id=416830016&amp;run_id=393600011 it looks like this affects many WebDriver endpoints, not just &quot;find elements&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610167</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-23 10:09:38 -0800</bug_when>
    <thetext>&lt;rdar://problem/58838680&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610171</commentid>
    <comment_count>2</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2020-01-23 10:10:47 -0800</bug_when>
    <thetext>Can confirm this is a recent regression, not sure where the fix is yet. I am assuming that the regression point is &lt;https://trac.webkit.org/changeset/254329/webkit&gt; but I have not confirmed. Will keep this updated as I dig further with a debug build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610308</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2020-01-23 13:50:01 -0800</bug_when>
    <thetext>r254329 indeed caused a problem with how safaridriver inserts sourceURL directives.
A fix has been submitted for review on the safaridriver side.

No fix needed in WebKit, thus no further updates will be provided here. The fix should be included in the next release of Safari Technology Preview.

Unfortunately there is no workaround for this issue in STP99.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1611463</commentid>
    <comment_count>4</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2020-01-27 10:18:02 -0800</bug_when>
    <thetext>*** Bug 206827 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>