<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [WinCairo] Allow RemoteInspector socket protocol to exchange backendCommands."
   href="https://bugs.webkit.org/show_bug.cgi?id=199016#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [WinCairo] Allow RemoteInspector socket protocol to exchange backendCommands."
   href="https://bugs.webkit.org/show_bug.cgi?id=199016">bug 199016</a>
              from <span class="vcard"><a class="email" href="mailto:Basuke.Suzuki@sony.com" title="Basuke Suzuki <Basuke.Suzuki@sony.com>"> <span class="fn">Basuke Suzuki</span></a>
</span></b>
        <pre>1. Attach hash of embedded backendCommands.js to backend when sending `SetupInspectorClient` event. <a href="https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L209">https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L209</a>

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. <a href="https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorServer.cpp#L277">https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/JavaScriptCore/inspector/remote/glib/RemoteInspectorServer.cpp#L277</a>

Note: The result of 2 is returned via DBus'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. <a href="https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L237">https://github.com/WebKit/webkit/blob/89c28d471fae35f1788a0f857067896a10af8974/Source/WebKit/UIProcess/glib/RemoteInspectorClient.cpp#L237</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>