<?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>43246</bug_id>
          
          <creation_ts>2010-07-30 06:24:58 -0700</creation_ts>
          <short_desc>Web Inspector: incorrect absolute protocol-less URLs in tooltips of links in the ElementsTreeOutline</short_desc>
          <delta_ts>2010-08-03 10:54:45 -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>All</rep_platform>
          <op_sys>All</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>1</everconfirmed>
          <reporter name="Alexander Pavlov (apavlov)">apavlov</reporter>
          <assigned_to name="Alexander Pavlov (apavlov)">apavlov</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>258173</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-07-30 06:24:58 -0700</bug_when>
    <thetext>In a page loaded from http://example.com,
&lt;a href=&quot;//example.org/foo&quot;&gt;...&lt;/a&gt; is given the following tooltip in the ElementsTreeOutline:
&quot;http://example.com//example.org/foo&quot;, which should be &quot;http://example.org/foo&quot; instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259432</commentid>
    <comment_count>1</comment_count>
      <attachid>63333</attachid>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-08-03 06:57:17 -0700</bug_when>
    <thetext>Created attachment 63333
[PATCH] Suggested solution</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259513</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-08-03 09:51:04 -0700</bug_when>
    <thetext>Hmm, I didn&apos;t even know about this style of link. Is it specified somewhere?
I took a look at the HTML5 spec and nothing popped out at me. I&apos;d appreciate
a link if have one.

Also, I notice a number of calls to completeURL (in frames) just use the
documentURL. Does that respect a &lt;base&gt; element if there is one? Meaning,
does the documentURL property update if there is a &lt;base href=&quot;...&quot;&gt; or
xml:base attribute, or must those be determined dynamically?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259523</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-08-03 10:15:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hmm, I didn&apos;t even know about this style of link. Is it specified somewhere?
&gt; I took a look at the HTML5 spec and nothing popped out at me. I&apos;d appreciate
&gt; a link if have one.

Please see http://www.faqs.org/rfcs/rfc1808.html (2.4.3) for the reference.

&gt; Also, I notice a number of calls to completeURL (in frames) just use the
&gt; documentURL. Does that respect a &lt;base&gt; element if there is one? Meaning,
&gt; does the documentURL property update if there is a &lt;base href=&quot;...&quot;&gt; or
&gt; xml:base attribute, or must those be determined dynamically?

I&apos;m not entitled to answer this question :) The only thing I&apos;ve done in this direction was the introduction of the documentURL property which is determined in InspectorDOMAgent as document-&gt;url(). I do not know whether the parser takes &lt;base href...&gt; into account when computing document-&gt;url() but anyway, I believe it is the right point where this should be done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259535</commentid>
    <comment_count>4</comment_count>
      <attachid>63333</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-08-03 10:39:05 -0700</bug_when>
    <thetext>Comment on attachment 63333
[PATCH] Suggested solution

&gt; (use the baseURL protocol).

NIT: might be better if it was &quot;(use the baseURL&apos;s protocol).&quot;.


&gt; Please see http://www.faqs.org/rfcs/rfc1808.html (2.4.3) for the reference.

Thanks, this is great =). I see this format under Relative URLs.


&gt; &gt; Also, I notice a number of calls to completeURL (in frames) just use the
&gt; &gt; documentURL. Does that respect a &lt;base&gt; element if there is one? Meaning,
&gt; &gt; does the documentURL property update if there is a &lt;base href=&quot;...&quot;&gt; or
&gt; &gt; xml:base attribute, or must those be determined dynamically?
&gt; 
&gt; I&apos;m not entitled to answer this question :)

I think &quot;entitled&quot; is the wrong word. But I understand what you mean =).


&gt; The only thing I&apos;ve done in this direction was the introduction of the documentURL property
&gt; which is determined in InspectorDOMAgent as document-&gt;url(). I do not know whether the
&gt; parser takes &lt;base href...&gt; into account when computing document-&gt;url() but anyway, I
&gt; believe it is the right point where this should be done.

I just whipped up a quick test, and the Inspector&apos;s tooltips do not work correctly with
&lt;base&gt;. I just filed the following:

  Web Inspector: Relative URL Link Tooltips do not respect &lt;base&gt;
  https://bugs.webkit.org/show_bug.cgi?id=43434

Let me know if its something you are interested in working on. The thing is so few people
use &lt;base&gt; that it might not be a good use of time. Still, it is a bug.

