<?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>41696</bug_id>
          
          <creation_ts>2010-07-06 07:04:28 -0700</creation_ts>
          <short_desc>Web Inspector: script names are shown with &quot;:0&quot;</short_desc>
          <delta_ts>2010-07-07 03:25:39 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Pavel Podivilov">podivilov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>tonyg</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>247063</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Podivilov">podivilov</who>
    <bug_when>2010-07-06 07:04:28 -0700</bug_when>
    <thetext>Web Inspector: script names are shown with &quot;:0&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247064</commentid>
    <comment_count>1</comment_count>
      <attachid>60630</attachid>
    <who name="Pavel Podivilov">podivilov</who>
    <bug_when>2010-07-06 07:06:44 -0700</bug_when>
    <thetext>Created attachment 60630
Proposed patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247161</commentid>
    <comment_count>2</comment_count>
      <attachid>60630</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-07-06 11:52:19 -0700</bug_when>
    <thetext>Comment on attachment 60630
Proposed patch.

Clearing flags on attachment: 60630

Committed r62575: &lt;http://trac.webkit.org/changeset/62575&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247162</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-07-06 11:52:24 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247420</commentid>
    <comment_count>4</comment_count>
      <attachid>60630</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-07 02:44:27 -0700</bug_when>
    <thetext>Comment on attachment 60630
Proposed patch.

WebCore/bindings/v8/ScriptDebugServer.cpp:383
 +          object-&gt;Get(v8::String::New(&quot;lineOffset&quot;))-&gt;ToInteger()-&gt;Value() + 1,
This should be done in DebuggerScript.js using DebuggerScript._v8ToWebkitLineNumber. Please fix this in a separate change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247423</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-07 02:49:42 -0700</bug_when>
    <thetext>There isn&apos;t really any such thing as a &quot;webkit line number&quot;.  Line numbers are a mess.  The code is sprinkled with all sorts of +1&apos;s, not all of which make sense.

Search for lineNumber() to see what I mean.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247427</commentid>
    <comment_count>6</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-07 02:55:08 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; There isn&apos;t really any such thing as a &quot;webkit line number&quot;.  Line numbers are a mess.  The code is sprinkled with all sorts of +1&apos;s, not all of which make sense.
&gt; 
&gt; Search for lineNumber() to see what I mean.

In case of debugger we try to localize line number arithmetic related to v8(script line numbers start from 0)/WebCore(script line numbers are assumed to start from 1) in DebuggerScript.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247449</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-07-07 03:25:39 -0700</bug_when>
    <thetext>The question is where you get the line number from in WebCore.  I think the parser starts at 0, but ScriptController/JavaScriptCore start at 1.  Someone needs to straighten this all out some day.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>60630</attachid>
            <date>2010-07-06 07:06:44 -0700</date>
            <delta_ts>2010-07-07 02:44:27 -0700</delta_ts>
            <desc>Proposed patch.</desc>
            <filename>tmp.diff</filename>
            <type>text/plain</type>
            <size>1428</size>
            <attacher name="Pavel Podivilov">podivilov</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZTVkYzhjMS4uOTMyMWNlZiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wNy0wNiAgUGF2ZWwgUG9kaXZp
bG92ICA8cG9kaXZpbG92QGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBXZWIgSW5zcGVjdG9yOiBjb252ZXJ0IHNjcmlwdCBvZmZz
ZXQgdG8gd2Via2l0IGZvcm1hdCBpbiB2OCBTY3JpcHREZWJ1Z1NlcnZlcgorICAgICAgICBodHRw
czovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NDE2OTYKKworICAgICAgICAqIGJp
bmRpbmdzL3Y4L1NjcmlwdERlYnVnU2VydmVyLmNwc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