Closed
Bug 890163
Opened 11 years ago
Closed 11 years ago
URL bar autocomplete misbehaves for file and ftp URIs
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: bzbarsky, Assigned: mak)
References
Details
(Keywords: regression)
Attachments
(1 file)
5.29 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
STEPS TO REPRODUCE: 1) Make sure /tmp/test.html exists 2) Start browser with new profile 3) Type "file:///tmp/test.html" into the URL bar and hit enter 4) Hit Cmd-L 5) Type "file" EXPECTED RESULTS: URL bar shows "file" ACTUAL RESULTS: URL bar shows "file//" with the caret right after the 'e' Regression range on m-c nightlies: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=3b955f306226&tochange=8e3a124c9c1a Marco, could bug 791776 have caused this?
Flags: needinfo?(mak77)
Assignee | ||
Comment 1•11 years ago
|
||
I can reproduce the problem, it's possible the async behavior is causing this strange behavior, I will try to debug it and see.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Flags: needinfo?(mak77)
Assignee | ||
Comment 2•11 years ago
|
||
Can reproduce also with ftp
Summary: URL bar autocomplete misbehaves for file URIs → URL bar autocomplete misbehaves for file and ftp URIs
Assignee | ||
Comment 3•11 years ago
|
||
I think I figured the patch introduced a difference in the code behavior, that was not intended. I will make a patch and a test for it.
Assignee | ||
Comment 4•11 years ago
|
||
In the async patch I misinterpreted the code behavior, so while cleaning up a bit the code I ended up changing a condition that was untested :( The original behavior was that if the search string does not contain a slash, then we just search for hosts, otherwise, if the slash is not the last char, we query for a url. I mischanged it so that if we don't find a matching host we try to match on the url. This was not intended and as such should be reverted. The patch restores the original behavior, and adds a test that would catch this.
Attachment #772297 -
Flags: review?(mano)
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite?
OS: Mac OS X → All
Hardware: x86 → All
Updated•11 years ago
|
Attachment #772297 -
Flags: review?(mano) → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6bfb7976d549
Flags: in-testsuite? → in-testsuite+
Target Milestone: --- → mozilla25
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6bfb7976d549
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
status-firefox25:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•