r=me for this fix. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259547</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2010-08-03 10:54:45 -0700</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
        M       WebCore/ChangeLog
        M       WebCore/inspector/front-end/inspector.js
Committed r64565</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>63333</attachid>
            <date>2010-08-03 06:57:17 -0700</date>
            <delta_ts>2010-08-03 10:39:05 -0700</delta_ts>
            <desc>[PATCH] Suggested solution</desc>
            <filename>tooltip.patch</filename>
            <type>text/plain</type>
            <size>1394</size>
            <attacher name="Alexander Pavlov (apavlov)">apavlov</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZDVlMjJlYS4uYzg3OGMxMyAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wOC0wMyAgQWxleGFuZGVyIFBh
dmxvdiAgPGFwYXZsb3ZAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgIFdlYiBJbnNwZWN0b3I6IGluY29ycmVjdCBhYnNvbHV0ZSBw
cm90b2NvbC1sZXNzIFVSTHMgaW4gdG9vbHRpcHMgb2YgbGlua3MgaW4gdGhlIEVsZW1lbnRzVHJl
ZU91dGxpbmUKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTQzMjQ2CisKKyAgICAgICAgKiBpbnNwZWN0b3IvZnJvbnQtZW5kL2luc3BlY3Rvci5qczoKKyAg
ICAgICAgKFdlYkluc3BlY3Rvci5jb21wbGV0ZVVSTCk6CisKIDIwMTAtMDctMzAgIEFuZHJlaSBQ
b3Blc2N1ICA8YW5kcmVpcEBkaGNwLTE3Mi0xNi0xNC0xMi5sb24uY29ycC5nb29nbGUuY29tPgog
CiAgICAgICAgIFJldmlld2VkIGJ5IEplcmVteSBPcmxvdy4KZGlmZiAtLWdpdCBhL1dlYkNvcmUv
aW5zcGVjdG9yL2Zyb250LWVuZC9pbnNwZWN0b3IuanMgYi9XZWJDb3JlL2luc3BlY3Rvci9mcm9u
dC1lbmQvaW5zcGVjdG9yLmpzCmluZGV4IDRiYjMwYzcuLjAzZGZlYjcgMTAwNjQ0Ci0tLSBhL1dl
YkNvcmUvaW5zcGVjdG9yL2Zyb250LWVuZC9pbnNwZWN0b3IuanMKKysrIGIvV2ViQ29yZS9pbnNw
ZWN0b3IvZnJvbnQtZW5kL2luc3BlY3Rvci5qcwpAQCAtMTc4Nyw2ICsxNzg3LDkgQEAgV2ViSW5z
cGVjdG9yLmNvbXBsZXRlVVJMID0gZnVuY3Rpb24oYmFzZVVSTCwgaHJlZikKICAgICAgICAgaWYg
KHBhdGguY2hhckF0KDApICE9PSAiLyIpIHsKICAgICAgICAgICAgIHZhciBiYXNlUGF0aCA9IG1h
dGNoWzRdIHx8ICIvIjsKICAgICAgICAgICAgIHBhdGggPSBiYXNlUGF0aC5zdWJzdHJpbmcoMCwg
YmFzZVBhdGgubGFzdEluZGV4T2YoIi8iKSkgKyAiLyIgKyBwYXRoOworICAgICAgICB9IGVsc2Ug
aWYgKHBhdGgubGVuZ3RoID4gMSAmJiBwYXRoLmNoYXJBdCgxKSA9PT0gIi8iKSB7CisgICAgICAg
ICAgICAvLyBocmVmIHN0YXJ0cyB3aXRoICIvLyIgd2hpY2ggaXMgYSBmdWxsIFVSTCB3aXRoIHRo
ZSBwcm90b2NvbCBkcm9wcGVkICh1c2UgdGhlIGJhc2VVUkwgcHJvdG9jb2wpLgorICAgICAgICAg
ICAgcmV0dXJuIG1hdGNoWzFdICsgIjoiICsgcGF0aDsKICAgICAgICAgfQogICAgICAgICByZXR1
cm4gbWF0Y2hbMV0gKyAiOi8vIiArIG1hdGNoWzJdICsgKG1hdGNoWzNdID8gKCI6IiArIG1hdGNo
WzNdKSA6ICIiKSArIHBhdGg7CiAgICAgfQo=
</data>
<flag name="review"
          id="51662"
          type_id="1"
          status="+"
          setter="joepeck"
    />
          </attachment>
      

    </bug>

</bugzilla>