RESOLVED INVALID 60389
Web Inspector: missing colon in URL calculation in ExtensionAPI.js
https://bugs.webkit.org/show_bug.cgi?id=60389
Summary Web Inspector: missing colon in URL calculation in ExtensionAPI.js
Patrick Mueller
Reported 2011-05-06 11:18:08 PDT
In ExtensionAPI.js, on line 447, in function expandURL(), the expression to set the variable baseURL does not add a colon between the hostname and port. The existing code looks like this: function expandURL(url) { if (!url) return url; if (/^[^/]+:/.exec(url)) // See if url has schema. return url; var baseURL = location.protocol + "//" + location.hostname + location.port; if (/^\//.exec(url)) return baseURL + url; return baseURL + location.pathname.replace(/\/[^/]*$/,"/") + url; } I've modified the code for weinre to do this: var baseURL = location.protocol + "//" + location.hostname + ":" + location.port; Note this means that for http/80, URLs are generate that look like this: http://host.name.here:/path/goes/here Basically, empty string after the colon. The browser seemed to do a good job handling this, but not sure how kosher that really is.
Attachments
Brian Burg
Comment 1 2014-12-12 14:08:21 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.
Note You need to log in before you can comment on or make changes to this bug.