<?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>200894</bug_id>
          
          <creation_ts>2019-08-19 12:51:23 -0700</creation_ts>
          <short_desc>[WebDriver][GTK] WebDriver css-selector fails on WebKitGTK+ 2.25.4 and Fedora 31 (rawhide)</short_desc>
          <delta_ts>2019-08-20 06:05:46 -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>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>194367</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=194367</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1562777</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-08-19 12:51:23 -0700</bug_when>
    <thetext>The WebKitGTK WebDriver for 2.25.4 fails to execute a simply css-selector command on Fedora 31 (rawhide).

This issue is not reproducible with the WebDriver shipped by Debian experimental for the very same version of WebKitGTK (2.25.4).

I have inspected the patches shipped by both Debian and Fedora versions, as well as the different build options and at first sight I can&apos;t see nothing there to explain this different behaviour. Perhaps its related with some compiler bug.
The complete build logs, including build flags passed are here:
* Fedora: https://kojipkgs.fedoraproject.org/packages/webkit2gtk3/2.25.4/1.fc31/data/logs/x86_64/build.log
* Debian: https://buildd.debian.org/status/fetch.php?pkg=webkit2gtk&amp;arch=amd64&amp;ver=2.25.4-1&amp;stamp=1565353274&amp;raw=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1562779</commentid>
    <comment_count>1</comment_count>
      <attachid>376704</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-08-19 12:55:00 -0700</bug_when>
    <thetext>Created attachment 376704
simplified test case to reproduce the issue

I&apos;m attaching a simplified test-case to reproduce the issue.
To test it do the following:
1) On a terminal open WebKitWebDriver to listen on 127.0.0.1:444
WebKitWebDriver --host=127.0.0.1 --port=4444
2) On another terminal run the attached script. Pass &quot;epiphany&quot; to execute epiphany from the webdriver or pass the path to the minibrowser to execute with the MB.

If it works as expected it should print something like:
{&quot;value&quot;:null}{&quot;value&quot;:[{&quot;element-6066-11e4-a52e-4f735466cecf&quot;:&quot;node-31A8F3A7-8142-4F75-B80F-538E5208ED28&quot;}]}

But on Fedora it always prints:
{&quot;value&quot;:null}{&quot;value&quot;:{&quot;error&quot;:&quot;javascript error&quot;,&quot;message&quot;:&quot;Unexpected string literal &apos;/&apos;. Expected &apos;)&apos; to end a compound expression.&quot;,&quot;stacktrace&quot;:&quot;&quot;}}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1562800</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-08-19 14:15:19 -0700</bug_when>
    <thetext>The issue is also reproducible on Fedora 30 with webkit2gtk3-2.24.3-1.fc30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1562868</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-08-19 17:43:17 -0700</bug_when>
    <thetext>I have hunted down the issue to be caused when WebKitGTK+ is built with python3 instead of python2.

Passing &quot;-DPYTHON_EXECUTABLE=/usr/bin/python3&quot; to the build or building on a system that doesn&apos;t have python2 (CMake will pick python3 if it can&apos;t find python2) causes this problem.

The problem is very likely caused by some of the python scripts that are run as part of the build process that generate code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1563035</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-08-20 06:05:46 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 194367 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>376704</attachid>
            <date>2019-08-19 12:55:00 -0700</date>
            <delta_ts>2019-08-19 12:55:00 -0700</delta_ts>
            <desc>simplified test case to reproduce the issue</desc>
            <filename>test-webdriver.sh</filename>
            <type>text/plain</type>
            <size>2151</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">IyEvYmluL2Jhc2gKIwojIFRvIHJ1biB0aGlzIHRlc3QgZmlyc3Qgb3BlbiBXZWJLaXRXZWJEcml2
ZXIgdG8gbGlzdGVuIGluIDEyNy4wLjAuMTo0NDQKIyBFeGFtcGxlOgojeHZmYi1ydW4gV2ViS2l0
V2ViRHJpdmVyIC0taG9zdD0xMjcuMC4wLjEgLS1wb3J0PTQ0NDQKIyBUaGVuIHJ1biB0aGlzIHNj
cmlwdCwgaWYgaXQgd29ya3MgaXQgc2hvdWxkIHByaW50IHNvbWV0aGluZyBsaWtlCiMgeyJ2YWx1
ZSI6bnVsbH17InZhbHVlIjpbeyJlbGVtZW50LTYwNjYtMTFlNC1hNTJlLTRmNzM1NDY2Y2VjZiI6
Im5vZGUtNzIzRERDOTAtMzE0RC00NjFCLUFGOUUtMDZDQ0I4RjcwRERBIn1dfQojIEFuZCBObyAi
amF2YX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