<?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>199016</bug_id>
          
          <creation_ts>2019-06-19 10:49:08 -0700</creation_ts>
          <short_desc>[WinCairo] Allow RemoteInspector socket protocol to exchange backendCommands.</short_desc>
          <delta_ts>2019-10-01 13:11:36 -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>Platform</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>202421</dup_id>
          
          <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="Basuke Suzuki">basuke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1546133</commentid>
    <comment_count>0</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2019-06-19 10:49:08 -0700</bug_when>
    <thetext>This process was omitted in WinCairo&apos;s socket implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546181</commentid>
    <comment_count>1</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2019-06-19 12:25:06 -0700</bug_when>
    <thetext>1. Attach hash of embedded backendCommands.js to backend when sending `SetupInspectorClient` event. https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L209

2. Backend checks received hash with its own backendCommands.js. If they are different, send the content to frontend. If they are same, send empty string. https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorServer.cpp#L277

Note: The result of 2 is returned via DBus&apos;s feature. Our implementation needs to create a new event for that.

3. Client get the backendCommands result and pass it to remote inspector proxy. https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L237

Note: This must be the first message for client to process. It can be possible `SetTargetList` event is delivered before it. We need to sync this situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575676</commentid>
    <comment_count>2</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2019-10-01 13:11:36 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 202421 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>