[webkit-reviews] review granted: [Bug 43246] Web Inspector: incorrect absolute protocol-less URLs in tooltips of links in the ElementsTreeOutline : [Attachment 63333] [PATCH] Suggested solution

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 3 10:39:05 PDT 2010


Joseph Pecoraro <joepeck at webkit.org> has granted Alexander Pavlov (apavlov)
<apavlov at chromium.org>'s request for review:
Bug 43246: Web Inspector: incorrect absolute protocol-less URLs in tooltips of
links in the ElementsTreeOutline
https://bugs.webkit.org/show_bug.cgi?id=43246

Attachment 63333: [PATCH] Suggested solution
https://bugs.webkit.org/attachment.cgi?id=63333&action=review

------- Additional Comments from Joseph Pecoraro <joepeck at webkit.org>
> (use the baseURL protocol).

NIT: might be better if it was "(use the baseURL's protocol).".


> 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.


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

I think "entitled" is the wrong word. But I understand what you mean =).


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

I just whipped up a quick test, and the Inspector's tooltips do not work
correctly with
<base>. I just filed the following:

  Web Inspector: Relative URL Link Tooltips do not respect <base>
  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 <base> that it might not be a good use of time. Still, it is a bug.

r=me for this fix. Thanks!


More information about the webkit-reviews mailing list