Bug 42626 - Web Inspector: Incorrect absolute URLs in tooltips of links in the ElementsTreeOutline
Summary: Web Inspector: Incorrect absolute URLs in tooltips of links in the ElementsTr...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
Depends on:
Reported: 2010-07-20 03:50 PDT by Alexander Pavlov (apavlov)
Modified: 2010-07-20 05:02 PDT (History)
8 users (show)

See Also:

[PATCH] Suggested solution (1.58 KB, patch)
2010-07-20 04:00 PDT, Alexander Pavlov (apavlov)
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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