Bug 42626

Summary: Web Inspector: Incorrect absolute URLs in tooltips of links in the ElementsTreeOutline
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, keishi, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Suggested solution pfeldman: review+

Description Alexander Pavlov (apavlov) 2010-07-20 03:50:07 PDT
1. Go to any page that links to a script, style, image or hyperlink
2. Open Developer Tools window, select Elements tab
3. Hover over a link (shown by the underline) and note the tooltip
4. Drag the link to a new tab and note the url

What is the expected result?
For example the <link rel="icon" type="image/vnd.microsoft.icon" href="http://www.gstatic.com/codesite/ph/images/phosting.ico"> in the head of this page, Hovering should show http://www.gstatic.com/codesite/ph/images/phosting.ico 

Dragging the link should open a new tab for the icon.

What happens instead?
Hovering shows "http://code.google.com/p/chromium/issues/entry/http:​//www.gstatic.com/​codesite/​ph/​images/​hosting.ico"
(the text includes square characters)
Dragging the link shows the same incorrect url as above, and as a result the server sends a 404 Error page (or in google code's case redirects you to the home page).

This is an upstreaming of http://code.google.com/p/chromium/issues/detail?id=48932
Comment 1 Alexander Pavlov (apavlov) 2010-07-20 04:00:49 PDT
Created attachment 62053 [details]
[PATCH] Suggested solution
Comment 2 Alexander Pavlov (apavlov) 2010-07-20 05:02:10 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
        M       WebCore/ChangeLog
        M       WebCore/inspector/front-end/ElementsTreeOutline.js
Committed r63739