<?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>54856</bug_id>
          
          <creation_ts>2011-02-20 23:43:19 -0800</creation_ts>
          <short_desc>Web Inspector: Web Inspector protocol metabug.</short_desc>
          <delta_ts>2014-01-25 14:54:15 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>54958</dependson>
    
    <dependson>56806</dependson>
    
    <dependson>56815</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Pavel Feldman">pfeldman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bburg</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>paulirish</cc>
    
    <cc>peter</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>354440</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-02-20 23:43:19 -0800</bug_when>
    <thetext>Each entry here should be fixed as a bug. I won&apos;t be creating bugs right now because there are too many:

Raw message format:
For following items see description in https://docs.google.com/a/google.com/document/edit?id=1d_N-OIb3UztuC-_g0piXsIIdp89HnMcDk-uSQ8uamW4&amp;hl=en&amp;authkey=CIf48O4J&amp;pli=1#
- Each event and command request should have &quot;seq&quot; number, each command response should have &quot;seq&quot; and &quot;request_seq&quot;. Rationale: we should be able to tell that the message was lost.
- Each command response should have boolean success and string error message as in protocol above.
- All messages should explicitly state their type (request, response, event)
- Response data should live in attribute &quot;body&quot;
- Rename [notify] into [event] in the IDL
- We should never use Value in the protocol. Should be either Array or Object (or primitive number)
- Some parameters should be marked as optional with default values:
        Console::evaluate(in String expression, in String objectGroup, in [optional, default=0] number callFrameId, in [optional, default=true] boolean includeCommandLineAPI, out [typeRef=objectRef] Object result);
- All events should use notification wording, not command wording: addConsoleMessage-&gt;consoleMessage, updateConsoleMessageRepeatCount-&gt;consoleMessageRepeatCountUpdates, etc.

Domain-specific changes:
[Inspector]
- Move setUserAgentOverride to the Network agent
- Move addNodesToSearchResult to DOMAgent. Abstract agent from performing UI search into executing asynchronous text search managed from the front-end.
- Move start/stopTimelineProfiler to the Timeline agent
- Same for debugging and profiling
- disconnectFromBackend should vanish. We should not ask front-end to initiate disconnect.

[Runtime]
- Merge Runtime agent into Console agent (all it really does is interacting with console)
- For all Runtime messages, out parameter should be more specific (Object, Array, number)
- Worker messages should be moved to worker agent

[InjectedScript]
- Agent should be removed

[DOM]
- Should not push nodes into front-end, should rather request nodes

[CSS]
- All out parameters are broken (Values)

[Timeline]
- Remove timelineProfilerWasStarted / Stopped in favor of start/stop callbacks. This has WebKit implications that need to be resolved.

[Debugger]
- Same for debuggerWasEnabled / debuggerWasDisabled
- activateBreakpoints/deactivateBreakpoints -&gt; setBreakpointsActive(bool)
- We can merge setJavaScriptBreakpoint and setJavaScriptBreakpointBySourceId once protocol allows optional parameters
- We might want to merge evaluateOnCallFrame and getCompletionsOnCallFrame once optional parameters are allowed
- Move workers into separate agent

[BrowserDebugger]
- setAllBrowserBreakpoints should be further split

[Profiler]
- Needs major review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355259</commentid>
    <comment_count>1</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2011-02-22 07:39:53 -0800</bug_when>
    <thetext>Done: - Each event and command request should have &quot;seq&quot; number, each command response should have &quot;seq&quot; and &quot;request_seq&quot;. Rationale: we should be able to tell that the message was lost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356860</commentid>
    <comment_count>2</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2011-02-24 04:11:45 -0800</bug_when>
    <thetext>landed r79539, r79542 - Each command response should have boolean success and string error message as in protocol above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356950</commentid>
    <comment_count>3</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2011-02-24 06:54:13 -0800</bug_when>
    <thetext>r79558 - Response data should live in attribute &quot;body&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>356951</commentid>
    <comment_count>4</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2011-02-24 06:55:25 -0800</bug_when>
    <thetext>r79325 - Rename [notify] into [event] in the IDL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365954</commentid>
    <comment_count>5</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2011-03-11 06:00:16 -0800</bug_when>
    <thetext>r80845 - Each command response should have boolean success and string error message as in protocol above.

it was decided that we don&apos;t want to have separate success flag.
it can be emulated as !response.error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365956</commentid>
    <comment_count>6</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2011-03-11 06:03:05 -0800</bug_when>
    <thetext>r80485 - Each event and command request should have &quot;seq&quot; number, each command response should have &quot;seq&quot; and &quot;request_seq&quot;. Rationale: we should be able to tell that the message was lost.

it was decided to:
1) use id instead of seq for the requests;
2) requestId instead of request_seq for the responses;
3) drop seq for the responses.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>