<?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>198055</bug_id>
          
          <creation_ts>2019-05-20 15:40:52 -0700</creation_ts>
          <short_desc>[Meta][WinCairo] Enable WebDriver</short_desc>
          <delta_ts>2024-02-15 13:51:52 -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>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>
          <dependson>269315</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Don Olmstead">don.olmstead</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>fujii</cc>
    
    <cc>haruhisa.shin</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1537710</commentid>
    <comment_count>0</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2019-05-20 15:40:52 -0700</bug_when>
    <thetext>WebDriver support is nice to have.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2010599</commentid>
    <comment_count>1</comment_count>
    <who name="haruhisa.shin">haruhisa.shin</who>
    <bug_when>2024-02-05 01:31:25 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/23847</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013065</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-13 00:11:13 -0800</bug_when>
    <thetext>Committed 274530@main (db706f64b581): &lt;https://commits.webkit.org/274530@main&gt;

Reviewed commits have been landed. Closing PR #23847 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013066</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-13 00:12:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/122855467&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013259</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-02-13 12:30:59 -0800</bug_when>
    <thetext>Debug build is crashing. I&apos;m going to revert. PTAL.

Buildbot: builder WinCairo-64-bit-Debug-Tests build 21837 : 274532@main
https://build.webkit.org/#/builders/727/builds/21837

ASSERTION FAILED: (m_client &amp;&amp; !client) || (!m_client &amp;&amp; client)
C:\BW\WinCairo-64-bit-Debug-Build\build\Source\JavaScriptCore\inspector/remote/RemoteInspector.cpp(166) : setClient
1   00007FF8F5DD1CA9 WTFCrash
2   00007FF8E80E383D WTFCrashWithInfo
3   00007FF8E90F17DD Inspector::RemoteInspector::setClient
4   00007FF8EA6213B2 WebKit::AutomationClient::AutomationClient
5   00007FF8EA6342D7 std::make_unique&lt;WebKit::AutomationClient,WebKit::WebProcessPool &amp;,0&gt;
6   00007FF8EA632EB0 WTF::makeUnique&lt;WebKit::AutomationClient,WebKit::WebProcessPool &amp;&gt;
7   00007FF8EA6328CF WebKit::WebProcessPool::platformInitialize
8   00007FF8EB6F4108 WebKit::WebProcessPool::WebProcessPool
9   00007FF8EB6F36DC WebKit::WebProcessPool::create
10  00007FF8EB87BC10 WKContextCreateWithConfiguration
11  00007FF64CA1F65D WTR::TestController::generatePageConfiguration
12  00007FF64CA20806 WTR::TestController::createWebViewWithOptions
13  00007FF64CA21520 WTR::TestController::ensureViewSupportsOptionsForTest
14  00007FF64CA24052 WTR::TestController::configureViewForTest
15  00007FF64CA78C4A WTR::TestInvocation::invoke
16  00007FF64CA24378 WTR::TestController::runTest
17  00007FF64CA2462E WTR::TestController::runTestingServerLoop
18  00007FF64CA1D1D7 WTR::TestController::run
19  00007FF64CA1CDCA WTR::TestController::TestController
20  00007FF64CAA8F8D main
21  00007FF64CE8F674 __scrt_common_main_seh
22  00007FF904EF4DE0 BaseThreadInitThunk
23  00007FF91541EC4B RtlUserThreadStart</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013379</commentid>
    <comment_count>5</comment_count>
    <who name="haruhisa.shin">haruhisa.shin</who>
    <bug_when>2024-02-13 17:42:14 -0800</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #4)
&gt; Debug build is crashing. I&apos;m going to revert. PTAL.
&gt; 
&gt; Buildbot: builder WinCairo-64-bit-Debug-Tests build 21837 : 274532@main
&gt; https://build.webkit.org/#/builders/727/builds/21837
&gt; 
&gt; ASSERTION FAILED: (m_client &amp;&amp; !client) || (!m_client &amp;&amp; client)
&gt; C:\BW\WinCairo-64-bit-Debug-Build\build\Source\JavaScriptCore\inspector/
&gt; remote/RemoteInspector.cpp(166) : setClient
&gt; 1   00007FF8F5DD1CA9 WTFCrash
&gt; 2   00007FF8E80E383D WTFCrashWithInfo
&gt; 3   00007FF8E90F17DD Inspector::RemoteInspector::setClient
&gt; 4   00007FF8EA6213B2 WebKit::AutomationClient::AutomationClient
&gt; 5   00007FF8EA6342D7
&gt; std::make_unique&lt;WebKit::AutomationClient,WebKit::WebProcessPool &amp;,0&gt;
&gt; 6   00007FF8EA632EB0
&gt; WTF::makeUnique&lt;WebKit::AutomationClient,WebKit::WebProcessPool &amp;&gt;
&gt; 7   00007FF8EA6328CF WebKit::WebProcessPool::platformInitialize
&gt; 8   00007FF8EB6F4108 WebKit::WebProcessPool::WebProcessPool
&gt; 9   00007FF8EB6F36DC WebKit::WebProcessPool::create
&gt; 10  00007FF8EB87BC10 WKContextCreateWithConfiguration
&gt; 11  00007FF64CA1F65D WTR::TestController::generatePageConfiguration
&gt; 12  00007FF64CA20806 WTR::TestController::createWebViewWithOptions
&gt; 13  00007FF64CA21520 WTR::TestController::ensureViewSupportsOptionsForTest
&gt; 14  00007FF64CA24052 WTR::TestController::configureViewForTest
&gt; 15  00007FF64CA78C4A WTR::TestInvocation::invoke
&gt; 16  00007FF64CA24378 WTR::TestController::runTest
&gt; 17  00007FF64CA2462E WTR::TestController::runTestingServerLoop
&gt; 18  00007FF64CA1D1D7 WTR::TestController::run
&gt; 19  00007FF64CA1CDCA WTR::TestController::TestController
&gt; 20  00007FF64CAA8F8D main
&gt; 21  00007FF64CE8F674 __scrt_common_main_seh
&gt; 22  00007FF904EF4DE0 BaseThreadInitThunk
&gt; 23  00007FF91541EC4B RtlUserThreadStart

Thank you for the information. I will confirm today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013857</commentid>
    <comment_count>6</comment_count>
    <who name="haruhisa.shin">haruhisa.shin</who>
    <bug_when>2024-02-15 01:19:07 -0800</bug_when>
    <thetext>The socket port implementation can only hold one JSC::RemoteInspector::Client.
However, when two or more WebContext(WebProcessPool) were created, each would attempt to set the JSC::RemoteInspector::Client, resulting in the above assertion.

One test before &quot;animation/cross-fade-background-image.html&quot; is &quot;animation/crash-on-removing-animation.html&quot;.
This test caused WTR to restart, which generated a second WebContext, thus causing the above assertion.
Also, when &quot;New Window&quot; was executed in MiniBrowser, multiple WebContxts were created and the same assertion occurred.

To fix this problem, in the WebProessPool::platformInitialize(), do not create a new AutomationClient if JSC::RemoteInspector::Client is already set.
This means that only the first generated WebContext can be manipulated by WebDriver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013858</commentid>
    <comment_count>7</comment_count>
    <who name="haruhisa.shin">haruhisa.shin</who>
    <bug_when>2024-02-15 01:22:15 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/24495</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014125</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-15 13:51:50 -0800</bug_when>
    <thetext>Committed 274762@main (b09419cb34e8): &lt;https://commits.webkit.org/274762@main&gt;

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

    </bug>

</bugzilla>