Bug 79905

Summary: Web Inspector: Clicking relative links fails when query string contains a slash
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch vsevik: review+

Description Alexander Pavlov (apavlov) 2012-02-29 07:09:11 PST
What steps will reproduce the problem?
1. Go to a page with a url which contains a query string with a / in it. (like `site.com/page?a=b/c`)
2. Open the developer tools, and follow a link. (say `img/cat.png`)
3. ??? 

What is the expected result?
The link opens. (as in: `site.com/img/cat.png`)

What happens instead?
The browser points to a most likely non existant page. (`site.com/page?a=b/img/cat.png`)

Upstreaming http://code.google.com/p/chromium/issues/detail?id=111682
Comment 1 Alexander Pavlov (apavlov) 2012-02-29 07:13:45 PST
Created attachment 129442 [details]
Patch
Comment 2 Alexander Pavlov (apavlov) 2012-02-29 07:20:37 PST
Created attachment 129446 [details]
Patch
Comment 3 Vsevolod Vlasov 2012-02-29 07:22:33 PST
Comment on attachment 129442 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=129442&action=review

> Source/WebCore/inspector/front-end/ResourceUtils.js:280
> +            if (questionMarkIndex > 0)

Could it be zero? Could you please add a test for url like "http://www.example.com/?..."?
Comment 4 Alexander Pavlov (apavlov) 2012-02-29 07:28:34 PST
Committed r109212: <http://trac.webkit.org/changeset/109212>