Bug 79905 - Web Inspector: Clicking relative links fails when query string contains a slash
Summary: Web Inspector: Clicking relative links fails when query string contains a slash
Status: RESOLVED FIXED
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)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-29 07:09 PST by Alexander Pavlov (apavlov)
Modified: 2012-02-29 07:28 PST (History)
10 users (show)

See Also:


Attachments
Patch (5.70 KB, patch)
2012-02-29 07:13 PST, Alexander Pavlov (apavlov)
no flags Details | Formatted Diff | Diff
Patch (5.78 KB, patch)
2012-02-29 07:20 PST, Alexander Pavlov (apavlov)
vsevik: 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) 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>