Closed Bug 724459 Opened 13 years ago Closed 7 years ago

Edit to add query string to localhost URI fails where same edit to http://localhost succeeds

Categories

(Firefox :: Address Bar, defect)

10 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: dave, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/10.0 Build ID: 20120129021758 Steps to reproduce: in my location bar, URL was listed as localhost:8085 I wanted to add a query string, so I edited the location to read localhost:8085?shell Actual results: Firefox failed with a message box Alert: "Firefox doesn't know how to open this address, because the protocol (localhost) isn't associated with any program." (Please notice the use of contractions in the message string and the odd comma after 'address'. This text for this alert could probably use an edit.) Expected results: It should have parsed the string as I intended it to. There are two workaround edits I have found that do not error out when adding a query string to "localhost:8085": http://localhost:8085?shell localhost:8085/?shell What's interesting is, when I use "http://localhost:8085?shell", I see the location mutate twice. First it changes to "localhost:8085?shell" (all black text). And then after the page loads, it changes to "localhost:8085/?shell" (where localhost is black and :8085/?shell is grey). It may be that "localhost:8085?shell" fails because that add-slash code that makes the localhost URL parse correctly run in the first phase immediately after the user hits enter.
confirming with FF10 http://localhost:8085?shell is a valid URL per http://tools.ietf.org/html/rfc3986#section-3.2 >The authority component is preceded by a double slash ("//") and is >terminated by the next slash ("/"), question mark ("?"), or number >sign ("#") character, or by the end of the URI.
Status: UNCONFIRMED → NEW
Component: Untriaged → Location Bar
Ever confirmed: true
QA Contact: untriaged → location.bar
I suspect that my pro blem is caused by exactly the same issue. I build websites on localhost host in a folder that has a spaces in the name. When using Firefox without any changes (from the default, i.e. no config changes, and no addons), I have a problem. The address bar shows: localhost I then add "folder with spaces" like: localhost/folder with spaces Rather than loading http://localhost/folder with spaces like expected, it loads a Google search... This is very very annoying. (In my main profile I have the http:// showing all the damn time.) If I type in: http://localhost/folder with spaces it loads correctly. And if I then just press enter in address bar, it doesn't reload that page (like you'd bloody well expect), but goes to the default search engine again. Because it's removing the http:// because somebody thought it was too confusing or something...
I guess I should say: This is happening on Ubuntu Linux, with the default Ubuntu Linux build of Firefox, and has been happening for many versions now, including 27.0.1 which is the current version.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 20180223220058 (In reply to David Woldrich from comment #0) > localhost:8085?shell > > "Firefox doesn't know how to open this address, because the protocol > (localhost) isn't associated with any program." I only get this by setting keyword.enabled to false. By default, a search is performed.
Has Regression Range: --- → irrelevant
Has STR: --- → yes
OS: Windows XP → All
Hardware: x86 → All
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.